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:
parent
0624a1ae33
commit
4771fbac65
|
@ -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.")
|
||||
|
|
Loading…
Reference in New Issue