How-to add a loadable module to the uClinux

From Klaus' wiki
Revision as of 16:53, 13 February 2011 by Klaus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

First ensure that there are loadable support in "make menuconfig" - it's in the kernel section.

Second ensure that insmod, lsmod, modprobe and rmmod are included (by default are modprobe not included). Find the in the vendor/user settings part in the BusyBox configuration.

There are two options of how to develop the loadable module

1. In the uClinux distribution tree 2. In another development tree

By developing in the distribution tree the kernel module will be included in the kernel build and in the final image going onto the embedded device.

By developing outside the kernel source the kernel module can be sent to the embedded device through a nfs mount or by ftp. This may enable a quicker turn around in the development process.