Skip to content

Commit

Permalink
OvmfPkg/RiscVVirt/README.md: bring your own OpenSBI
Browse files Browse the repository at this point in the history
Explain how users can compose their pre-OS environment purely from
binaries they've built themselves.

Cc: Andrei Warkentin <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Jiewen Yao <[email protected]>
Cc: Jordan Justen <[email protected]>
Cc: Sunil V L <[email protected]>
Signed-off-by: Laszlo Ersek <[email protected]>
Reviewed-by: Sunil V L <[email protected]>
  • Loading branch information
lersek authored and mergify[bot] committed Sep 12, 2023
1 parent e880c30 commit b7a48be
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions OvmfPkg/RiscVVirt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,20 @@ Below example shows how to boot openSUSE Tumbleweed E20.
-device virtio-net-pci,netdev=net0 \
-device virtio-blk-device,drive=hd0 \
-drive file=openSUSE-Tumbleweed-RISC-V-E20-efi.riscv64.raw,format=raw,id=hd0

## Test with your own OpenSBI binary
Using the above QEMU command line, **RISCV_VIRT_CODE.fd** is launched by the
OpenSBI binary that is bundled with QEMU. You can build your own OpenSBI binary
as well:

OPENSBI_DIR=...
git clone https://github.com/riscv/opensbi.git $OPENSBI_DIR
make -C $OPENSBI_DIR \
-j $(getconf _NPROCESSORS_ONLN) \
CROSS_COMPILE=riscv64-linux-gnu- \
PLATFORM=generic

then specify that binary for QEMU, with the following additional command line
option:

-bios $OPENSBI_DIR/build/platform/generic/firmware/fw_dynamic.bin

0 comments on commit b7a48be

Please sign in to comment.