Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What to rebuild after a kernel upgrade?
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
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2336
Location: $TERM

PostPosted: Wed Mar 30, 2011 2:06 pm    Post subject: What to rebuild after a kernel upgrade? Reply with quote

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
View user's profile Send private message
XQYZ
Apprentice
Apprentice


Joined: 19 Jul 2009
Posts: 231
Location: Europe

PostPosted: Wed Mar 30, 2011 2:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
GES
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2005
Posts: 108
Location: Budapest, Hungary

PostPosted: Wed Mar 30, 2011 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Mar 30, 2011 3:23 pm    Post subject: Reply with quote

Yep, I use module-rebuild since 2008, it's really something that I use when I change my kernel.
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Wed Mar 30, 2011 3:24 pm    Post subject: Reply with quote

GES wrote:
Code:
# eix module-rebuild

Of course, module-rebuild is the final solution... provided... you know with what you should populate it... :twisted:
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
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3530

PostPosted: Wed Mar 30, 2011 7:53 pm    Post subject: Reply with quote

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... :twisted:
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
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Wed Mar 30, 2011 9:57 pm    Post subject: Reply with quote

depontius wrote:
Has "module-rebuild populate" failed for you?

It has.
Well... in the past I mean... :twisted: 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... :roll: 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
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Wed Mar 30, 2011 10:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3530

PostPosted: Thu Mar 31, 2011 1:50 am    Post subject: Reply with quote

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... :roll: 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
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2336
Location: $TERM

PostPosted: Thu Mar 31, 2011 3:51 am    Post subject: Reply with quote

I was wondering I need to rebuild things like X libs, *glib* etc...
_________________
My blog
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1477
Location: /uk/sheffield

PostPosted: Thu Mar 31, 2011 8:25 am    Post subject: Reply with quote

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
View user's profile Send private message
truekaiser
l33t
l33t


Joined: 05 Mar 2004
Posts: 810

PostPosted: Sun May 08, 2011 7:48 pm    Post subject: Reply with quote

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... :roll: 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
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3530

PostPosted: Sun May 08, 2011 7:55 pm    Post subject: Reply with quote

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... :roll: 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
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Mon May 09, 2011 8:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Sysa
Apprentice
Apprentice


Joined: 16 Mar 2005
Posts: 161
Location: Europe

PostPosted: Mon May 09, 2011 9:42 am    Post subject: Reply with quote

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
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