Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/lib/modules points to wrong kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
supernov
Apprentice
Apprentice


Joined: 18 Feb 2005
Posts: 164

PostPosted: Fri May 05, 2006 7:39 pm    Post subject: /lib/modules points to wrong kernel Reply with quote

Hi there!

Got quite a few problems with my new kernel, but for a start I now saw my new kernel was trying to load a module from my previous installation.
Modprobing doesn't work because of an invalid format. But I noticed /lib/modules/old kernel. So how to solve this? Can't find a symlink
anywhere.

Thanks!
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Fri May 05, 2006 7:42 pm    Post subject: Reply with quote

Please post output of these commands:

Code:

uname -r
ls -l /lib/modules


Looks like you didn't install modules for your new kernel. To do so, run

Code:

cd /usr/src/linux (make sure it's current sources directory)
make
make install modules_install
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54821
Location: 56N 3W

PostPosted: Fri May 05, 2006 7:54 pm    Post subject: Reply with quote

supernov,

The kernel loads its modules from knowing its own name, so you probably have not installed your kernel properly.
Code:
uname -a
will shoe you the name, and build date/time of your running kernel.

Is it what you expected ?
Did you forget to mount /boot ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
supernov
Apprentice
Apprentice


Joined: 18 Feb 2005
Posts: 164

PostPosted: Sat May 06, 2006 12:41 pm    Post subject: Reply with quote

OmG!

uname gave me the fact that I was running the previous kernel! I tried so many things to explain all the behaviour I was constantly seeing,
I'm not a noob anymore, but now I really dropped my trousers. :) For some reason, in previous gentoo installations, I didn't have to
mount boot. It was probably done automatically, but with the new one I apparently changed this (which is a good thing I believe). So here I was
compiling new kernels, copying them to /boot, checking to see if they were copied, updating my linux link... and probably was doing all
that virtually!? Mounting the boot did the trick, after that my modules loaded, eth0 was working again and even the ati-drivers with
fglrx!! Incredible, weeks I spend behind the screen for this. :)

So, what works for me on this system is gentoo 2.6.16-r6 with ati-drivers 8.23.7, not forgetting to mount /boot when copying new kernels:

- Ati Radeon 9600
- SiS chipset controllers
- Realtek, SiS ethernet controllers

Thanks m8's!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum