mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00

- OpenSBI build target should be: qemu/sifive_u - U-Boot config name should be: sifive_fu540_defconfig Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
1.3 KiB
1.3 KiB
QEMU SiFive Unleashed Machine Platform
The QEMU SiFive Unleashed Machine is an emulation of the SiFive Unleashed platform.
To build this platform specific library and firmwares, provide the
PLATFORM=qemu/sifive_u parameter to the top level make
command line.
Platform Options
The QEMU SiFive Unleashed Machine platform does not have any platform specific options.
Executing on QEMU RISC-V 64bit
No Payload Case
Build:
make PLATFORM=qemu/sifive_u
Run:
qemu-system-riscv64 -M sifive_u -m 256M -display none -serial stdio \
-kernel build/platform/qemu/sifive_u/firmware/fw_payload.elf
U-Boot as a Payload
Note: the command line examples here assume that U-Boot was compiled using
the sifive_fu540_defconfig
configuration.
Build:
make PLATFORM=qemu/sifive_u FW_PAYLOAD_PATH=<uboot_build_directory>/u-boot.bin
Run:
qemu-system-riscv64 -M sifive_u -m 256M -display none -serial stdio \
-kernel build/platform/qemu/sifive_u/firmware/fw_payload.elf
or
qemu-system-riscv64 -M sifive_u -m 256M -display none -serial stdio \
-kernel build/platform/qemu/sifive_u/firmware/fw_jump.elf \
-device loader,file=<uboot_build_directory>/u-boot.bin,addr=0x80200000