[okl4-developer] adding a wombat driver

Hal Ashburner hala at ok-labs.com
Mon Aug 6 10:32:27 EST 2007


On Sat, 2007-08-04 at 21:02 -0700, Jorge Torres wrote:
> Hi okl4.org,
> 
> I'm trying to add a new driver to the wombat system, but I can't make
> the build system to add it to the kernel, this is what I do:
> 
> *created a new dir linux/kernel/drivers/testdrv 
> *on linux/kernel/drivers/Kconfig
> [+] source "drivers/testdrv/Kconfig"
> *on linux/kernel/drivers/Makefile
> [+] obj-$(CONFIG_TESTDRV) += testdrv/
> *on linux/kernel/drivers/testdrv
> /Makefile 
> obj-$(CONFIG_TESTDRV)+= testdrv.o
> *on linux/kernel/drivers/testdrv/testdrv.c I have a very simple
> init-module and cleanup_module code
> *on linux/kernel/l4linux_config_ia32
> [+] CONFIG_TESTDRV=y
> *on linux/kernel/drivers/testdrv/Kconfig 
> menu "testdrv"
> config TESTDRV
> trstate "testdrv"
> ---help---
> blah
> endmenu
> 
> 
> I guess that's all, does someone knows how can I get this driver to
> get included onto the system?.
> 
Hi Jorge,
You'll need to 	adjust the linux config file. For gumstix this is 
linux/kernel/l4_linux_config_gumstix

It may help to do something like the following ($ means command prompt,
# means comment)

$ cd linux/kernel
$cp l4_linux_config_gumstix .config
# comment out line 106 of arch/l4/Makefile
$make menuconfig

# chose your configuration options here - you should see your #
additions to Kconfig files if they worked

$mv .config l4_linux_config_gumstix_jorgesdriver
# uncomment line 106 of arch/l4/Makefile

# then edit the SConscript in the same directory to use your 
# new config file.

--
Kind regards,
Hal Ashburner





More information about the Developer mailing list