Build additional kernel modules

'' This article based on work done by Frontalot at Linkstationwiki.org '' This article assumes you already have installed the necessary cross-toolchain(s). Please see Articles/GeneralCrossToolchain for instructions on how to install and use a cross-toolchain.


 * 1) Download and unpack the appropriate GPL source code. It may be obtained from the downloads area.  Find out which box you have and go into the box`s folder. There you find it in the GPL folder. In our example, we will be building kernel modules for the powerpc-hdhlan LinkStation:
 * unzip gpl_powerpc-hdhlan.zip
 * 1) Unpack the kernel source code:
 * tar -pzxvf linux-2.4.17_mvl21-sandpoint.tar.gz
 * 1) Download and apply any available patches. You find them in the "patches"-subfolder. The 2.4.17_mvl21-sandpoint kernel needs 2 patches:
 * patch -p1 < netfilter.patch
 * patch -p1 < usbvideo.patch
 * 1) Download a working kernel .config from the downloadsection (normaly they can be found at DevelopmentTools/CrossToolchains/Config/) and place it in the kernel source directory. Make sure to rename the kernel .config file to .config:
 * mv powerpc-hdhlan.config .config
 * 1) Open up   in a text editor. Replace the existing text with the name of the cross-toolchain -   in our example. The trailing dash is required.
 * 2) Then start the configuration menu:
 * make menuconfig
 * 1) Double-check the kernel settings then save and exit. Now you can build the kernel modules:
 * make dep; make modules
 * 1) If all goes well, install the kernel modules:
 * make modules_install