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 :

      I am making very very slow progress with the SiFive P550 RISC-V
board wherein I needed to get a GRUB bootloader from the Sifive Ubuntu
flash image. I have no idea why the GRUB bootloader built inside the
chroot stage 3 is a failure. That is a whole other problem for some
other day. I am able to get the grub.cfg from /boot/grub/ directory on
the root filesystem. I put it there manually.

      Once I get the GRUB menu and simply hit enter on the Gentoo linux
menu item I get what looks like a bootable system .. until it is *not*.

Thus :
[snip ...]

[  229.478914] dracut Warning: Could not boot.


dracut Warning: Could not boot.

[  229.517264] dracut Warning: /dev/disk/by-uuid/0AC0-79CF does not exist
dracut Warning: [  229.525221] dracut Warning:
/dev/disk/by-uuid/d2821a3b-7ad0-44dc-989b-8b5b0c80b947 does not exist
/dev/disk/by-uuid/0AC0-79CF does not exist
dracut Warning: /dev/disk/by-uuid/d2821a3b-7ad0-44dc-989b-8b5b0c80b947
does not exist

Generating "/run/initramfs/rdsosreport.txt"
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick
or /boot
after mounting them and attach it to a bug report.

To get more debug information in the report,
reboot with "rd.debug" added to the kernel command line.

Dropping to debug shell.

dracut:/#

I have no idea where these strange UUID numbers are coming from. I was
very careful to ensure the grub.cfg and the /etc/fstab were correct.

Is there a trivial file somewhere that can be edited?


<snip>

Thank you for the reply and the hints.

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".


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


Looks correct.


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.


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.

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.

--
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken

Reply via email to