summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-08-14 16:13:49 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-08-20 08:38:12 +0200
commit7556927fc0a7e9df0cbf9f85e056569ecffead98 (patch)
treeb138a9e984e6182f41e3ce827d5f8c27deae4686
parent1ea6966687e51cee6e273d170ba391dfe7d7f765 (diff)
doc: qemu-riscv: describe booting with QEMU and KVM
The ELF U-Boot image produced by qemu-riscv64_smode_defconfig can be used to boot with QEMU and KVM. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r--doc/board/emulation/qemu-riscv.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/board/emulation/qemu-riscv.rst b/doc/board/emulation/qemu-riscv.rst
index 782f37251c3..509bf7c4a6c 100644
--- a/doc/board/emulation/qemu-riscv.rst
+++ b/doc/board/emulation/qemu-riscv.rst
@@ -133,6 +133,19 @@ An attached disk can be emulated in RISC-V virt machine by adding::
You will have to run 'scsi scan' to use it.
+Running with KVM
+----------------
+
+Running with QEMU using KVM requires an S-mode U-Boot binary as created by
+qemu-riscv64_smode_defconfig.
+
+Provide the U-Boot S-mode ELF image as *-kernel* parameter and do not add a
+*-bios* parameter, e.g.
+
+.. code-block:: bash
+
+ qemu-system-riscv64 -accel kvm -nographic -machine virt -kernel u-boot
+
Debug UART
----------