LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Modprobe - how to add a module with parameters (https://www.linuxquestions.org/questions/linux-newbie-8/modprobe-how-to-add-a-module-with-parameters-588903/)

The_JinJ 10-02-2007 11:00 AM

Modprobe - how to add a module with parameters
 
Hi all

I need to add a module for a NIC but when I do it freezes. I think it may need extra info passed to it, like the PCI details..

rmmod tulip
modprobe dmfe

I can get the details by doing something like cat /proc/pci but how do I use them with modprobe? Or am I on the wrong track with this?

Running openSUSE 10.2, trying to follow this bug - https://bugzilla.novell.com/show_bug.cgi?id=128941

Cheers
Neil

jailbait 10-02-2007 01:51 PM

Quote:

Originally Posted by The_JinJ (Post 2910623)
Hi all

I need to add a module for a NIC but when I do it freezes. I think it may need extra info passed to it, like the PCI details..

rmmod tulip
modprobe dmfe

I can get the details by doing something like cat /proc/pci but how do I use them with modprobe? Or am I on the wrong track with this?

Running openSUSE 10.2, trying to follow this bug - https://bugzilla.novell.com/show_bug.cgi?id=128941

Cheers
Neil

You can pass parameters to dmfe on the modprobe command line. See:

man modprobe

------------------
Steve Stites

GrapefruiTgirl 10-02-2007 02:46 PM

You can also put parameters into the file /etc/modprobe.conf or into the file /etc/modprobe.d/<file> but use only one method or the other, not both, as one takes priority.

Something like my file called /etc/modprobe.d/bonding contains:

alias bond0 bonding
options bonding mode=active-backup miimon=1000 primary=eth0


With the above, if I issue the command 'modprobe bonding' or 'modprobe bond0' then the kernel module 'bonding.ko' kets inserted with the parameters on that line.
The ALIAS line just gives an alias to the module, so that if you had a module called 'sdgfuih34hu6789d978f' you could modprobe it much easier by aliasing it, like 'alias easyname sdgfuih34hu6789d978f' and now you would use 'modprobe easyname'

The_JinJ 10-02-2007 03:32 PM

Thanks guys :)


All times are GMT -5. The time now is 09:56 PM.