tag 886424 - moreinfo reassign 886424 initramfs-tools 0.130 retitle 886424 lsinitramfs/unmkinitramfs do not see/extract second microcode cpio archive thanks
Am Sonntag, den 07.01.2018, 01:29 -0200 schrieb Henrique de Moraes Holschuh: > tag 886424 moreinfo > thanks > > On Fri, 05 Jan 2018, Benjamin Drung wrote: > > we create an initrd for a live system that should be bootable on > > AMD and > > Intel systems. Due to various CPU bugs, the microcode update for > > both > > AMD and Intel should be included in the initrd. We do not want to > > manage > > two different initrd files. > > > > amd64-microcode and intel-microcode are installed and configured to > > AMD64UCODE_INITRAMFS=early and IUCODE_TOOL_INITRAMFS=early, but > > only the > > microcode from AMD can be seen in the initrd: > > > > $ lsinitramfs /boot/initrd.img | head -n 10 > > . > > kernel > > kernel/x86 > > kernel/x86/microcode > > kernel/x86/microcode/AuthenticAMD.bin > > Yeah, but if you hexdump -C it, you will find both microcode cpio > archives in there. lsinitramfs skips over the second one for some > reason, but it is there. > > Furthermore, if you boot it, it ought to work, both in Intel and AMD. > > So, did you test your live-cd in both AMD and Intel boxes that would > accept a microcode update? Did it work? Please do, and report > back... I tested my live initrd on one Intel machine where the BIOS ships microcode <= 0xb00001f and the machine correctly loaded the new microcode: bdrung@server:~$ dmesg | grep micro [ 0.000000] microcode: CPU0 microcode updated early to revision 0xb000025, date = 2017-11-18 [ 0.659561] microcode: CPU1 microcode updated early to revision 0xb000025, date = 2017-11-18 [ 0.827533] microcode: CPU2 microcode updated early to revision 0xb000025, date = 2017-11-18 [...] [ 4.715407] microcode: CPU0 sig=0x406f1, pf=0x1, revision=0xb000025 [ 4.715419] microcode: CPU1 sig=0x406f1, pf=0x1, revision=0xb000025 [ 4.715431] microcode: CPU2 sig=0x406f1, pf=0x1, revision=0xb000025 bdrung@server:~$ grep micro /proc/cpuinfo | uniq microcode : 0xb000025 So you are right. Thanks for pointing it out. Loading the microcode works on Intel despite lsinitramfs not showing the Intel microcode and unmkinitramfs not extracting it. So I reassign this bug against initramfs-tools to fix lsinitramfs/unmkinitramfs to show/extract both microcode files. -- Benjamin Drung System Developer Debian & Ubuntu Developer ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Email: [email protected] URL: https://www.profitbricks.de Sitz der Gesellschaft: Berlin Registergericht: Amtsgericht Charlottenburg, HRB 125506 B Geschäftsführer: Achim Weiss, Matthias Steinberg

