On Thursday, 24 July 2025 17:37:35 British Summer Time Dennis Clarke wrote:
> On 7/24/25 11:34, Michael wrote:
> > On Thursday, 24 July 2025 15:17:02 British Summer Time Dennis Clarke 
wrote:
> >> Dear gentoo folks :

> <snip>
> 
> Thank you for the reply and the hints.

You're welcome, but I'm the wrong guy to advise on this topic since I have no 
experience with your platform and in addition I do not use dracut!  :-)


> > The UUID 0AC0-79CF is from a DOS filesystem, most likely your ESP.
> 
> I have created a FAT32 fs on the boards storage thing that seems to be
> called /dev/mmcblk0 and the UUID data there looks reasonable. I will
> insert some newlines here for easy reading :
> 
> p550# blkid | grep 'mmc'
> /dev/mmcblk0p3: UUID="d2821a3b-7ad0-44dc-989b-8b5b0c80b947"
>                  BLOCK_SIZE="4096" TYPE="ext4"
>                  PARTUUID="b9db2337-1aaa-4d76-a87e-ee627e9ce8c9"
> 
> /dev/mmcblk0p1: LABEL_FATBOOT="esp" LABEL="esp" UUID="6706-97A3"
>                  BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System"
>                  PARTUUID="2df81552-4661-463a-8f61-0ccf7f13e58b"
> 
> /dev/mmcblk0p2: UUID="9be92059-9156-4cdd-ba4e-9cf12bb2548f"
>                  TYPE="swap"
>                  PARTUUID="f82f1a4c-8065-430a-ac7f-07c014962fc4"
> 
> It looks like the EFI or FAT32 partition has UUID "6706-97A3".

Your EFI System Partition (ESP) has a Partition UUID:

PARTUUID="2df81552-4661-463a-8f61-0ccf7f13e58b"

and on it resides a VFAT format filesystem with UUID:

UUID="6706-97A3"


> > The UUID d2821a3b-7ad0-44dc-989b-8b5b0c80b947 is from a linux fs.  Most
> > likely from your / partition.
> 
> Looks correct.

Yes, from what you're showing above the /dev/mmcblk0p3 block device has a 
Partition UUID of:

PARTUUID="b9db2337-1aaa-4d76-a87e-ee627e9ce8c9"

and on it there is an ext4 format filesystem with UUID:

UUID="d2821a3b-7ad0-44dc-989b-8b5b0c80b947"

So far, so good.  :-)


> > Run 'blkid' to find out which is which on your drive, or:
> > 
> > ls -alF /dev/disk/by-uuid
> 
> p550#
> p550# ls -alF /dev/disk/by-uuid
> total 0
> drwxr-xr-x 2 root root 160 Jul 24 15:10 ./
> drwxr-xr-x 9 root root 180 Jul 24 15:10 ../
> lrwxrwxrwx 1 root root  15 Jul 24 15:10 6706-97A3 -> ../../mmcblk0p1
> lrwxrwxrwx 1 root root  10 Jul 24 15:10
> 87ac8f75-7a82-4e5a-be96-94bfbe98117e -> ../../sda3
> lrwxrwxrwx 1 root root  15 Jul 24 15:10
> 9be92059-9156-4cdd-ba4e-9cf12bb2548f -> ../../mmcblk0p2
> lrwxrwxrwx 1 root root  10 Jul 24 15:10 F77A-55F6 -> ../../sda1
> lrwxrwxrwx 1 root root  10 Jul 24 15:10
> ab60f3c4-7658-44f9-b944-139378afc9f6 -> ../../sda2
> lrwxrwxrwx 1 root root  15 Jul 24 15:10
> d2821a3b-7ad0-44dc-989b-8b5b0c80b947 -> ../../mmcblk0p3
> p550#
> 
> That also looks perfectly reasonable for the /dev/mmcblk0 storage.

Your output above also shows a hard drive /dev/sda.  On this drive you have a 
second FAT formatted partition, with UUID F77A-55F6, as well as two other 
partitions.


> > Grub will need this to know where it can pick up the initramfs.img.
> > 
> > For details check:
> > 
> > https://wiki.gentoo.org/wiki/Dracut
> > https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader
> 
> I have been digging around various places trying to figure this out.
> The root filesystem UUID looks to be fine. The EFI stuff is a problem.

Your dracut error references a different UUID for ESP:

"[  229.517264] dracut Warning: /dev/disk/by-uuid/0AC0-79CF does not exist"

Did you have the correct ESP mounted within your chroot'ed fs?


> However, when I look into that EFI filesystem I do not see any sort
> of an initramfs file :
> 
> p550#
> p550# mount /dev/mmcblk0p1 /mnt/mmc_efi
> p550# find /mnt/mmc_efi
> /mnt/mmc_efi
> /mnt/mmc_efi/EFI
> /mnt/mmc_efi/EFI/ubuntu
> /mnt/mmc_efi/EFI/ubuntu/grub.cfg
> /mnt/mmc_efi/EFI/ubuntu/grubriscv64.efi
> /mnt/mmc_efi/EFI/ubuntu/grub.cfg_ubuntu
> /mnt/mmc_efi/EFI/debian
> /mnt/mmc_efi/EFI/debian/grub.cfg_ubuntu
> /mnt/mmc_efi/EFI/boot
> /mnt/mmc_efi/EFI/boot/bootriscv64.efi
> /mnt/mmc_efi/EFI/gentoo
> /mnt/mmc_efi/dtb
> /mnt/mmc_efi/dtb/eswin
> /mnt/mmc_efi/dtb/eswin/eic7700-hifive-premier-p550.dtb
> /mnt/mmc_efi/ubootefi.var
> p550#
> 
> At the very least we can see the FAT32 partition has a different
> UUID number.

You will not find a kernel or initramfs image in the ESP.  You will find these 
in your /boot directory.  The ESP will only contain the EFI executable of the 
bootloader, in the case of GRUB this would be 'grubriscv64.efi' by ubuntu, or 
'bootriscv64.efi' by gentoo.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to