LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   depmod doesnt insert proper lines in modules.pcimap for Marvell Network Interface (https://www.linuxquestions.org/questions/linux-hardware-18/depmod-doesnt-insert-proper-lines-in-modules-pcimap-for-marvell-network-interface-147678/)

jimmytango829 02-18-2004 02:14 PM

Help!!! depmod doesnt detect Marvell Network Interface
 
i just installed from Stage 1 for gentoo 1.4, and here are my system specs:
Athlon XP 2500+
512 Ram
Asus A7N8X-E Deluxe
this includes 2 network interfaces:
nVidia 10/100 network interface
Marvell 10/100/1000 network interface

I cant seem to get the Marvell network card to be initalized at boot. I compiled the proper kernel module and I can get the card working manually at the command line using dhcp and ifconfig. It seems that the kernel is not loading the module or hotplug is not properly loading it at boot. I found somewhere that depmod -a is supposed to insert the proper lines binding the specific PCI devices to kernel modules, but when I run depmod, it doesnt insert the lines corresponding to the specific PCI devices I have. Running depmod also removes any lines I add to modules.pcimap that would configure the pci device to use the proper module (sk98lin.o). If someone had some insight as to how to get hotplug to identify with the correct driver or get depmod to place the correct lines in modules.pcimap I would REALLY appreciate it...I just cant figure it out.

Thanks

michich 09-30-2004 01:08 AM

sk98lin hotplug
 
I've just run into the same problem. I've found out that the sk98lin driver doesn't register itself with the hotplug system. I've solved this by editing linux/drivers/net/sk98lin/skge.c . In the file find the definition of skge_pci_tbl[] and add this after it:

/* register the device with the Hotplug facilities of the kernel */
MODULE_DEVICE_TABLE(pci, skge_pci_tbl);

After recompilation, hotplug now loads the module automatically for me.


All times are GMT -5. The time now is 08:19 AM.