Help with statically compiling and linking simple hello worlds kind of driver with FreeBSD kernel

Patil, Kiran kiran.patil at intel.com
Thu Sep 20 15:47:57 PDT 2007


Hi,

 

I am newbie FreeBSD driver developer.

 

I developed dynamically loaded module for simple hello world kind of
driver.  I can successfully dynamic load and unload the module
(hello.ko). There are other supporting files such as hello_1.c,
hello_2.c and hello.h which hets compiled when I compile hello driver.

 

I want to statically compile this driver into FreeBSD kernel and I want
it to get loaded when FreeBSD kernel is booted.

 

I am looking for BKM, how to do this? Any help is appreciated. If there
is any example exist for this, can you please point me to it.

 

Thanks in advance.

 

-- Kiran P.



More information about the freebsd-drivers mailing list