LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2007, 11:00 AM   #1
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Question 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
 
Old 10-02-2007, 01:51 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Linux Mint 18
Posts: 7,809

Rep: Reputation: 294Reputation: 294Reputation: 294
Quote:
Originally Posted by The_JinJ View Post
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
 
Old 10-02-2007, 02:46 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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'
 
Old 10-02-2007, 03:32 PM   #4
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Original Poster
Rep: Reputation: 30
Thanks guys
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
module.ko: make, install & used many times. Suddenly modprobe=invalid module format?? GrapefruiTgirl Linux - General 16 08-04-2007 05:40 AM
where should i add a modprobe entry to start up a module? nass Slackware 2 06-30-2007 01:47 AM
modprobe does not recognize module parameters at boot moskito01 SUSE / openSUSE 0 01-06-2005 03:13 PM
modprobe: modprobe: Couldn't locate module nvnet.o/nvaudio.o xiojqwnko Linux - Newbie 2 12-08-2003 05:41 PM
modprobe: modprobe can't locate module ppp0 in redhat 7.1 while shutting down. cyberdude3k Linux - Networking 1 09-08-2003 12:01 PM


All times are GMT -5. The time now is 02:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration