Installing kernel modules (Network Space 2)

It is possible to install Kernel modules on the NS2.

You need to have root access already. Moreover, the following steps assume that you have installed Debian in a chroot.


 * Install the build-essential package: 'apt-get install build-essential' (Note: any other packages that need to be installed?)
 * Download the linux gpl sources from http://www.lacie.com/gpl
 * Copy the linux.tar.bz2 file to your NS2 and extract it
 * cd to the directory in which you extracted it
 * Copy Lacie's config file in place: cp arch/arm/configs/lacie_feroceon_kw_defconfig .config
 * Run 'make menuconfig' and select the modules that you want to install
 * Compile the kernel: 'make'
 * Install the kernel 'make install' (this does not overwrite the old kernel, because you just install it inside the chroot)
 * Install the modules: 'make modules_install'
 * Create a symlink from the directory where linux is looking for the files to the directory where they are installed: 'ln -s /lib/modules/2.6.31.14 /lib/modules/2.6.31.14-svn6790'
 * Generate modules.dep: 'depmod -a'
 * Run 'modprobe MODULE_NAME' where MODULE_NAME is the name of the module

The last step needs to be repeated every time the device is rebooted (to find a way to avoid this).

See also this | forum thread.