Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

What to rebuild after a kernel upgrade?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

What to rebuild after a kernel upgrade?

  • Quote

Post by dE_logics » Wed Mar 30, 2011 2:06 pm

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
Top
XQYZ
Apprentice
Apprentice
User avatar
Posts: 231
Joined: Sun Jul 19, 2009 12:53 pm
Location: Europe
Contact:
Contact XQYZ
Website

  • Quote

Post by XQYZ » Wed Mar 30, 2011 2:14 pm

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.
Top
GES
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 108
Joined: Sun Jun 12, 2005 8:41 am
Location: Budapest, Hungary

  • Quote

Post by GES » Wed Mar 30, 2011 3:09 pm

Code: Select all

# 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
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Wed Mar 30, 2011 3:23 pm

Yep, I use module-rebuild since 2008, it's really something that I use when I change my kernel.
Top
aCOSwt
Bodhisattva
Bodhisattva
Posts: 2537
Joined: Fri Oct 19, 2007 1:48 pm
Location: Hilbert space

  • Quote

Post by aCOSwt » Wed Mar 30, 2011 3:24 pm

GES wrote:

Code: Select all

# 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) http://forums.gentoo.org/viewtopic-t-85 ... ernel.html
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Wed Mar 30, 2011 7:53 pm

aCOSwt wrote:
GES wrote:

Code: Select all

# 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
Top
aCOSwt
Bodhisattva
Bodhisattva
Posts: 2537
Joined: Fri Oct 19, 2007 1:48 pm
Location: Hilbert space

  • Quote

Post by aCOSwt » Wed Mar 30, 2011 9:57 pm

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.
Top
davidm
Guru
Guru
User avatar
Posts: 557
Joined: Sun Apr 26, 2009 4:05 pm
Location: US

  • Quote

Post by davidm » Wed Mar 30, 2011 10:04 pm

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
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Thu Mar 31, 2011 1:50 am

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
Top
dE_logics
Advocate
Advocate
User avatar
Posts: 2350
Joined: Fri Jan 02, 2009 3:20 am
Location: $TERM
Contact:
Contact dE_logics
Website

  • Quote

Post by dE_logics » Thu Mar 31, 2011 3:51 am

I was wondering I need to rebuild things like X libs, *glib* etc...
My blog
Top
slackline
Veteran
Veteran
User avatar
Posts: 1479
Joined: Fri Apr 01, 2005 7:22 pm
Location: /uk/sheffield
Contact:
Contact slackline
Website

  • Quote

Post by slackline » Thu Mar 31, 2011 8:25 am

If you're using the latest development arm of portage then you can use...

Code: Select all

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
Top
truekaiser
l33t
l33t
User avatar
Posts: 832
Joined: Fri Mar 05, 2004 11:00 pm

  • Quote

Post by truekaiser » Sun May 08, 2011 7:48 pm

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.
Top
depontius
Advocate
Advocate
Posts: 3533
Joined: Wed May 05, 2004 4:06 pm

  • Quote

Post by depontius » Sun May 08, 2011 7:55 pm

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
Top
cwr
Veteran
Veteran
Posts: 1969
Joined: Sat Dec 17, 2005 11:17 am

  • Quote

Post by cwr » Mon May 09, 2011 8:38 am

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
Top
Sysa
Apprentice
Apprentice
User avatar
Posts: 161
Joined: Wed Mar 16, 2005 8:52 am
Location: Europe

  • Quote

Post by Sysa » Mon May 09, 2011 9:42 am

Usually I do

Code: Select all

emerge -1 $(qlist -IC udev driver)
only but recently (after migration to 2.6.37 and KMS) I had to make

Code: Select all

emerge -1 $(qlist -IC xorg x11 drm)
also to solve a "black screen" problem.
RedHat -> SuSE -> Debian -> Gentoo
Top
Post Reply

15 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic