LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-06-2004, 03:31 AM   #1
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Rep: Reputation: 30
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

Last edited by beejayzed; 02-06-2004 at 03:32 AM.
 
Old 02-06-2004, 10:15 AM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
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
 
Old 02-06-2004, 06:01 PM   #3
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Original Poster
Rep: Reputation: 30
I will try that, thanks.
 
Old 02-06-2004, 06:09 PM   #4
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Original Poster
Rep: Reputation: 30
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?

Last edited by beejayzed; 02-06-2004 at 06:10 PM.
 
Old 02-07-2004, 02:51 PM   #5
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
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
 
Old 02-07-2004, 04:29 PM   #6
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Original Poster
Rep: Reputation: 30
Thanks for all your help so far. I will probably post back if I get any more problems.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading Kernel Modules superdude_876 Linux - Software 1 10-29-2005 12:46 AM
Loading sound modules into Kernel rgbrock1 Linux - Hardware 1 05-09-2005 02:48 PM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 12:10 PM
Modules not loading in New kernel palanisaravanan Linux - General 1 11-22-2003 07:31 AM
Loading kernel modules at boot burk Linux - General 7 06-10-2002 08:28 AM


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

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