Kernel Upgrade

Kernel upgrade Gentoo

date: 2012-01-18

emerge -P gentoo-sources to remove oldest kernel before installing latest kernel

In most cases, temporary files used during compilation will still remain under the appropriate source directory under /usr/src. It is safe to remove these using rm.

You can also safely delete any modules that were used by this kernel. This can be done by removing the appropriate directories under /lib/modules/ that relate to the kernel versions you are removing. Be careful not to delete modules belonging to kernels that you still use!

Finally, you can mount your /boot partition and remove the bzImage file(s) for the kernel(s) you are pruning. You should also edit your boot loader configuration so that it no longer references such kernel(s).

emerge -av gentoo-sources to install latest kernel

genkernel --menuconfig --bootloader=grub all

emerge -av @module-rebuild old module-rebuild rebuild

check grub for correct syntax

Advanced: Using your old kernel .config to configure a new one It is sometimes possible to save time by re-using the configuration file from your old kernel when configuring the new one. Note that this is generally unsafe -- too many changes between every kernel release for this to be a reliable upgrade path.

The only situation where this is appropriate is when upgrading from one Gentoo kernel revision to another. For example, the changes made between gentoo-sources-2.6.9-r1 and gentoo-sources-2.6.9-r2 will be very small, so it is usually OK to use the following method. However, it is not appropriate to use it in the example used throughout this document: upgrading from 2.6.8 to 2.6.9. Too many changes between the official releases, and the method described below does not display enough context to the user, often resulting in the user running into problems because they disabled options that they really did not want to.

Reusing your old config with genkernel

cd /etc/kernels cp kernel-config-x86-2.6.9-gentoo-r1 kernel-config-x86-2.6.9-gentoo-r2 genkernel all

KERNEL

Processor type Core 2/newer Xeon

To enable Freeview in kernel Go to:-

DEVICE DRIVERS MULTIAMEDIA SUPPORT DVB/ATSC ADAPTERS (NEW) ENABLE SUPPORT FOR VARIOUS USB DVB DEVICES and select required from list.

Needs changing before new kernel written in spain 2017-07-08

Messages for package sys-fs/udev-233: * CONFIG_FW_LOADER_USER_HELPER:should not be set. But it is. * Please check to make sure these options are set correctly.

remove support for 64-bit kernel

A preallocated buffer-size of 2048 (kB) or higher is recommended for the HD-audio driver! CONFIG_SND_HDA_PREALLOC_SIZE=64

CONFIG_SND_DYNAMIC_MINORS=y

CONFIG_FHANDLE

2014-11-07-udev-upgrade Title Upgrade to udev >= 217 or eudev >= 2.1 Author Samuli Suominen ssuominen@gentoo.org Posted 2014-11-07 Revision 1

sys-fs/udev-217 and sys-fs/eudev-2.1 no longer provide a userspace firmware loader. If you require firmware loading support, you must use kernel 3.7 or greater with CONFIG_FW_LOADER_USER_HELPER=n. No action is required if none of your kernel modules need firmware. See [1] for more information on the upgrade.

[1] https://wiki.gentoo.org/wiki/Udev/upgrade#udev_216_to_217

Hauppauge WinTV-NOVA-T usb2 DVB-T USB2.0 support (NEW)

.config:31:warning: symbol value 'm' invalid for X86_INTEL_PSTATE .config:2289:warning: override: FB_MB862XX_LIME changes choice state .config:2710:warning: symbol value 'm' invalid for AB3100_CORE .config:2719:warning: symbol value 'm' invalid for MFD_WM8400 .config:2720:warning: symbol value 'm' invalid for MFD_WM8350_I2C .config:2721:warning: symbol value 'm' invalid for MFD_WM8350 .config:2722:warning: symbol value 'm' invalid for MFD_WM831X *.config:3368:warning: symbol value 'm' invalid for POWER_SUPPL

Messages for package sys-kernel/genkernel-4.0.1:

  • Genkernel v4.x is a new major release which touches
  • nearly everything. Be careful, read updated manpage
  • and pay special attention to program output regarding
  • changed kernel command-line parameters! *
  • Default kernel filename was changed from "kernel-genkernel--"
  • to "vmlinuz-". Please be aware that due to lexical ordering the
  • default boot entry in your boot manager could still point to last kernel
  • built with genkernel before that name change, resulting in booting old
  • kernel when not paying attention on boot.

Search Menu Config

/search string The neat thing is you don’t have to remember or note the path, as you can just press the number between parenthesis on the left of the option location, in this case (1), and it will take you directly there.

Read more: http://www.cnx-software.com/2013/05/23/how-to-find-configuration-options-quickly-in-make-menuconfig/#ixzz3DegzZrjY Needs changing before new kernel written in spain 2017-07-08 Messages for package sys-fs/udev-233: * CONFIG_FW_LOADER_USER_HELPER:should not be set. But it is. * Please check to make sure these options are set correctly.

remove support for 64-bit kernel

A preallocated buffer-size of 2048 (kB) or higher is recommended for the HD-audio driver! CONFIG_SND_HDA_PREALLOC_SIZE=64

CONFIG_SND_DYNAMIC_MINORS=y

CONFIG_FHANDLE

2014-11-07-udev-upgrade Title Upgrade to udev >= 217 or eudev >= 2.1 Author Samuli Suominen ssuominen@gentoo.org Posted 2014-11-07 Revision 1

sys-fs/udev-217 and sys-fs/eudev-2.1 no longer provide a userspace firmware loader. If you require firmware loading support, you must use kernel 3.7 or greater with CONFIG_FW_LOADER_USER_HELPER=n. No action is required if none of your kernel modules need firmware. See [1] for more information on the upgrade.

[1] https://wiki.gentoo.org/~udev_216_to_217

Hauppauge WinTV-NOVA-T usb2 DVB-T USB2.0 support (NEW)

.config:31:warning: symbol value 'm' invalid for X86_INTEL_PSTATE .config:2289:warning: override: FB_MB862XX_LIME changes choice state .config:2710:warning: symbol value 'm' invalid for AB3100_CORE .config:2719:warning: symbol value 'm' invalid for MFD_WM8400 .config:2720:warning: symbol value 'm' invalid for MFD_WM8350_I2C .config:2721:warning: symbol value 'm' invalid for MFD_WM8350 .config:2722:warning: symbol value 'm' invalid for MFD_WM831X *.config:3368:warning: symbol value 'm' invalid for POWER_SUPPL

Messages for package sys-kernel/genkernel-4.0.1:

  • Genkernel v4.x is a new major release which touches
  • nearly everything. Be careful, read updated manpage
  • and pay special attention to program output regarding
  • changed kernel command-line parameters! *
  • Default kernel filename was changed from "kernel-genkernel--"
  • to "vmlinuz-". Please be aware that due to lexical ordering the
  • default boot entry in your boot manager could still point to last kernel
  • built with genkernel before that name change, resulting in booting old
  • kernel when not paying attention on boot.

==== Search Menu Config ====

/search string The neat thing is you don’t have to remember or note the path, as you can just press the number between parenthesis on the left of the option location, in this case (1), and it will take you directly there.

Read more: http://www.cnx-software.com/~#ixzz3DegzZrjY