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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-15-2005, 06:52 PM
|
#1
|
Member
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444
Rep:
|
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.
|
|
|
11-15-2005, 07:43 PM
|
#2
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep: 
|
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).
|
|
|
11-15-2005, 09:13 PM
|
#3
|
Member
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444
Original Poster
Rep:
|
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"?
|
|
|
11-16-2005, 01:30 AM
|
#4
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
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)
|
|
|
11-16-2005, 02:20 AM
|
#5
|
Member
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444
Original Poster
Rep:
|
Basically what you are saying is get a pen and pencil and write down the names of the modules.
|
|
|
11-16-2005, 10:15 AM
|
#6
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
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.
|
|
|
All times are GMT -5. The time now is 06:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|