Download OpenSBI release binary with get-opensbi.sh
bash get-opensbi.sh
Script file: run-opensbi.sh
qemu-system-riscv64 -M virt \
-display none -serial stdio \
-bios none \
-device loader,file=${BUILD_DIR}/opensbi-${OPENSBI_VERSION}-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.bin,addr=0x80000000
qemu-system-riscv64 -M virt \
-display none -serial stdio \
-bios ${BUILD_DIR}/opensbi-${OPENSBI_VERSION}-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.bin
qemu-system-riscv64 -M virt \
-display none -serial stdio \
-bios ${BUILD_DIR}/opensbi-${OPENSBI_VERSION}-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.elf