Good afternoon VF2 fans, within the VF2 forum, there are 3 images I am aware of for the VF2:
How does one run these 3 VF2 images against qemu?
I know how to qemu run an older riscv fedora image for the hifive unmatched board:
Hi everybody, I’ve just finished rebasing from silverblue 36 to silverblue 37. All good. Now I’m going to try to run risc-v in a qemu virtual machine. I’m following this wiki: https://fedoraproject.org/wiki/Architectures/RISC-V/Installing The...
Reading time: 4 mins 🕑
Likes: 2 ❤
Thank you in advance
I wish as part of VF2 tools/scripts, there was another tool that would launch the image with qemu so we could run it without the actual hardware and try things out. At present I don’t know how to run qemu against any vf2 image built be it buildroot, debian, archlinux, gentoo, fedora.
Doesn’t anybody else want this?
Ideally I felt it would make a lot of sense that it finds itself in this other set of tools
kng in the vf2 community built. I personally find it was the best way to build the buildroot binaries and image. Even if we do have the hardware, it would make sense to qemu the image to try it out. Doesn’t it?
Thank you for listening.
I noticed davidlt mentioned on libera irc chats he recently updated some documents to do with running qemu on riscv
related to hifive unmatched boards however.
It mentions uboot and spl files which comes up in the VF2 boot conversations a lot especially with the required firmware updates we’ve needed to do to run the later kernels.
# Launch QEMU
-bios u/usr/share/uboot/qemu-riscv64_spl/u-boot-spl.bin \
-machine virt \
-smp 4 \
-m 4G \
-device loader,file=u/usr/share/uboot/qemu-riscv64_spl/u-boot.itb,addr=0x80200000 \
-object rng-random,filename=/dev/urandom,id=rng0 \
-device virtio-rng-device,rng=rng0 \
-device virtio-blk-device,drive=hd0 \
-drive file=Fedora-Developer-37-20221130.n.0-nvme.raw.img,format=raw,id=hd0 \
-device virtio-net-device,netdev=usernet \
There are notes here about fetching the dtb files from qemu…once again over my head LOL