Fetch firmware distfiles to install missing firmware files after reboot (when network can be unavailable):
emerge -f linux-firmware intel-microcodeInstall new kernel version and update config:
USE="symlink" emerge -av gentoo-sources
cd /usr/src
cp -a linux-OLD/.config linux/
make oldconfigConfigure setup options in /etc/genkernel.conf. Most important are:
INSTALL – install kernel to /boot directory, equivalent to:
genkernel --install kernelSAVE_CONFIG – store kernel config in /etc/kernels/,LVM, MDADM, MDADM_CONFIG – add initramfs support for booting from
LVM/mdadm device , equivalent to one of:
genkernel --lvm initramfs
genkernel --mdadm --mdadm-config=/etc/mdadm.conf initramfsFIRMWARE, ALLFIRMWARE, FIRMWARE_DIR – include all firmware files from
/lib/firmware in initramfs. This assumes:
+savedconfig and
/etc/portage/savedconfig/sys-kernel/linux-firmware-+hostonly.
Equivalent to:
genkernel --all-firmware initramfsMODULEREBUILD – re-emerge packages containing kernel modules after new kernel
has been built, equivalent to:
emerge @module-rebuildCOMPRESS_INITRD_TYPE – compression algorithm has to be enabled in kernel,
e.g. xz setting requires RD_XZ kernel option,TMPDIR – /var/tmp/portage/genkernelthen run:
genkernel all
Reboot. Check for missing firmware files and install as necessary:
dmesg | grep firmware | grep failureOption names and configuration symbols are based on Linux Kernel v6.12.
Sending files over interface using e.g. blueman:
BT_RFCOMM)Control flow Enforcement Technology, used when +cet USE flag is enabled for
build toolchain:
X86_KERNEL_IBT)X86_USER_SHADOW_STACK)IP_MULTIPLE_TABLES)###. TODO: merge wiki kernel install