View previous topic :: View next topic |
Author |
Message |
dE_logics Advocate


Joined: 02 Jan 2009 Posts: 2336 Location: $TERM
|
Posted: Wed Mar 30, 2011 2:06 pm Post subject: What to rebuild after a kernel upgrade? |
|
|
Apparently there's no info on this and I started to realize it when X started to crash for some unknown reason (X, kernel logs reveal nothing at all....).
So what should be rebuild after a kernel upgrade? _________________ My blog |
|
Back to top |
|
 |
XQYZ Apprentice


Joined: 19 Jul 2009 Posts: 231 Location: Europe
|
Posted: Wed Mar 30, 2011 2:14 pm Post subject: |
|
|
Stuff that links against kernel sources? Nvidia's binary blob driver and extensions/modules for virtual servers comes to mind. Also everything that brings a kernel module along I guess. |
|
Back to top |
|
 |
GES Tux's lil' helper


Joined: 12 Jun 2005 Posts: 108 Location: Budapest, Hungary
|
Posted: Wed Mar 30, 2011 3:09 pm Post subject: |
|
|
Code: | # eix module-rebuild
[I] sys-kernel/module-rebuild
Available versions: 0.5 ~0.6
Installed versions: 0.5(16.25.50 2011-01-27)
Homepage: http://www.gentoo.org/
Description: A utility to rebuild any kernel modules which you have installed
|
|
|
Back to top |
|
 |
d2_racing Bodhisattva


Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Wed Mar 30, 2011 3:23 pm Post subject: |
|
|
Yep, I use module-rebuild since 2008, it's really something that I use when I change my kernel. |
|
Back to top |
|
 |
aCOSwt Bodhisattva

Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Wed Mar 30, 2011 3:24 pm Post subject: |
|
|
GES wrote: | Code: | # eix module-rebuild |
|
Of course, module-rebuild is the final solution... provided... you know with what you should populate it...
Because, per se, module-rebuild will not discover this automagically.
As SQYZ correctly points out, the kind of thing you are likely to have to rebuild is drivers.
But... depending on what you have installed, it might not be enough.
mikegpitt and I have had a fruitful discussion on how to find exhaustively the packages : (Posts 4 and 6) https://forums.gentoo.org/viewtopic-t-855503-highlight-kernel.html |
|
Back to top |
|
 |
depontius Advocate

Joined: 05 May 2004 Posts: 3530
|
Posted: Wed Mar 30, 2011 7:53 pm Post subject: |
|
|
aCOSwt wrote: | GES wrote: | Code: | # eix module-rebuild |
|
Of course, module-rebuild is the final solution... provided... you know with what you should populate it...
Because, per se, module-rebuild will not discover this automagically.
|
Has "module-rebuild populate" failed for you? _________________ .sigs waste space and bandwidth |
|
Back to top |
|
 |
aCOSwt Bodhisattva

Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Wed Mar 30, 2011 9:57 pm Post subject: |
|
|
depontius wrote: | Has "module-rebuild populate" failed for you? |
It has.
Well... in the past I mean... So... things might have changed since.
module-rebuild populate was recurrently unable to find drivers with more or less exotic naming schemes, those of the kind only a driver programmer can imagine... mixing hyphens and digits.
It was also unable to correctly deal with vmware kernel modules.
My opinion being that this kind of tool is either exhaustive or useless, I no longer use it. |
|
Back to top |
|
 |
davidm Guru


Joined: 26 Apr 2009 Posts: 557 Location: US
|
Posted: Wed Mar 30, 2011 10:04 pm Post subject: |
|
|
d2_racing wrote: | Yep, I use module-rebuild since 2008, it's really something that I use when I change my kernel. |
Same here. They cover it decently in the kernel upgrade guide as well.
http://www.gentoo.org/doc/en/kernel-upgrade.xml |
|
Back to top |
|
 |
depontius Advocate

