module - vendor&product code correspondenceForum: Networking Topic: module - vendor&product code correspondence started by: RayRoko Posted by RayRoko on Nov. 29 2006,17:12
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? Posted by ^thehatsrule^ on Nov. 29 2006,18:01
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.
Posted by RayRoko on Nov. 29 2006,18:08
Found it! The file I'm looking for is the/lib/modules/2.4.26/modules.pcimap gonna add entries there Posted by RayRoko on Nov. 29 2006,18:46
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??
|