Dr. Jones n00b
Joined: 11 Oct 2003 Posts: 14 Location: Golden, Colorado
|
Posted: Thu May 20, 2004 11:50 pm Post subject: add custom kernel module |
|
|
We are working on linux support for a product that my company develops. It is a usb based device. I was able to use some existing code to create a module that communicates with our device. My question is how to add it to the system by default.
Right now we can compile the code into a .o file, and we can load the module using 'insmod ourdriver.o' and it works great. However, I'm trying to figure out how to autoload it.
My logic is that if I can add it in with the other modules, (ie /lib/modules/misc) then add it to the /etc/modules.autoload.d/kernel-2.4.25 file and do a modules-update, everything will work. But when I just throw the module into /lib/modules/misc it doesn't seem to work (gives an error about unresolved symbols when trying to build the modules.dep file).
Do I have to add this in with the kernel code and recompile the kernel? If so do I have to alter any files or makfiles to tell the system that it needs to add that?
I would think there would just be a place to put the .o file that a nomal 'modprobe ourdriver' would be sufficient for loading it. _________________ Adopt an unanswered post today! |
|