Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
add custom kernel module
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Dr. Jones
n00b
n00b


Joined: 11 Oct 2003
Posts: 14
Location: Golden, Colorado

PostPosted: Thu May 20, 2004 11:50 pm    Post subject: add custom kernel module Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum