diff options
author | Laszlo Ersek <lersek@redhat.com> | 2023-09-07 16:58:25 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-09-12 06:07:32 +0000 |
commit | b7a48bed16dd75ce6a864540ab7dc38d8f1f657b (patch) | |
tree | 7ffed068b942e4abf0f29caccfa6ab20290156e0 /OvmfPkg/RiscVVirt | |
parent | e880c307c5808a9a972e5bf3b859396610edd67b (diff) | |
download | edk2-b7a48bed16dd75ce6a864540ab7dc38d8f1f657b.tar.gz edk2-b7a48bed16dd75ce6a864540ab7dc38d8f1f657b.tar.bz2 edk2-b7a48bed16dd75ce6a864540ab7dc38d8f1f657b.zip |
OvmfPkg/RiscVVirt/README.md: bring your own OpenSBI
Explain how users can compose their pre-OS environment purely from
binaries they've built themselves.
Cc: Andrei Warkentin <andrei.warkentin@intel.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Sunil V L <sunilvl@ventanamicro.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Diffstat (limited to 'OvmfPkg/RiscVVirt')
-rw-r--r-- | OvmfPkg/RiscVVirt/README.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OvmfPkg/RiscVVirt/README.md b/OvmfPkg/RiscVVirt/README.md index 8c3ac37b80..dbb40bbe89 100644 --- a/OvmfPkg/RiscVVirt/README.md +++ b/OvmfPkg/RiscVVirt/README.md @@ -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
|