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: module - vendor&product code correspondence, how to load a module based on hex codes< Next Oldest | Next Newest >
RayRoko Offline





Group: Members
Posts: 20
Joined: Sep. 2006
Posted: Nov. 29 2006,17:12 QUOTE

I've compiled a driver for my wireless RALINK WL54PC card. I can load it manually with insmod rt61.o. BUT I want to automate the process. I figure in Linux modules are loaded based on the readings from the card of vendor code and product code. Now i have in dmesg:
RT61: Vendor = 0x1814, Product = 0x0302

How can I tell my DSL system to do the insmod rt61 when I insert the card with the above codes?
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Nov. 29 2006,18:01 QUOTE

Not sure if this is in the right step... but maybe you need to add it to the modules.dep , etc. files. (see /lib/modules/... ).  You can add it to some dir in there then fiddle around with depmod.  My reason for this is that now modprobe will find it, but I don't know if this will help your autoloading thing.
Back to top
Profile PM 
RayRoko Offline





Group: Members
Posts: 20
Joined: Sep. 2006
Posted: Nov. 29 2006,18:08 QUOTE

Found it! The file I'm looking for is the
/lib/modules/2.4.26/modules.pcimap

gonna add entries there
Back to top
Profile PM 
RayRoko Offline





Group: Members
Posts: 20
Joined: Sep. 2006
Posted: Nov. 29 2006,18:46 QUOTE

actually I didn't have to change the pcimap file! I just put my kernel module into /lib/modules/../ directory and it started to find my pcmcia card! Is Linux something or what??
Back to top
Profile PM 
3 replies since Nov. 29 2006,17:12 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: module - vendor&product code correspondence

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