summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-01-26 08:10:28 -0600
committerTom Rini <[email protected]>2025-01-26 08:10:28 -0600
commit8a2a71a4eec7afdca6377ee46b1ed7e78ec692c9 (patch)
tree460b9a426fc254b7fd9f4048dabccfb54822ba02 /doc
parent292278d6828e6c8c6ae11bc8658586d1acc411d4 (diff)
parent21de624eb89c647a21b06a5b0f5b186838be1d17 (diff)
Merge tag 'efi-2025-04-rc1-2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request efi-2025-04-rc1-2 Documentation: * describe creating a pflash file for qemu-system-riscv64 UEFI: * correct logging StartImage() * use LOGC_EFI consistently * reduce UEFI size if HAS_BOARD_SIZE_LIMIT=y * Update efi_run_image() to accept image and device path * Add a version of efi_binary_run() with more parameters * Move the fallback code from efi_run_image() * Pass in the required parameters from EFI bootmeth * bootmeth_efi: Support PXE booting Other: * Enable log filtering by function name
Diffstat (limited to 'doc')
-rw-r--r--doc/board/emulation/qemu-riscv.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/board/emulation/qemu-riscv.rst b/doc/board/emulation/qemu-riscv.rst
index 8388e13d96d..cf2f893b723 100644
--- a/doc/board/emulation/qemu-riscv.rst
+++ b/doc/board/emulation/qemu-riscv.rst
@@ -42,6 +42,23 @@ use the configurations qemu-riscv32_smode_defconfig and
qemu-riscv64_smode_defconfig instead. Note that U-Boot running in supervisor
mode requires a supervisor binary interface (SBI), such as RISC-V OpenSBI.
+To create a U-Boot binary that can be utilized with a pflash device in QEMU
+apply these addtional settings to qemu-riscv64_smode_defconfig:
+
+::
+
+ CONFIG_TEXT_BASE=0x20000000
+ CONFIG_XIP=y
+ # CONFIG_AVAILABLE_HARTS is not set
+ CONFIG_SYS_MONITOR_BASE=0x80200000
+
+Truncate the resulting u-boot.bin to 32 MiB. Add the following to your
+qemu-system-riscv64 command:
+
+.. code-block:: bash
+
+ -drive if=pflash,format=raw,unit=0,file=u-boot.bin
+
Running U-Boot
--------------
The minimal QEMU command line to get U-Boot up and running is: