Can't boot Fedora from Micro SD on HiFive Unmatched

Hello. I’m am trying to boot Fedora from micro SD, but am not having any luck. All I see on the serial console is a couple of control characters. I will note that I am able to successfully boot Ubuntu from the same SD card.

The command I’m using to build the Fedora image is:

sudo virt-builder --source https://dl.fedoraproject.org/pub/alt/risc-v/repo/virt-builder-images/images/index --no-check-signature --arch riscv64 --format raw --hostname riscv.sipanda.io --output /dev/mmcblk0 --root-password password:riscv fedora-rawhide-developer-20200108.n.0

Partitions on the SD are:

Device Start End Sectors Size Type
/dev/mmcblk0p1 2048 1435647 1433600 700M Linux filesystem
/dev/mmcblk0p2 1435648 1435711 64 32K HiFive Unleashed FSBL
/dev/mmcblk0p3 1435776 1452159 16384 8M HiFive Unleashed BBL
/dev/mmcblk0p4 1452160 62331263 60879104 29G Linux filesystem

Any help is appreciated!

A Fedora Unleashed image will not boot on an Unmatched. There is no Fedora Unmatched support as yet. Only Unleashed.

You might be able get Fedora booting by taking a working image like a freedom-u-sdk image, and then replacing the rootfs with a Fedora rootfs.