#1035332 grub-efi-arm64: "error: failed to install/update FDT." after bullseye upgrade

#1035332#5
Date:
2023-05-01 03:06:23 UTC
From:
To:
After updating to the latest point release, these apm mustang systems fail to boot the kernel, all I see is:

    error: failed to install/update FDT.
    Loading Linux 5.10.0-22-arm64 ...
    Loading initial ramdisk ...

    Press any key to continue...

Same result with two different machines. Both worked fine since before
the upgrade (although not entirely sure how long since they last were
rebooted, but surely since the previous point release).

I do not recall seeing the error message before when it was working;
it flashes by quite quickly... and if the boot was successful, I might
have never noticed.

Technically, the system details from this bug report are from a
machine I have not yet rebooted, but it is configured essentially
identically to the two machines that are failing to boot (mainly a
different amount of ram).

Will try to figure out how to boot these things into rescue mode and
see if an older grub still works...


Apparently this is "Vagrant files bugs on grub day." :/


live well,
  vagrant

#1035332#12
Date:
2023-05-01 19:08:38 UTC
From:
To:
The workaround was to uninstall shim-signed and re-install grub
(grub-install /dev/sda ; grub-install /dev/sdb).

Worked for three of three machines so far... I tested re-installing
shim-signed on one machine and re-installing grub and the problem came
back.

No idea why this started happening just now, as shim-signed and related
packages were all installed before the bullseye point release, but did
not have this problem...

live well,
  vagrant

#1035332#17
Date:
2023-05-05 20:20:31 UTC
From:
To:
binary itself is fine, and boots ok when started directly from the
firmware. But put shim in first and things break. I've turned debug up
to see what's happening.

On a working boot, I can see:

...
kern/efi/fdt.c:38: found registered FDT @ 0x43fd2c3000
loader/efi/fdt.c:63: allocating 26028 bytes for fdt
loader/arm64/linux.c:90: Initrd @ 0x43924fc000-0x4393fff69a
loader/efi/fdt.c:98: Installed/updated FDT configuration table @ 0x43f8b70000
...

On a failing boot:
...
kern/efi/fdt.c:38: found registered FDT @ 0x43fd2c4000
loader/efi/fdt.c:63: allocating 26028 bytes for fdt
error: failed to install/update FDT.
...

Digging further...