LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems with loading modules in new kernel (https://www.linuxquestions.org/questions/linux-newbie-8/problems-with-loading-modules-in-new-kernel-142875/)

beejayzed 02-06-2004 02:31 AM

Problems with loading modules in new kernel
 
I have compiled a new kernel(2.6.1) but th emodules are not loading. I have intalled the module-init-tools rpm but it is not loading the modules.
I read in the readme file that I have to run depmod <kernel version> but the file intalled from the new module init tools is depmod-25 so I ran depmod-25 2.6.1. Was that the right thing to do? I was scared if ran depmod I would break something. Which one am I supposed to run?
So how do I make the modules load?
Thanks in advance
Bye

Rounan 02-06-2004 09:15 AM

You likely need to update your modprobe.conf from your old modules.conf. There's a script to do this for you in the module-init-tools package called generate-modprobe.conf
I got the source, and it was in that directory for me. Do some googling to find the script, or download the source package and run:
sh generate-modprobe.conf
from the source directory.

Then you can just type: depmod
it should default to most recent version of the program, and current (running) kernel version.

--Rounan

beejayzed 02-06-2004 05:01 PM

I will try that, thanks.

beejayzed 02-06-2004 05:09 PM

About the depmod, do I need to be in the new kernel for it to work with my new kernel? I am currently dual booting 2.4.24 .and 2.6.1. Also the generate-modprobe.conf script, do I just run it without any arguments or anything?

Rounan 02-07-2004 01:51 PM

Yes, you just run it without arguments.

And yes, you should be in the new kernel to run depmod - depmod 2.6.1 MAY cause it to build the appropriate dependancies, but I've never used this.

--Rounan

beejayzed 02-07-2004 03:29 PM

Thanks for all your help so far. I will probably post back if I get any more problems.


All times are GMT -5. The time now is 12:17 PM.