LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 11-15-2005, 07:52 PM   #1
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 441

Rep: Reputation: 30
How to Load Kernel Modules?


I was under the impression the kernel could load the modules it needed on demand. However, when I compile my kernel version 2.6.9 with my network card set as a module, the enternet does not work, but the enternet works correctly if the driver is compiled directly into the kernel. Basically, I thought the kernel used the modules like windows uses dll's. So, my question is: Do I have to manually load my needed modules, and if so how do I find out the modules name? This also directly leads to the question: How do I automate module loading? Thanks and I'm sorry if I soooooooo much a linux noob that you think I should just uninstall the OS.
 
Old 11-15-2005, 08:43 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Caveat: I know how to work with modules under FreeBSD, and I just have a theory on how it works under Linux.

Try adding it using the
Code:
modprobe module_name_here
command. I think this may add it to the /etc/modprobe.conf file, but I could be wrong (and there is an easy way for you to verify that).
 
Old 11-15-2005, 10:13 PM   #3
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 441

Original Poster
Rep: Reputation: 30
I know how to use the command modprobe, lsmod and rmmod. What I do not know how to do is find the module name. In this case, the device driver I need loaded is under "Device Drivers->Networking Support->Ehternet (10 or 100MBit)->Intel(R) PRO/100+ support." Now if I press "Y" and make this part of the kernel, my enternet works. If I press "M" and make this a module my enternet does not work. What do I need to do in order to make this work when I press "M"?
 
Old 11-16-2005, 02:30 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 53
If you use make menuconfig
then go on Intel(R) Pro/100+ support and press '?'
In the description, it gives you the name of the module (e100)
 
Old 11-16-2005, 03:20 AM   #5
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 441

Original Poster
Rep: Reputation: 30
Basically what you are saying is get a pen and pencil and write down the names of the modules.
 
Old 11-16-2005, 11:15 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Once you know which module you need to load ( & searching wwww.google.com/linux for your device name as listed by lspci and "module" is usually helpful), you can put the name of that module into /etc/modules and it will be loaded at boot time. Note that distros differ sometimes, so that filename/location may not be appropriate for you, but I'm sure you'll find your distro has something similar.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom kernel does not load modules Ankardo Linux - Newbie 2 06-10-2005 07:30 AM
new kernel 2.6.7 cant load modules short101 Debian 8 08-21-2004 10:59 PM
Unused kernel modules : How to NOT load? _UnPrEdictAbLe_ Linux - Software 0 08-19-2004 02:19 AM
can't load external modules after kernel upgrade wascal2001 Linux - Newbie 3 06-28-2004 04:29 PM
Can't load modules because I'm using an old kernel with everything else updated... leeman_s Slackware 1 05-22-2004 04:30 AM


All times are GMT -5. The time now is 11:38 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration