Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nvidia-kernel problems
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Fri Apr 15, 2005 6:00 pm    Post subject: Nvidia-kernel problems Reply with quote

I installed Gentoo 2005.0 recently.
This is not my first Gentto install.
I compiled the 2.6.11-r5 kernel and installed emerged the nvidia kernel.
The nvidia.ko module was in /lib/modules allright but X refused to come up.
Browsing the forums I understood I should have emerged nvidia-glx as well.
After doing that I finally was able to enjoy kde.
Not finished installing everything yet I decided to do an emerge --sync first.
I noticed that the 2.6.11-r5 gentoo-sources kernel source was gone.In the
ChangeLog I read that r4 and r5 were replaced by a stable x86 r6.
What would you do? I emerged the newer source and compiled it using the same
.config.When I rebooted : no more X.
I removed nvidia-kernel and re-emerged it,hoping that would solve the problem since
during the install you see some text to the effect that the kernel files are being checked
and so the module would come out correctly.
Still no dice!!
I did a dmesg and this is what it said:
Code:

nvidia: magic version '2.6.11-gentoo-r5 K7 4KSTACKS gcc 3.3' should be '2.6.11-gentoo-r6 K7 4KSTACKS gcc 3.3'


I should report this as a bug but I forgot my password and donot have time now.
To solve this problem I deleted the nvidia file in /usr/portage/distfiles to force a new download of glx and nvidia.
To my glee this worked.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Fri Apr 15, 2005 6:25 pm    Post subject: Reply with quote

It was solved not because you deleted distfiles, it was solved because the kernel module was recompiled while booted with the new kernel...
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Fri Apr 15, 2005 6:36 pm    Post subject: Reply with quote

Apparently you donot know what happens after a linux kernel compile.
You have to reboot.And then you find X is gone,and then you re-emerge nvidia!
In other words I recompiled nvidia with the new kernel.I even did that twice!
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Fri Apr 15, 2005 6:42 pm    Post subject: Reply with quote

Ugh. Brain fart on my part :oops:. Got it ass-backwards.
Hm... Are you sure that before you emerged the nvidia kernel module the firs ttime and it didn't work you had updated the /usr/src/linux symlink to point to the newly emerged kernel source tree instead of the old one? That would explain how the magic version string in the module differed from the one in the running kernel.
Because it simply can't have been fixed by deleting the distfiles.

Edit: The reason for my assertion is that it's simply not possible that the distfile got corrupted and that went by undetected by both portage's and the nVidia installer's checksums. Or, to tone it down, it's a possibility so remote that it's about in the same class as a nice juicy steak materializing out of nowhere on a plate :).
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin


Last edited by moocha on Fri Apr 15, 2005 7:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
ctt
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2005
Posts: 136

PostPosted: Fri Apr 15, 2005 6:48 pm    Post subject: Reply with quote

Gerard van Vuuren wrote:
Apparently you donot know what happens after a linux kernel compile.
You have to reboot.And then you find X is gone,and then you re-emerge nvidia!
In other words I recompiled nvidia with the new kernel.I even did that twice!


How about this. What exactly would you put into a bug report for this problem? Specifically, do you have a clear set of steps for reproducing the error?

From the looks of things, you probably reversed some steps in your kernel recompile, but since your original post is so unclear, it's difficult to know exactly what was done wrong. As recompiling the kernel module fixed the problem (and doing something like this twice in succession should yield the same results as doing it once) there must have been something done in between the compiles. From the looks of things, it was unrelated to portage. Specifically, you probably:

- emerged new kernel
- emerged nvidia-glx
- emerged nvidia-kernel
- setup symlinks, loaded kernel into bootloader
- emerged nvidia-kernel (or nvidia-glx...in any event...one of them)
- rebooted
- started X and found there was a mismatch
- re-emerged the outdated package
- found everything works again

...but I can't be sure. May want to clearify things here before you file the bug report.
_________________
- chris
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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