I was reading this wiki article and I noticed that it’s outdated and needs updating. I am using Qemu but it’s possible the other documentation needs updating too. In particular I noticed:
- The machine type in the example is
-machine virt, but the linked images are for SiFive HiFive Unmatched & Unleashed, so AFAIK this should be
- The file name is not the same as the images, it currently starts with “focal”. This one is a fairly minor one to fix though as the filename will change as new versions are published.
- When I try to boot the image after fixing the above problems, Qemu gives me the error of
No 'virtio-bus' bus found for device 'virtio-net-device', so I guess there is something missing, maybe the requirements for
-machine sifive_uare different from the requirements of
-machine virtand simply swapping out the name isn’t enough.
Also, if I try to boot these images on
-machine virt (which I don’t expect to work), this happens:
Retrieving file: /lib/firmware/5.11.0-1007-generic/device-tree/qemu-riscv.dtb Failed to load '/lib/firmware/5.11.0-1007-generic/device-tree/qemu-riscv.dtb' Skipping l0r for failure retrieving fdt SCRIPT FAILED: continuing... libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk virtio-blk#8... ** Unrecognized filesystem type ** ** Unrecognized filesystem type ** Found 6 disks ** Invalid partition 21 ** Cannot read EFI system partition BootOrder not defined EFI boot manager: Cannot load any image