LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-12-2007, 06:25 PM   #1
joe2748
Member
 
Registered: Nov 2007
Distribution: Ubuntu 9.10
Posts: 36

Rep: Reputation: 15
Need to recompile kernel modules


Hey guys, I upgraded etch to lenny, and along with that gcc 4.1 to 4.2.
Later, I recompiled the kernel. Now, when I reboot my kernel panics because it can't insert any modules, because they were all compiled with 4.1

How can I recompile all the modules?

Thanks for your help.

Last edited by joe2748; 11-14-2007 at 08:56 PM. Reason: Solved
 
Old 11-12-2007, 06:34 PM   #2
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
Sounds like you went behind the back of the package manager. You need to read up on apt-get. It maybe simplest just to reinstall lenny from scratch.
 
Old 11-12-2007, 07:35 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Doesn't make since if you upgraded to gcc4.2 and then after it was fully installed you built the kernel. Not sure but maybe the system is still 4.1 till a reboot? Would have to give this a thought to get in.

Brian
 
Old 11-12-2007, 09:11 PM   #4
joe2748
Member
 
Registered: Nov 2007
Distribution: Ubuntu 9.10
Posts: 36

Original Poster
Rep: Reputation: 15
Here is exactly what I did:

1) changed all references in sources.list to etch to lenny
2) ran apt-get update
3) ran apt dist upgrade

This downloaded a lot of stuff, and installed as expected.
4) rebooted. On reboot, there was a noticable visual difference, I assumed all was well.

Then, I decided I needed to reinstall my nvidia driver, because it wasn't being detected properly (it wasn't in etch either). When running the nvidia script, the gcc version check failed, because the current compiler was 4.2, and the kernel (it said) was compiled in 4.1 .
So, I figured I would just recompile the kernel with the new gcc and all would be well. Recompile went fine, but on reboot none of the modules will insert, it is again complaining about the compiler version.

If I use a live cd will mounting the hd and running "make modules" work? Or does the make rely on a bunch of system variables that wont be set properly if I boot into a live cd?

Please help, I worked quite a bit to get the sound card to work on this machine, I don't want to run through it all again on a fresh install of lenny.
 
Old 11-13-2007, 05:33 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I have no ideas at the moment.

Brian
 
Old 11-14-2007, 09:25 AM   #6
joe2748
Member
 
Registered: Nov 2007
Distribution: Ubuntu 9.10
Posts: 36

Original Poster
Rep: Reputation: 15
Well, I guess it is time to take the plunge, I'm going to reinstall today, I think I will go with Gutsy though. Is there a way to install Gutsy and Lenny in the same partition? Just like you can have two kernels installed on the same partition, you just boot into one or the other?
 
  


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
snd-* modules disappeared after kernel recompile Soulstealer Linux - Software 7 03-27-2005 02:48 PM
Modules problems after kernel recompile (2.6.9) magoseitor Linux - Software 2 02-20-2005 12:12 AM
Kernel Recompile Filesystem modules ftgow Linux - Software 2 08-25-2003 01:46 AM
lost modules after kernel recompile ArnaudVR Slackware 2 07-07-2003 03:41 PM
need to recompile modules if i add something to kernel option? doublefailure Linux - General 1 03-05-2003 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:55 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
Open Source Consulting | Domain Registration