Hi Hal, <a href="http://okl4.org">okl4.org</a>,<br><br>Thanks, I&#39;ve made the changes, and I now know that new driver is being compiled, I&#39;ve tested adding an error to driver&#39;s code and build halts because of such error,&nbsp; what I&#39;m not so sure&nbsp; of, is&nbsp; if the driver is&nbsp; being included&nbsp; to&nbsp; the&nbsp; kernel,&nbsp; I&nbsp; have this&nbsp; printk at the&nbsp; init_module function and&nbsp; nothing happens&nbsp; on kernel initialization&nbsp; prints,&nbsp; do you know a way of testing if one&#39;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> &lt;<a href="mailto:hala@ok-labs.com">hala@ok-labs.com</a>&gt; 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>&gt; Hi <a href="http://okl4.org">okl4.org</a>,<br>&gt;<br>&gt; I&#39;m trying to add a new driver to the wombat system, but I can&#39;t make<br>&gt; the build system to add it to the kernel, this is what I do:
<br>&gt;<br>&gt; *created a new dir linux/kernel/drivers/testdrv<br>&gt; *on linux/kernel/drivers/Kconfig<br>&gt; [+] source &quot;drivers/testdrv/Kconfig&quot;<br>&gt; *on linux/kernel/drivers/Makefile<br>&gt; [+] obj-$(CONFIG_TESTDRV) += testdrv/
<br>&gt; *on linux/kernel/drivers/testdrv<br>&gt; /Makefile<br>&gt; obj-$(CONFIG_TESTDRV)+= testdrv.o<br>&gt; *on linux/kernel/drivers/testdrv/testdrv.c I have a very simple<br>&gt; init-module and cleanup_module code<br>
&gt; *on linux/kernel/l4linux_config_ia32<br>&gt; [+] CONFIG_TESTDRV=y<br>&gt; *on linux/kernel/drivers/testdrv/Kconfig<br>&gt; menu &quot;testdrv&quot;<br>&gt; config TESTDRV<br>&gt; trstate &quot;testdrv&quot;<br>&gt; ---help---
<br>&gt; blah<br>&gt; endmenu<br>&gt;<br>&gt;<br>&gt; I guess that&#39;s all, does someone knows how can I get this driver to<br>&gt; get included onto the system?.<br>&gt;<br>Hi Jorge,<br>You&#39;ll need to&nbsp;&nbsp;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>