Joined: 05 May 2004 Posts: 3530
|
Posted: Thu Mar 31, 2011 1:50 am Post subject: |
|
|
aCOSwt wrote: |
module-rebuild populate was recurrently unable to find drivers with more or less exotic naming schemes, those of the kind only a driver programmer can imagine... mixing hyphens and digits.
|
Since my usage generally extends to nvidia-drivers, openafs-kernel, and lirc, I've never seen a problem. But then, none of those are exotic. _________________ .sigs waste space and bandwidth |
|
Back to top |
|
 |
dE_logics Advocate


Joined: 02 Jan 2009 Posts: 2336 Location: $TERM
|
Posted: Thu Mar 31, 2011 3:51 am Post subject: |
|
|
I was wondering I need to rebuild things like X libs, *glib* etc... _________________ My blog |
|
Back to top |
|
 |
slackline Veteran


Joined: 01 Apr 2005 Posts: 1477 Location: /uk/sheffield
|
Posted: Thu Mar 31, 2011 8:25 am Post subject: |
|
|
If you're using the latest development arm of portage then you can use...
Code: |
emerge @module-rebuild && emerge @x11-module-rebuild
|
...without the need for sys-kernel/module-rebuild. _________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
Back to top |
|
 |
truekaiser l33t


Joined: 05 Mar 2004 Posts: 810
|
Posted: Sun May 08, 2011 7:48 pm Post subject: |
|
|
depontius wrote: | aCOSwt wrote: |
module-rebuild populate was recurrently unable to find drivers with more or less exotic naming schemes, those of the kind only a driver programmer can imagine... mixing hyphens and digits.
|
Since my usage generally extends to nvidia-drivers, openafs-kernel, and lirc, I've never seen a problem. But then, none of those are exotic. |
Lirc in the portage tree is out of date and no longer needed now that it is being included in the kernel all be it under staging drivers. |
|
Back to top |
|
 |
depontius Advocate

Joined: 05 May 2004 Posts: 3530
|
Posted: Sun May 08, 2011 7:55 pm Post subject: |
|
|
truekaiser wrote: | depontius wrote: | aCOSwt wrote: |
module-rebuild populate was recurrently unable to find drivers with more or less exotic naming schemes, those of the kind only a driver programmer can imagine... mixing hyphens and digits.
|
Since my usage generally extends to nvidia-drivers, openafs-kernel, and lirc, I've never seen a problem. But then, none of those are exotic. |
Lirc in the portage tree is out of date and no longer needed now that it is being included in the kernel all be it under staging drivers. |
You still need the userspace side, and some (like me) haven't moved to devinput yet. I saw a while back on the list one of the developers saying that some 2.6.37 code might be stale, and the 2.6.38 drivers would likely work better. It's a little new, yet. _________________ .sigs waste space and bandwidth |
|
Back to top |
|
 |
cwr Veteran

Joined: 17 Dec 2005 Posts: 1969
|
Posted: Mon May 09, 2011 8:38 am Post subject: |
|
|
dE_logics wrote: | I was wondering I need to rebuild things like X libs, *glib* etc... |
No. That is, I've never had to, and I don't see how they could be affected. The problem
is in modules which the kernel doesn't automatically rebuild, and some kernel profiling and
debugging stuff. I've never used binary drivers, but I'd expect that they'd bite you too.
Will |
|
Back to top |
|
 |
Sysa Apprentice


Joined: 16 Mar 2005 Posts: 161 Location: Europe
|
Posted: Mon May 09, 2011 9:42 am Post subject: |
|
|
Usually I do Code: | emerge -1 $(qlist -IC udev driver) | only but recently (after migration to 2.6.37 and KMS) I had to make Code: | emerge -1 $(qlist -IC xorg x11 drm) | also to solve a "black screen" problem. _________________ RedHat -> SuSE -> Debian -> Gentoo |
|
Back to top |
|
 |
|