Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel modules won't load after rebuilding kernel [SOLVED]
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
LeechLord
n00b
n00b


Joined: 29 Jan 2006
Posts: 2

PostPosted: Sun Jan 29, 2006 10:33 pm    Post subject: Kernel modules won't load after rebuilding kernel [SOLVED] Reply with quote

I just rebuilt my kernel (make && make modules_install && make install) and after a reboot, none of my modules in autoload.d (bttv, snd-via82xx, nls_utf8) accepts to load - they are complaining about "invalid module format". I have done nothing odd since the last time time I modified my kernel (not even an update world). Make clean doesn't help.
When I try make modules, it doesn't seem to actually rebuild any module.
This is with gentoo-sources-2.6.15-r1.


Last edited by LeechLord on Mon Jan 30, 2006 7:29 am; edited 1 time in total
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sun Jan 29, 2006 10:36 pm    Post subject: Reply with quote

Check errors in dmesg. Are you sure you mounted /boot before running make install?
_________________
Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject
Back to top
View user's profile Send private message
Aonoa
Guru
Guru


Joined: 23 May 2002
Posts: 589

PostPosted: Sun Jan 29, 2006 10:38 pm    Post subject: Reply with quote

Just typing make will make both the new kernel and the new modules, make modules_install is then enough to install the modules in their proper locations. Have a look in /lib/modules/gentoo-sources-2.6.15-r1 if the modules are actually put there. Did you rebuild the same kernel, or have you changed to a new version?

I only ever use this command:
Code:
make && make modules_install
Back to top
View user's profile Send private message
Aonoa
Guru
Guru


Joined: 23 May 2002
Posts: 589

PostPosted: Sun Jan 29, 2006 10:40 pm    Post subject: Reply with quote

dgaffuri wrote:
Check errors in dmesg. Are you sure you mounted /boot before running make install?


The modules are not put in /boot, if he forgot.. then the old kernel would have been loaded and he would not get any errors. At least, that's what I think. :)
Back to top
View user's profile Send private message
gentoo_dude
l33t
l33t


Joined: 08 May 2004
Posts: 645
Location: Washington, DC

PostPosted: Sun Jan 29, 2006 10:49 pm    Post subject: Reply with quote

make install does not install modules, but the kernel in the /boot partition.
To install the modules you do make modules_install which you did.
Try again to recompile your kernel and see if will accept the modules you are loading. Also make sure that you have selected the needed modules as M in the kernel, not *.
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sun Jan 29, 2006 11:03 pm    Post subject: Reply with quote

Heion wrote:
The modules are not put in /boot, if he forgot.. then the old kernel would have been loaded and he would not get any errors. At least, that's what I think. :)

If he forgot he's running the old kernel with the new modules. Depending on configuration changes (changed compiler, changed PREEMPT, changed SMP) modules will refuse to load. That's why dmesg should be checked for specific errors.
_________________
Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject
Back to top
View user's profile Send private message
LeechLord
n00b
n00b


Joined: 29 Jan 2006
Posts: 2

PostPosted: Mon Jan 30, 2006 7:29 am    Post subject: Reply with quote

I had indeed forgotten to mount /boot (mainly because I was used to having /boot on the same partition as /). Thanks folks.
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