pmb.qemu.run: support riscv64

We're using the standard virt machine, adding virtio-gpu-pci for
graphics and are using the bios firmware that is installed from the
device package, instead of the one built-in to QEMU.

Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20221029114536.100268-2-luca@z3ntu.xyz%3E
This commit is contained in:
Luca Weiss 2022-10-29 13:45:36 +02:00 committed by Oliver Smith
parent 0624a1ae33
commit 4771fbac65
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 4 additions and 0 deletions

View File

@ -193,6 +193,10 @@ def command_qemu(args, arch, img_path, img_path_2nd=None):
command += ["-M", "virt"]
command += ["-cpu", "cortex-a57"]
command += ["-device", "virtio-gpu-pci"]
elif arch == "riscv64":
command += ["-M", "virt"]
command += ["-device", "virtio-gpu-pci"]
command += ["-bios", f"{rootfs}/usr/share/opensbi/generic/firmware/fw_jump.elf"]
else:
raise RuntimeError(f"Architecture {arch} not supported by this command"
" yet.")