![]() |
DS101.DS101GKernelModules HistoryHide minor edits - Show changes to markup September 04, 2005, at 02:10 PM
by --
Changed line 48 from:
$ MOD_INST_PATH=$PWD/tmp make modules_install to:
$ INSTALL_MOD_PATH=$PWD/tmp make modules_install September 03, 2005, at 02:38 PM
by --
Changed line 31 from:
/home/mma/unslung/toolchain/powerpc-603e-linux-gnu/gcc-3.3.4-glibc-2.3.3/bin/powerpc-603e-linux-gnu- to:
/home/mma/unslung/toolchain/powerpc-603e-linux/gcc-3.3.4-glibc-2.3.3/bin/powerpc-603e-linux- September 03, 2005, at 09:53 AM
by -- how to build kernel modules for the DS-101g+
Added lines 1-52:
PrerequisitesYou must have a working toolchain for the DS-101g+. Consult this page for instructions on how to build it. 1. Acquire the DS-101g+ sources:(:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) $ wget ftp://gpl.synology.com/gpl/ds101g+-199.tgz $ tar -xzf ds101g+-199.tgz $ mv source ds101g+-199 (:tableend:) 2. Prepare for building(:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) $ cd ds101g+-199/uclinux2422/linux-2.4.x $ cp Makefile.powerpc Makefile $ cp powerpc-config .config $ make oldconfig (:tableend:) Now edit the Makefile and change the variable CROSS_COMPILE to point to your toolchain, e.g: (:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) /home/mma/unslung/toolchain/powerpc-603e-linux-gnu/gcc-3.3.4-glibc-2.3.3/bin/powerpc-603e-linux-gnu- (:tableend:) 3. Configure modules to buildUse "make menuconfig" and choose the modules you want to build. 4. Building the module(s)(:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) $ mkdir tmp $ make dep $ make modules $ MOD_INST_PATH=$PWD/tmp make modules_install (:tableend:) The modules will be placed in tmp/lib/modules/2.4.22-uc0/. Now copy the needed module(s) to the DS-101g+ and load them using "insmod <modulename>". |