View previous topic :: View next topic |
Author |
Message |
LeechLord n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Jan 2006 Posts: 2
|
Posted: Sun Jan 29, 2006 10:33 pm Post subject: Kernel modules won't load after rebuilding kernel [SOLVED] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
dgaffuri Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sun Jan 29, 2006 10:36 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Aonoa Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/16619309624798a860a8c9c.png)
Joined: 23 May 2002 Posts: 589
|
Posted: Sun Jan 29, 2006 10:38 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Aonoa Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/16619309624798a860a8c9c.png)
Joined: 23 May 2002 Posts: 589
|
Posted: Sun Jan 29, 2006 10:40 pm Post subject: |
|
|
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. ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gentoo_dude l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Homer.jpg)
Joined: 08 May 2004 Posts: 645 Location: Washington, DC
|
Posted: Sun Jan 29, 2006 10:49 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
dgaffuri Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sun Jan 29, 2006 11:03 pm Post subject: |
|
|
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. ![Smile :)](images/smiles/icon_smile.gif) |
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 |
|
![](templates/gentoo/images/spacer.gif) |
LeechLord n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Jan 2006 Posts: 2
|
Posted: Mon Jan 30, 2006 7:29 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|