Hi Hal, <a href="http://okl4.org">okl4.org</a>,<br><br>Thanks, I've made the changes, and I now know that new driver is being compiled, I've tested adding an error to driver's code and build halts because of such error, what I'm not so sure of, is if the driver is being included to the kernel, I have this printk at the init_module function and nothing happens on kernel initialization prints, do you know a way of testing if one's drivers have been executed?
<br><br>Thank you very much,<br><br>Jorge<br><br><div><span class="gmail_quote">On 8/5/07, <b class="gmail_sendername">Hal Ashburner</b> <<a href="mailto:hala@ok-labs.com">hala@ok-labs.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sat, 2007-08-04 at 21:02 -0700, Jorge Torres wrote:<br>> Hi <a href="http://okl4.org">okl4.org</a>,<br>><br>> I'm trying to add a new driver to the wombat system, but I can't make<br>> the build system to add it to the kernel, this is what I do:
<br>><br>> *created a new dir linux/kernel/drivers/testdrv<br>> *on linux/kernel/drivers/Kconfig<br>> [+] source "drivers/testdrv/Kconfig"<br>> *on linux/kernel/drivers/Makefile<br>> [+] obj-$(CONFIG_TESTDRV) += testdrv/
<br>> *on linux/kernel/drivers/testdrv<br>> /Makefile<br>> obj-$(CONFIG_TESTDRV)+= testdrv.o<br>> *on linux/kernel/drivers/testdrv/testdrv.c I have a very simple<br>> init-module and cleanup_module code<br>
> *on linux/kernel/l4linux_config_ia32<br>> [+] CONFIG_TESTDRV=y<br>> *on linux/kernel/drivers/testdrv/Kconfig<br>> menu "testdrv"<br>> config TESTDRV<br>> trstate "testdrv"<br>> ---help---
<br>> blah<br>> endmenu<br>><br>><br>> I guess that's all, does someone knows how can I get this driver to<br>> get included onto the system?.<br>><br>Hi Jorge,<br>You'll need to adjust the linux config file. For gumstix this is
<br>linux/kernel/l4_linux_config_gumstix<br><br>It may help to do something like the following ($ means command prompt,<br># means comment)<br><br>$ cd linux/kernel<br>$cp l4_linux_config_gumstix .config<br># comment out line 106 of arch/l4/Makefile
<br>$make menuconfig<br><br># chose your configuration options here - you should see your #<br>additions to Kconfig files if they worked<br><br>$mv .config l4_linux_config_gumstix_jorgesdriver<br># uncomment line 106 of arch/l4/Makefile
<br><br># then edit the SConscript in the same directory to use your<br># new config file.<br><br>--<br>Kind regards,<br>Hal Ashburner<br><br><br></blockquote></div><br>