On 2025-03-16, Denis 'GNUtoo' Carikli wrote: > On Sat, 15 Mar 2025 11:49:14 +0100 > Simon Josefsson via "Development of GNU Guix and the GNU System > distribution." <guix-devel@gnu.org> wrote: >> I assume something must have written the non-free u-boot blob to >> internal flash memory or sdcard?
Yes. I think the eMMC on my rk3588 module came with u-boot preinstalled, so would not even have to install anything in that case. >> Is it necessary to re-run 'guix >> system reconfigure' to re-create the extlinux.conf for Guix after >> that external process rewrote the u-boot blob, or how would the >> entire workflow look like? On boot, U-Boot just reads the extlinux.conf file generated by "guix system reconfigure" ... you can update u-boot without re-generating extlinux.conf, and you and re-generate extlinux.conf witthout updating u-boot. e.g. boot rom loads u-boot (maybe with multiple stages), u-boot searches for and reads extlinux.conf, u-boot boots a kernel+initrd+dtb and you're off running guix. > Another option could be to tell the system configuration to only ship > GRUB and have u-boot provided by either mnt-reform or another project > load that GRUB. Yes, in theory using GRUB EFI would work much the same way: e.g. boot rom loads u-boot (maybe with multiple stages), u-boot searches for *.efi executables, u-boot loads an .efi executable (in this case grubaa64.efi?), grub boots a kernel+initrd (and uses .dtb from grub? or maybe loads one from the configuration) and you're off running guix. Although you might have to configure grub to use the "removable" media path (/EFI/boot/bootaa64.efi for arm64 I think?) so u-boot will find the grub binary to load and maybe cannot write EFI variables. Although, that is old information, I have not tried for a year or two, u-boot might be more clever now. I will at least test the approach of u-boot loading grub.efi at some point to be able to use guix with an encrypted rootfs (and maybe btrfs too?) on mnt/reform, as guix does not yet support having a split /boot partition, and I do not think u-boot does not support encrypted rootfs: https://issues.guix.gnu.org/48172 live well, vagrant
signature.asc
Description: PGP signature