Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with automatic installation of NIC card

Status
Not open for further replies.

DCCoolBreeze

Programmer
Jul 25, 2001
208
US
Because I have a 3COM 3c509 card, I have had to remove plug and play and set it up manually to make it work. Now my card works but I have to do a >insmod 3c509 each time I reboot. How can I automate this????
 
Hi,

You just put a line in your /etc/modules.conf :

alias eth0 3c509

(assuming its eth0 !)

Hope this helps
 
thanks.. unforunately I had done that but it did not work.
I have something like

alias eth0 3c509
options eth0 io=0x300
 
yes. this is what is in modules.conf:

alias parport_lowlevel parport_pc
alias eth0 3c509
options 3c509 io=0x300

is modules.conf not running or is their a syntax error in the config file? How would I tell
 
Hi,

The only things it could be are

(i) dependencies are wrong so modprobe doesn't work - so do as root :

# /sbin/depmod -ae

(ii) you have a kernel (custom ?) that doesn't have kmod support.

(iii) its an older linux and uses /etc/conf.modules instead of modules.conf


Regards
 
I am using RH 7.2 so it must be (1) so I will try that now.

Thanks
 
I ran depmod -ae and it returned nothing...since I use redhat 7.2 and installed it using the defaults...what's up??? What else can I test???
 
Hi,

This is kind of odd. Does it work if you manually do :

# /sbin/modprobe 3c509

instead of

# /sbin/insmod 3c509

Regards

 
yes. In fact this is how I get it started. I simply run

>insmod 3c509<CR>

and it sets up the NIC including the parameters...
 
Hi,

In this case I don't think it actually makes a difference, but there is a difference between insmod and modprobe. When you insmod you explicitly insert a named module into memory, just giving the module name. Modprobe, on the other hand, consults the dependencies database - e.g.

/lib/modules/2.4.18/modules.dep

(kernel version changes to match yours as per 'uname -r')

It then insmods 'x' number of modules as needed by the one requested, i.e. including all dependencies.

It can be that they are indentical commands because there are no dependencies in loading the module anyway and I think thats the case here so maybe thats of somewhat academic interest other than the fact that the kernel uses modprobe instead of insmod .

Regardless, if you can '/sbin/modprobe 3c509' then its not that anyway.

The suspiscion then comes to something being wrong with your /etc/modules.conf .
Do you have any other modules referenced in there that load correctly ?

Regards







 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top