Skip to content

Create microcode update archives and load them in GRUB #342

Merged

Conversation

pmenzel
Copy link
Contributor

@pmenzel pmenzel commented Aug 16, 2023

sudo ./mxgrub --initramfs
sudo ./mxgrub --update

The switch --initramfs now also creates the microcode update archives in /boot.

@pmenzel pmenzel force-pushed the create-microcode-update-archives-and-load-them-in-grub branch from 1985b53 to a4083ff Compare August 16, 2023 07:43
mxgrub/mxgrub Outdated Show resolved Hide resolved
The Linux kernel [documentation][1] and the distributions prepend them
to the possibly compressed initrd image manually, but then you need a
script like `lsinitramfs` to view the content, if it’s compressed.

Using separate files uses possibly not well tested GRUB code paths, but
allows us to easily handle all the files.

    $ gunzip --to-stdout -S .igz /boot/grub/initramfs.igz | cpio -i -t
    $ cpio -i --file /boot/amd-ucode.img -t
    $ cpio -i --file /boot/intel-ucode.img -t

[1]: https://docs.kernel.org/arch/x86/microcode.html
@pmenzel pmenzel force-pushed the create-microcode-update-archives-and-load-them-in-grub branch from fd7002f to f8108a1 Compare August 24, 2023 11:52
@pmenzel pmenzel merged commit b7a2899 into master Aug 24, 2023
@pmenzel
Copy link
Contributor Author

pmenzel commented Aug 24, 2023

Installed and distributed:

@deinemuddah:~$ ls -l /boot/*.img
-rw-r--r-- 1 root root    77312 Aug 24 13:56 /boot/amd-ucode.img
-rw-r--r-- 1 root root 13085696 Aug 24 13:56 /boot/intel-ucode.img
@deinemuddah:~$ sudo ./mxgrub/mxgrub --initramfs
@deinemuddah:~$ sudo ./mxgrub/mxgrub --update
@deinemuddah:~$ sudo pdist push --files=/boot --files=/usr/sbin/mxgrub --parallel 100 ALL

pmenzel added a commit that referenced this pull request Oct 5, 2023
*sauterelles* experienced frequent hangs since the boot on August 27th,
2023. Due to merge/pull request [*Create microcode update archives and
load them in GRUB*][1] newer microcode 0x5003604 was loaded early.

    [    0.000000] microcode: microcode updated early to revision 0x5003604, date = 2023-03-17
    [    0.000000] Linux version 5.15.86.mx64.443 (root@theinternet.molgen.mpg.de) (gcc (GCC) 10.4.0, GNU ld (GNU Binutils) 2.37) #1 SMP Thu Jan 5 12:40:04 CET 2023

History:

    $ last reboot | head -7
    reboot   system boot  5.15.77.mx64.440 Wed Oct  4 12:20   still running
    reboot   system boot  5.15.77.mx64.440 Wed Oct  4 10:33 - 12:19  (01:45)
    reboot   system boot  5.15.77.mx64.440 Mon Oct  2 11:00 - 12:19 (2+01:18)
    reboot   system boot  5.15.86.mx64.443 Mon Sep 11 11:42 - 12:19 (23+00:36)
    reboot   system boot  5.15.86.mx64.443 Sun Aug 27 19:28 - 11:23 (14+15:54)
    reboot   system boot  5.15.86.mx64.443 Tue Feb  7 11:39 - 11:23 (215+22:43)
    reboot   system boot  5.15.77.mx64.440 Wed Dec 14 23:05 - 11:32 (54+12:26)

As the identical file servers * epizootie*, *plage*, *rabies*, *lyssa*,
and *grele*, that haven’t been rebooted, do not show any problems, the
hangs might be due to the microcode updates.

Therefore, do not load Intel microcode updates early, until the issue is
better understood.

[1]: #342
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants