This patch adds support to run swupdate images for RISC-V64 on qemu. As
firmware, we use OpenSBI with u-boot payload in s-mode.
Signed-off-by: Felix Moessbauer <felix.moessbauer@...>
---
start-qemu.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/start-qemu.sh b/start-qemu.sh
index cccc51e..fcfbc5b 100755
--- a/start-qemu.sh
+++ b/start-qemu.sh
@@ -176,6 +176,14 @@ if [ -n "${SECURE_BOOT}${SWUPDATE_BOOT}" ]; then
-bios ${u_boot_bin} \
${QEMU_COMMON_OPTIONS} "$@"
;;
+ rv64|riscv64)
+ opensbi_bin=${FIRMWARE_BIN:-./build/tmp/deploy/images/qemu-${QEMU_ARCH}/fw_payload.bin}
+
+ ${QEMU_PATH}${QEMU} \
+ -drive file=${IMAGE_PREFIX}.wic,discard=unmap,if=none,id=disk,format=raw \
+ -bios ${opensbi_bin} \
+ ${QEMU_COMMON_OPTIONS} "$@"
+ ;;
*)
echo "Unsupported architecture: ${arch}"
exit 1
--
2.34.1