[PATCH] Fix typo "addtional" -> "additional" in pflash section.
Manjae Cho
manjae.cho at samsung.com
Sat Dec 27 15:20:36 CET 2025
Also add network testing example using virtio-net device, which
should be helpful for users wanting to test U-Boot networking.
Signed-off-by: Manjae Cho <manjae.cho at samsung.com>
---
doc/board/emulation/qemu-riscv.rst | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/doc/board/emulation/qemu-riscv.rst b/doc/board/emulation/qemu-riscv.rst
index b5948d9affc..25fe7beb43f 100644
--- a/doc/board/emulation/qemu-riscv.rst
+++ b/doc/board/emulation/qemu-riscv.rst
@@ -43,7 +43,7 @@ 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:
+apply these additional settings to qemu-riscv64_smode_defconfig:
::
@@ -205,6 +205,29 @@ Invoke QEMU with:
qemu-system-riscv64 -M virt -nographic \
-drive if=pflash,format=raw,unit=0,file=u-boot.bin,readonly=off
+Testing with Network
+--------------------
+
+The QEMU virt machine supports VirtIO network devices, which can be useful for
+testing network functionality in U-Boot. To add a network device, use the
+following QEMU parameters:
+
+.. code-block:: bash
+
+ qemu-system-riscv64 -nographic -machine virt -bios u-boot.bin \
+ -m 256M -netdev user,id=net0 -device virtio-net-device,netdev=net0
+
+This will create a VirtIO network device (eth0) that U-Boot can detect and use.
+You can verify the network device is recognized by checking the boot output for::
+
+ Net: eth0: virtio-net#0
+
+From the U-Boot prompt, you can test network functionality with::
+
+ => net list
+ => dhcp
+ => ping 10.0.2.2
+
Debug UART
----------
--
2.43.0
More information about the U-Boot
mailing list