Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Modules fail to load after recompiling 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
Zach_the_Lizard
n00b
n00b


Joined: 20 Jun 2008
Posts: 17
Location: /root

PostPosted: Sun Jun 22, 2008 7:12 pm    Post subject: Kernel Modules fail to load after recompiling kernel Reply with quote

Hello once again!

After getting my install exactly as I wanted it, after installing once already, I realized that I had foolishly forgotten to enable ALSA support. Without thinking, I typed "emerge alsa," and walked away to get a drink. Much to my surprise, I came back to discover that doing so had downloaded an entirely new kernel. So, still having my kernel source, I head to /usr/src/linux, make menuconfig, make && make modules_install. All appears to be well. I then re-emerge the nvidia drivers. As the kernel is the same name, I don't need to edit grub.conf. I do copy the new kernel to /boot, however. I restart and boot into my new kernel and instantly the pain starts.

X wouldn't start at first, and I was curious as to why. It appears the nvidia kmod (amongst others) has some sort of mismatch between the kernel I just compiled, so I re-emerge it and try starting X again. No dice. I try rebooting (something I think is absolutely unnecessary). As I boot,, I make note of a few things that scroll by. the nvidia kernel module fails to load, as I see, but it goes on to explain why. It lists says: kernel-2.6.24-gentoo-r8 SMP mod_unload CORE2 4KSTACKS should be '2.6.24-gentoo-r8 mod_unload CORE2.' This is a rather interesting error. Of course, a few other kernel modules ended up like this, but the root of the problem is likely the same.

Can anyone shed any light on what I should do?
Back to top
View user's profile Send private message
shazam75
Guru
Guru


Joined: 18 Mar 2006
Posts: 563
Location: Brisbane, Australia

PostPosted: Mon Jun 23, 2008 12:51 am    Post subject: Reply with quote

Hi

Yes there is an issue with nvidia and the kernel - every time you update the kernel (or if there are any changes) the nvidia kernel needs to be updated or reinstalled - try running env-update.

Also look at

http://www.gentoo.org/doc/en/nvidia-guide.xml

to see what else - i am at work and i have made notes about this - but they at at home

Cheers
Shelton.
_________________
answer an unanswered post:
https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
muhsinzubeir
l33t
l33t


Joined: 29 Sep 2007
Posts: 948
Location: /home/muhsin

PostPosted: Mon Jun 23, 2008 10:54 am    Post subject: Reply with quote

Quote:
Without thinking, I typed "emerge alsa," and walked away to get a drink. Much to my surprise, I came back to discover that doing so had downloaded an entirely new kernel.


1]
it downloaded a new kernel...thats interesting ill try it when i get to my box.You need to re-check what has been downloaded, but im really curious if this is possible to happen.If it has merge alsa-driver definately you will need to get rid of it, as its no longer supported the one in the kernel is preffered instead.

2]regarding nvidia, yes every kernel compile i have to run
Code:
modules-rebuild rebuild
to get nvidia re-emerged en other modules.

cheers...
_________________
~x86
p5k-se
Intel Core 2 Duo
Nvidia GT200
http://www.zanbytes.com
Back to top
View user's profile Send private message
kimmie
Guru
Guru


Joined: 08 Sep 2004
Posts: 531
Location: Australia

PostPosted: Tue Jun 24, 2008 6:08 am    Post subject: Reply with quote

The error message might be complaining that your kernel was built with 4K stacks instead of 8K. The option is 4KSTACKS, it's down the bottom in the Kernel Hacking section. Try turning it off, then rebuild your kernel and your modules.
Back to top
View user's profile Send private message
shazam75
Guru
Guru


Joined: 18 Mar 2006
Posts: 563
Location: Brisbane, Australia

PostPosted: Thu Jun 26, 2008 4:25 am    Post subject: Reply with quote

Hi Zach

You must also run
Code:
eselect opengl set nvidia


Cheers
Shelton.
_________________
answer an unanswered post:
https://forums.gentoo.org/search.php?search_id=unanswered
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