Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unusual kernel behavior
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
laurentp
n00b
n00b


Joined: 04 Feb 2006
Posts: 49

PostPosted: Fri May 19, 2006 2:52 am    Post subject: Unusual kernel behavior Reply with quote

Hi,

I'm having a really strange issue with my kenel. I tried upgraded it severals times, my /usr/src/linux is now pointing to 2.6.16-ck10, and each time I correctly mount boot and compile/copy my kernel to it. Each time I rebuilded modules with module-rebuild rebuild. Everything is working fine (ALSA, NVidia, etc...) but uname shoots me 2.6.15-ck7 ... I tried add features to the kernel so that I could detect if my kernel was new but it seems like an older one. Now I tried to install VMWare, (got some problems with their rc0.d dir anyway got a way around) and when configuring he tells me that my /usr/src/linux doesn't correspond to the version of my kernel. OK, I tried to use 2.6.15-ck7 directory, and now it shoots me :
Quote:

The kernel defined by this directory of header files does not have the same
address space size as your running kernel.


I made a hack to try kernel version not specified in uname and I always received this message when trying all my /usr/src directories. This problem really annoys me and get outside of my linux skills. Any suggestions ? Thanks for your time,

Laurent

Edit : Dunno where my head was, but I didn't think that gentoo had it in portage ... Installing and trying I'll be posting back info. ( time to get some sleep :P
Back to top
View user's profile Send private message
laurentp
n00b
n00b


Joined: 04 Feb 2006
Posts: 49

PostPosted: Fri May 19, 2006 3:45 am    Post subject: Reply with quote

Ok, now Vmware now seems to work correctly. It used 2.6.15-ck9 to build itself so it must be some bug with my hdd that prevents me from changing the kernel. What I still don't understand is why all my Nvidia, ALSA stuff work with the /usr/src/linux pointing to another kernel... So any suggestions for my hdd ?

Laurent
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Fri May 19, 2006 12:52 pm    Post subject: Reply with quote

/usr/src/linux isnt used during general system operation. the kernel is a free-standing object which doesnt require any kind of backing store.

it sounds like you are making a mistake when you are upgrading your kernel. the common mistakes are forgetting altogether to copy over a new kernel image to /boot after compilation, or forgetting to ensure /boot is mounted before you copy it over.

this may help: http://www.gentoo.org/doc/en/kernel-upgrade.xml
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
laurentp
n00b
n00b


Joined: 04 Feb 2006
Posts: 49

PostPosted: Fri May 19, 2006 8:05 pm    Post subject: Reply with quote

I know that /usr/src/linux is not used at run-time, but I module-rebuild all my NVidia and ALSA stuff with the new kernel ... Is it possible that they are correctly inserted even if they are build on a newer kernel that the one that is running ? I'm gonna try to follow the instructions again for like the tenth time to see if this time it may works ... Thanks for your help,

Laurent
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Sat May 20, 2006 12:37 am    Post subject: Reply with quote

when you emerge a kernel module, it always builds against /usr/src/linux even if your running kernel is different.

however, portage never removes any kernel module files. at one point, you will have emerged nvidia and alsa for your running 2.6.15 kernel and these modules were never removed. this is why it still works, even after rebuilding for a different kernel.
_________________
http://dev.gentoo.org/~dsd
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