LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to load kernel modules (https://www.linuxquestions.org/questions/linux-software-2/how-to-load-kernel-modules-518468/)

ginda 01-11-2007 04:35 PM

How to load kernel modules
 
Hi guys, need your help

I have just compiled a kernel 2.6.18.6 on my fedora core 6 box and configured it with toshiba_acpi and few other bits i wanted. I added some things as modules and some into the kernel. How do i load the modules???? i can see whole bunch of files in /lib/modules/new-kernel/....


Thanks in advance

FnordPerfect 01-11-2007 04:52 PM

Manually with modprobe <module-name> or insmod /lib/modules/<kernel-version>/path/to/module.ko

some modules are loaded automatically on demand.

There ought to be a file in /etc where you can list all modules that should be loaded automatically during boot time.

ginda 01-12-2007 06:06 AM

Hi

I have tried what you said but receiving the following errors.

[root@localhost ~]# insmod /lib/modules/2.6.18.6-custom/kernel/net/ieee80211/ieee80211.ko
insmod: error inserting '/lib/modules/2.6.18.6-custom/kernel/net/ieee80211/ieee80211.ko': -1 Invalid module format
[root@localhost ~]# modprobe /lib/modules/2.6.18.6-custom/kernel/net/ieee80211/ieee80211.ko
FATAL: Module /lib/modules/2.6.18.6_custom/kernel/net/ieee80211/ieee80211.ko not found.

[root@localhost Desktop]# insmod /lib/modules/2.6.18.6-custom/kernel/drivers/acpi/toshiba_acpi.ko
insmod: error inserting '/lib/modules/2.6.18.6-custom/kernel/drivers/acpi/toshiba_acpi.ko': -1 No such device
[root@localhost Desktop]# modprobe /lib/modules/2.6.18.6-custom/kernel/drivers/acpi/toshiba_acpi.ko
FATAL: Module /lib/modules/2.6.18.6_custom/kernel/drivers/acpi/toshiba_acpi.ko not found


As you may have noticed i compiled a custom kernel, i did this to add support for toshiba laptops and wifi. Any ideas why im getting these problems.


Thanks again


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