Thanks for the in-depth explanation and the word of warning regarding putting a custom u-boot on emmc! I think:
Even with the stock u-boot on eMMC, that u-boot will first try to read
boot.scrorextlinux.conffrom the first partition of your sd-card.
is where my generated image is faulty, it seems to have a EFI partition:
fdisk -l /gnu/store/baqznidcfg10gc5q03a53fgn26vv783d-disk-image
Disk /gnu/store/baqznidcfg10gc5q03a53fgn26vv783d-disk-image: 2.18 GiB, 2345885696 bytes, 4581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/gnu/store/baqznidcfg10gc5q03a53fgn26vv783d-disk-image1 2048 83967 81920 40M ef EFI (FAT-12/16/32)
/gnu/store/baqznidcfg10gc5q03a53fgn26vv783d-disk-image2 * 83968 4581807 4497840 2.1G 83 Linux
that’s not needed and shouldn’t be there. Guix does have other image-types (image-type Reference (GNU Guix Reference Manual)), so I’m currently trying my luck with raw-with-offset-image-type as that only generates an image with one partition. The boot/extlinux/extlinux.conf seems to be correctly generated at least.
Even with the stock u-boot on eMMC, that u-boot will first try to read
boot.scrorextlinux.conffrom the first partition of your sd-card. It does not matter that u-boot is on eMMC. The sd-card will be tried first.
If I read this correctly, I don’t have to build my own u-boot as a part of the sd-image then? and probably am able to rely on the stock u-boot to find boot/extlinux/extlinux.conf on my sdc and boot up guix? that’d be pretty cool, always assumed I had to build u-boot myself and put it on the sdc.
Edit: So with the single-partition image I get:
Warning: Type of root filesystem is unknown, so skipping check.
mount: mounting 38af4c98-533d-621b-e9fd-c91338afc93 on /root failed. No such file or directory.
Failed to mount 38af4c98-533d-621b-e9fd-c91338afc93 as root file system.
and then I’m dropped to initramfs. Was able to verify that the UUID matches the SDC partition:
/dev/mmcblk0p1: LABEL="Guix_image" UUID="38af4c98-533d-621b-e9fd-c91338af4c98" BLOCK_SIZE="4096" TYPE="ext4"
think I may have to use a different image type in the guix system image vommand/maybe a different offset?