From 21481dd31c68fe7d158d8ca3a03adafc85948366 Mon Sep 17 00:00:00 2001 From: Florian Grandel Date: Tue, 27 Aug 2024 09:52:24 +0200 Subject: [PATCH] doc: net: qemu: minor fixes Adds missing preliminaries and recommends to start persistent commands in the background. Signed-off-by: Florian Grandel --- doc/connectivity/networking/qemu_setup.rst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/connectivity/networking/qemu_setup.rst b/doc/connectivity/networking/qemu_setup.rst index 683ef0c1f13..e27ba72aa91 100644 --- a/doc/connectivity/networking/qemu_setup.rst +++ b/doc/connectivity/networking/qemu_setup.rst @@ -27,6 +27,7 @@ in a separate Git repository: .. code-block:: console + sudo apt install -y socat libpcap-dev git clone https://github.com/zephyrproject-rtos/net-tools cd net-tools make @@ -247,9 +248,8 @@ Terminal #1: .. code-block:: console - socat PTY,link=/tmp/slip.devMAIN UNIX-LISTEN:/tmp/slip.sockMAIN - $ZEPHYR_BASE/../net-tools/tunslip6 -t tapMAIN -T -s /tmp/slip.devMAIN \ - 2001:db8::1/64 + socat PTY,link=/tmp/slip.devMAIN UNIX-LISTEN:/tmp/slip.sockMAIN & + sudo $ZEPHYR_BASE/../net-tools/tunslip6 -t tapMAIN -T -s /tmp/slip.devMAIN 2001:db8::1/64 & # Now run Zephyr make -Cbuild run QEMU_INSTANCE=MAIN @@ -258,7 +258,6 @@ Terminal #2: .. code-block:: console - socat PTY,link=/tmp/slip.devOTHER UNIX-LISTEN:/tmp/slip.sockOTHER - $ZEPHYR_BASE/../net-tools/tunslip6 -t tapOTHER -T -s /tmp/slip.devOTHER \ - 2001:db8::1/64 + socat PTY,link=/tmp/slip.devOTHER UNIX-LISTEN:/tmp/slip.sockOTHER & + sudo $ZEPHYR_BASE/../net-tools/tunslip6 -t tapOTHER -T -s /tmp/slip.devOTHER 2001:db8::1/64 & make -Cbuild run QEMU_INSTANCE=OTHER