For When You Can't Have The Real Thing
[ start | index | login ]
start > gentoo > Kernel Upgrade

Kernel Upgrade

Created by dave. Last edited by dave, 10 years and 112 days ago. Viewed 2,325 times. #4
[diff] [history] [edit] [rdf]
labels
attachments

Gentoo Kernel Upgrade notes

Probably not relevant to anyone other than myself.

  • check portage version (you are ok unless you have a 2.0.x.x version; see elsewhere for help with that):
# emerge portage -vp

These are the packages that would be merged, in order:

Calculating dependencies… done! [ebuild R ] sys-apps/portage-2.1.4.4 USE="-build -doc -epydoc (-selinux)" LINGUAS="-pl" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

  • sync the portage tree:
# emerge --sync
  • check the available kernel source:
# emerge gentoo-sources -vp

These are the packages that would be merged, in order:

Calculating dependencies… done! [ebuild R ] sys-kernel/gentoo-sources-2.6.25-r4 USE="-build -symlink*" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

  • if it looks right, do it:
# USE=symlink emerge gentoo-sources
  • optionally be fussy about the version number:
# USE=symlink emerge =gentoo-sources-2.6.25-r7
  • get the config from the previous verion:
# mount /boot
# cd /usr/src/linux
# cp /boot/config-2.6.25-gentoo-r4 .config
  • update the config, this asks you the questions that are not satisfied from the previous configuration, you can usually just accept the defaults unless something is really obviously wrong:
# make oldconfig
  • build it
# make
# make modules_install
  • install it
# cp arch/x86_64/boot/bzImage /boot/kernel-2.6.25-gentoo-r7
# cp .config /boot/config-2.6.25-gentoo-r7
  • fix /boot/grub/grub.conf to include your new kernel, and if you feel lucky, make it the default
  • done!
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt