[Driver WD1100] Compilation

thefly at acaro.org thefly at acaro.org
Tue Mar 2 03:03:45 PST 2004


hello, i've got a question about the driver compilation. I finally wrote
my driver, and i'm trying to compile it to test it. I tryed to use
/usr/share/examples/drivers/make_device_driver.sh to build the whole
stuff, but it doesn't work... Anyway I put the driver.c and the header i
built to /usr/src/sys/dev/wd/ and trying to compile it with gcc -I/sys
but it gives me a bunch of errors about definitions it doesn't find
(definitions of kernel functions and structures). I didn't find this
question in the FAQ so my question is: now that the .c is written, how
do i compile it and link it to the kernel image? My previous post was
about the use of the NewBus interface for accessing PCI devices, could
some of you please have a look at my driver (it's about 200 lines with
includes and comments and stuff)
http://chiakotay.acaro.org/acaro/wd1100/  . 

Thanks in advance, 

Claudio Martella


More information about the freebsd-hackers mailing list