Difference between revisions of "How-to add a loadable module to the uClinux"

From Klaus' wiki
Jump to: navigation, search
(Created page with '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…')
 
Line 6: Line 6:
  
 
1. In the uClinux distribution tree
 
1. In the uClinux distribution tree
 +
 
2. In another development 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 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.
+
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. This process is like the process of developing the Scull examples from the Linux device Driver book.

Revision as of 16:54, 13 February 2011

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. This process is like the process of developing the Scull examples from the Linux device Driver book.