I have an elderly AMD64 system (Athlon II, K10) and therefore I have configured the microcode stuff in the kernel like: $grep MICROCODE .config CONFIG_MICROCODE=y # CONFIG_MICROCODE_INTEL is not set CONFIG_MICROCODE_AMD=y CONFIG_MICROCODE_OLD_INTERFACE=y However, after running "genkernel all" (also with activated microcode support) the kernel configuration has been silently modified and the CONFIG_MICROCODE_INTEL is silently set. Genkernel itself complains about missing package intel-microcode during generation of initrd. But even worse, if I generate now the grub configuration file, it claims to find intel-ucode.cpio and adds it as first element to initrd line. After the next reboot the system is hosed because, /intel-ucode.cpio is nowhere to find and the boot sequence stops.
Nothing to do here for arm64, unCCing. Aarch64 doesn't have any intel stuff, probably mistaken CC with amd64.
(In reply to Mart Raudsepp from comment #1) > Nothing to do here for arm64, unCCing. Aarch64 doesn't have any intel stuff, > probably mistaken CC with amd64. Sorry, my mistake.
it is up to the genkernel maintainers, nothing to do for amd64 here
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=febc1b12b5b393e918da94b9f1c029f2adcea215 commit febc1b12b5b393e918da94b9f1c029f2adcea215 Author: Robin H. Johnson <robbat2@gentoo.org> AuthorDate: 2018-08-04 23:19:46 +0000 Commit: Robin H. Johnson <robbat2@gentoo.org> CommitDate: 2018-08-04 23:25:31 +0000 microcode: add flexability: type & initramfs control Bug reported that the MICROCODE option did not provide enough flexability, as it enabled both AMD & Intel options by default, and placed both sets of microcode into the initramfs. Existing boolean option MICROCODE is now a string, which takes no/all/amd/intel as inputs, describing which variant of kernel options to enable. Boolean inputs are converted to no/all settings. This option no longer include microcode in initramfs. New option MICROCODE_INITRAMFS, enabled by default, includes the microcode for matching kernel config options (INTEL/AMD) into the initramfs. For users using sys-boot/grub-2.02-r1 or another bootloader that supports multiple initramfs options, this option can be safely disabled. Fixes: https://bugs.gentoo.org/662492 Reported-by: Joerg Schaible <joerg.schaible@gmx.de> Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> gen_cmdline.sh | 18 +++++++++++++++--- gen_configkernel.sh | 18 ++++++++---------- gen_determineargs.sh | 11 ++++++++++- gen_initramfs.sh | 3 ++- genkernel.conf | 10 ++++++++-- 5 files changed, 43 insertions(+), 17 deletions(-)
(In reply to Joerg Schaible from comment #0) > However, after running "genkernel all" (also with activated microcode > support) the kernel configuration has been silently modified and the > CONFIG_MICROCODE_INTEL is silently set. Genkernel itself complains about > missing package intel-microcode during generation of initrd. This is fixed in HEAD now. You will have to set MICROCODE=amd for your case. > But even worse, if I generate now the grub configuration file, it claims to > find intel-ucode.cpio and adds it as first element to initrd line. After the > next reboot the system is hosed because, /intel-ucode.cpio is nowhere to > find and the boot sequence stops. This is entirely outside the scope of genkernel, that reference is generated by grub. I'm going to clone the bug for that.