[Buildroot] New Kernel Module

makowski.pawel makowski.pawel at o2.pl
Tue Jan 7 13:25:31 UTC 2014


Hello everyone,
I'm trying to add a new kernel module. In my  understanding, the best way to do that is to add it into the Sample Kernel Code section in Kernel configuration (linux-menuconfig). I performe following steps:
> 1. I put an example c file with well know hello_world example to /output/build/linux_xyz/samples/mykmod directory.
> 2. I create Makefile for it: obj-$(CONFIG_SAMPLE_MYKMOD) += mykmod.o
> 3. I add the new section to KConfig in samples directory.
 
When I run the make linux-menuconfig a new module is visible. So, I check it to the build.
After issued the make command there is visible that my module is built.
I download Kernel image and RootFs to the target and I can't find the module file.
Where can I find this file ? How can I menage this module ?
--
Regards/Pozdrawiam
Paweł Makowski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140107/c667c8e5/attachment-0001.html>


More information about the buildroot mailing list