[BL training-materials-updates] labs: yocto: use nmcli

Quentin Schulz quentin.schulz at bootlin.com
Fri Jul 27 14:49:19 CEST 2018

Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=ccdaea3d626157610eb68d50c96c78725063cb15


commit ccdaea3d626157610eb68d50c96c78725063cb15
Author: Quentin Schulz <quentin.schulz at bootlin.com>
Date:   Wed Jul 25 16:30:21 2018 +0200

    labs: yocto: use nmcli
    Shamelessly copy-pasted from the kernel lab.
    Signed-off-by: Quentin Schulz <quentin.schulz at bootlin.com>


 .../network-config-1.png                           | Bin 40480 -> 0 bytes
 .../network-config-2.png                           | Bin 24584 -> 0 bytes
 .../network-config-3.png                           | Bin 50383 -> 0 bytes
 .../yocto-advanced-configuration.tex               |  51 ++++++++++-----------
 4 files changed, 23 insertions(+), 28 deletions(-)

diff --git a/labs/yocto-advanced-configuration/network-config-1.png b/labs/yocto-advanced-configuration/network-config-1.png
deleted file mode 100644
index 5264e3e..0000000
Binary files a/labs/yocto-advanced-configuration/network-config-1.png and /dev/null differ
diff --git a/labs/yocto-advanced-configuration/network-config-2.png b/labs/yocto-advanced-configuration/network-config-2.png
deleted file mode 100644
index ebeb621..0000000
Binary files a/labs/yocto-advanced-configuration/network-config-2.png and /dev/null differ
diff --git a/labs/yocto-advanced-configuration/network-config-3.png b/labs/yocto-advanced-configuration/network-config-3.png
deleted file mode 100644
index 0e007a3..0000000
Binary files a/labs/yocto-advanced-configuration/network-config-3.png and /dev/null differ
diff --git a/labs/yocto-advanced-configuration/yocto-advanced-configuration.tex b/labs/yocto-advanced-configuration/yocto-advanced-configuration.tex
index 8ed6c78..fdb63ed 100644
--- a/labs/yocto-advanced-configuration/yocto-advanced-configuration.tex
+++ b/labs/yocto-advanced-configuration/yocto-advanced-configuration.tex
@@ -19,34 +19,29 @@ to the network, your instructor will provide you with a USB Ethernet
 adapter. A new network interface, probably \code{eth1} or \code{eth2},
 should appear on your Linux system.
-To configure this network interface on the workstation side, click on
-the {\em Network Manager} tasklet on your desktop, and select {\em
-Edit Connections}.
-Select the new {\em wired network connection}:
-In the \code{IPv4 Settings} tab, press the \code{Add} button
-and make the interface use a static IP
-address, like \code{} (of course, make sure that this
-address belongs to a separate network segment from the one of the main
-company network).
-You can use \code{} as \code{Netmask}, and leave the
-\code{Gateway} field untouched (if you click on the \code{Gateway} box, you
-will have to type a valid IP address, otherwise you won't be allowed to
-click on the \code{Apply} button).
+To configure your network interface on the workstation side, we need
+to know the name of the network interface connected to your board.
+   \item If you have the BeagleBone Black board, check the name
+      of your PC's Ethernet interface by running the \code{ifconfig -a}
+      command. It should be \code{eth<x>} or \code{eno<x>}.
+   \item If you have the BeagleBone Black Wireless board, you won't
+      be able to see the network interface corresponding to the Ethernet
+      over USB device connection yet, because it's only active when
+      the board turns it on, from U-Boot or from Linux. When this
+      happens, the network interface name will be \code{enx<macaddr>}.
+      Given the value we gave to \code{usbnet_hostaddr}, it will
+      therefore be \code{enxf8dc7a000001}.
+Then, instead of configuring the host IP address from NetWork Manager's
+graphical interface, let's do it through its command line interface,
+which is so much easier to use:
+nmcli con add type ethernet ifname enxf8dc7a000001 ip4
 \section{Set up the NFS server}

More information about the training-materials-updates mailing list