Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Missing tool: update_modules, How do we add drivers?< Next Oldest | Next Newest >
jgombos Offline





Group: Members
Posts: 39
Joined: Nov. 2006
Posted: Nov. 03 2006,15:56 QUOTE

I have a kernel driver that I would like to load on a permanent basis, rather than executing insmod after every bootup.  The /etc/modules.conf file has a header advising not to hack that file, but rather use update_modules to add modules.  There seems to be no such executable.  

What is the recommended approach to installing a module?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 03 2006,16:26 QUOTE

It's really okay to hack that file :p

Anyways, you can use depmod to update that conf file
Back to top
Profile PM 
jgombos Offline





Group: Members
Posts: 39
Joined: Nov. 2006
Posted: Nov. 04 2006,18:01 QUOTE

It turns out the modules.conf file didn't need to be modified.  After copying the new module to the relevent subdirectory in /lib/modules, and running depmod (which resulted in a dependancy error that I ignored), the module was loaded on every reboot thereafter.  And I could see that modules.conf had not changed.

So it seems the process is to put the module somewhere in /lib/modules and run depmod, in case anyone else goes down this path.

I'm curious where the hook is, if it's not the modules.conf file that's telling the kernel to load my new module.  I noticed that the boot process pauses for a minute on the line

"Running from HD, regenerating ld.so.cache and modules.dep..."

Is this where it determines which modules to load, and the order?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 05 2006,04:40 QUOTE

Ah yea.. the file is called differently on different systems.  Doesn't matter if it works :P
Back to top
Profile PM 
3 replies since Nov. 03 2006,15:56 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Missing tool: update_modules

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code