RISC-V support for GNOME OS
Depends on
!1155 (closed)!1156 (merged)!1108 (merged)https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/merge_requests/4836https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/merge_requests/4863https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/merge_requests/4865
Instructions
Build
bst -o arch riscv64 build iso/image.bst freedesktop-sdk.bst:components/opensbi-u-boot.bst
bst -o arch riscv64 checkout iso/image.bst iso
bst -o arch riscv64 checkout freedesktop-sdk.bst:components/opensbi-u-boot.bst firmware
Install
qemu-img create -f qcow2 disk.qcow2 50G
qemu-system-riscv64 -M virt -m 16G -smp 8 -bios firmware/usr/share/opensbi/lp64/generic/firmware/fw_payload.elf -drive file=iso/installer.iso,format=raw,media=cdrom,if=virtio -drive file=disk.qcow2,format=qcow2,if=virtio -display spice-app,gl=on -device virtio-gpu,xres=1920,yres=1080 -device usb-ehci -device usb-kbd -device usb-tablet -netdev user,id=n1 -device virtio-net-pci,netdev=n1 -soundhw hda
Alternative to installation
bst -o arch riscv64 checkout vm/image.bst vm
unxz vm/disk.img.xz
qemu-img convert vm/disk.img -O qcow2 disk.qcow2
qemu-img resize disk.qcow2 50G
Run
qemu-system-riscv64 -M virt -m 16G -smp 8 -bios firmware/usr/share/opensbi/lp64/generic/firmware/fw_payload.elf -drive file=disk.qcow2,format=qcow2,if=virtio -display spice-app,gl=on -device virtio-gpu,xres=1920,yres=1080 -device usb-ehci -device usb-kbd -device usb-tablet -netdev user,id=n1 -device virtio-net-pci,netdev=n1 -soundhw hda
Edited by Valentin David