[BL training-materials-updates] U-Boot: configure the network through nmcli

Michael Opdenacker michael.opdenacker at bootlin.com
Wed Oct 3 18:06:16 CEST 2018

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


commit bee06a9736f0ca0650956b9a81c181602e662022
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Wed Oct 3 18:06:16 2018 +0200

    U-Boot: configure the network through nmcli
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


 labs/sysdev-u-boot/network-config-2.png | Bin 20455 -> 0 bytes
 labs/sysdev-u-boot/network-config-3.png | Bin 43490 -> 0 bytes
 labs/sysdev-u-boot/sysdev-u-boot.tex    |  35 ++++++++++++++------------------
 3 files changed, 15 insertions(+), 20 deletions(-)

diff --git a/labs/sysdev-u-boot/network-config-2.png b/labs/sysdev-u-boot/network-config-2.png
deleted file mode 100644
index 228eeaf..0000000
Binary files a/labs/sysdev-u-boot/network-config-2.png and /dev/null differ
diff --git a/labs/sysdev-u-boot/network-config-3.png b/labs/sysdev-u-boot/network-config-3.png
deleted file mode 100644
index c350d48..0000000
Binary files a/labs/sysdev-u-boot/network-config-3.png and /dev/null differ
diff --git a/labs/sysdev-u-boot/sysdev-u-boot.tex b/labs/sysdev-u-boot/sysdev-u-boot.tex
index 036626d..fab212c 100644
--- a/labs/sysdev-u-boot/sysdev-u-boot.tex
+++ b/labs/sysdev-u-boot/sysdev-u-boot.tex
@@ -305,29 +305,24 @@ wired connection to the network, your instructor will provide you with
 a USB Ethernet adapter. A new network interface 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 {\em Wired connection 1} and press the {\em Edit} button.
+Find the name of this interface by typing:
+ifconfig -a
-In the \code{IPv4 Settings} tab, choose the \code{Manual} method
-to 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).
+The network interface name is likely to be
+\code{enxxx}\footnote{Following the {\em Predictable Network Interface
+Names} convention:
+If you have a pluggable Ethernet device, it's easy to identify as it's
+the one that shows up after pluging in the device.
+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:
-You can use \code{24} 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{Save} button).
+nmcli con add type ethernet ifname en... ip4
 Now, configure the network on the board in U-Boot by setting the \code{ipaddr}
 and \code{serverip} environment variables:

More information about the training-materials-updates mailing list