Provide guidance for testing capsule updates on x86/x86_64.

Signed-off-by: Elliot Berman <[email protected]>
---
 doc/board/emulation/qemu-x86.rst | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/doc/board/emulation/qemu-x86.rst b/doc/board/emulation/qemu-x86.rst
index c604e42990e..444ac2281b2 100644
--- a/doc/board/emulation/qemu-x86.rst
+++ b/doc/board/emulation/qemu-x86.rst
@@ -113,6 +113,23 @@ sure the specified CPU supports 64-bit like '-cpu 
core2duo'. Conversely
 '-cpu pentium' won't work for obvious reasons that the processor only
 supports 32-bit.
 
+Running as flash binary
+-----------------------
+
+To create a U-Boot binary that can accept capsule updates, build
+qemu-x86_64_defconfig or qemu-x86_defconfig with::
+
+   CONFIG_EFI_CAPSULE_ON_DISK=y
+   CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y
+   CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y
+
+Invoke QEMU with:
+
+.. code-block:: bash
+
+   qemu-system-x86_64 -drive 
if=pflash,format=raw,file=path/to/u-boot.rom,readonly=off
+
+
 Booting distros
 ---------------
 

-- 
2.54.0

Reply via email to