freebsd-ports/sysutils/u-boot-qemu-riscv64/pkg-descr
Mitchell Horne 344982d3c2 New port: sysutils/u-boot-qemu-riscv64
Add a u-boot port for QEMU's 64-bit RISC-V config. A simple u-boot
payload is provided that can be specified on the command line. It runs
in supervisor mode, and should be paired with OpenSBI.

Reviewed by:	manu
Approved by:	u-boot (manu)
Differential Revision:	https://reviews.freebsd.org/D25737
2020-07-31 17:06:21 +00:00

12 lines
497 B
Text

U-Boot loader for QEMU RISC-V 64-bit
To use this bootloader to boot a FreeBSD RISC-V image, install
emulators/qemu50 and sysutils/opensbi and execute it as:
qemu-system-riscv64 -machine virt -m 2048m -smp 2 -nographic \
-bios /usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf \
-kernel /usr/local/share/u-boot/u-boot-qemu-riscv64/u-boot.bin \
-drive file=/path/to/freebsd.img,format=raw,id=hd0 \
-device virtio-blk-device,drive=hd0
WWW: https://www.denx.de/wiki/U-Boot