-   Linux - General (
-   -   How to Load Kernel Modules? (

binarybob0001 11-15-2005 07:52 PM

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.

anomie 11-15-2005 08:43 PM

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

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).

binarybob0001 11-15-2005 10:13 PM

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"?

nx5000 11-16-2005 02:30 AM

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)

binarybob0001 11-16-2005 03:20 AM

Basically what you are saying is get a pen and pencil and write down the names of the modules.

tredegar 11-16-2005 11:15 AM

Once you know which module you need to load ( & searching 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 03:09 PM.