[PATCH] Fix typo "addtional" -> "additional" in pflash section.
Heinrich Schuchardt
xypron.glpk at gmx.de
Sat Dec 27 16:45:31 CET 2025
Am 27. Dezember 2025 16:08:16 MEZ schrieb Tom Rini <trini at konsulko.com>:
>On Sat, Dec 27, 2025 at 11:20:36PM +0900, Manjae Cho wrote:
>
>> 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
>> ----------
>>
>
>This is a case where it's appropriate to do 2 patches. If Heinrich picks
>it up as 1, that's fine too, but it is two distinct changes.
>
Thank you Manjahe for addressing both the networking description as well as the typo.
The added information does not look RISC-V specific. We already have doc/board/emulation/blkdev.rst. I would suggest to add a similar file for networking.
There are different noteworthy network devices in emulation (e1000, virtio-net-pci, ...). You can have user network or use tap/tan. You may want to set the mac address. Tftp and DHCP provided by QEMU are of interest. So quite a bunch of information that we can add over time.
Best regards
Heinrich
More information about the U-Boot
mailing list