Skip to content

Commit 1abfb70

Browse files
Jakub Klimczakhenrikbrixandersen
authored andcommitted
doc: connectivity: networking: Mention VIRTIO Network device in doc
Add instructions on running echo_server using the VIRTIO Network device in the QEMU Ethernet documentation. Signed-off-by: Jakub Klimczak <[email protected]>
1 parent 3433a45 commit 1abfb70

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/connectivity/networking/qemu_eth_setup.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ driver for QEMU connectivity:
4848
Driver is called ``smsc911x`` in Zephyr source tree.
4949
* For ``qemu_cortex_a53``, ``Intel(R) PRO/1000 Gigabit Ethernet driver``
5050
Ethernet driver is selected by default.
51+
* Additionally, the :zephyr:code-sample:`sockets-echo-server` sample contains
52+
overlay files for the VIRTIO Network device on ``qemu_x86_64``.
5153

5254
Step 1 - Create Ethernet interface
5355
==================================
@@ -85,6 +87,16 @@ In terminal #2, type:
8587
:goals: run
8688
:compact:
8789

90+
Alternatively, if you decided to use the VIRTIO Network device on qemu_x86_64:
91+
92+
.. zephyr-app-commands::
93+
:zephyr-app: samples/net/sockets/echo_server
94+
:host-os: unix
95+
:board: qemu_x86_64
96+
:gen-args: -DDTC_OVERLAY_FILE=virtnet.overlay -DEXTRA_CONF_FILE=overlay-virtnet.conf
97+
:goals: run
98+
:compact:
99+
88100
Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
89101

90102
.. _`net-tools`: https://github.com/zephyrproject-rtos/net-tools

0 commit comments

Comments
 (0)