[bootlin/training-materials updates] master: QEMU labs: temporarily restore the use of the ifconfig command (5fdbdc45)

Michael Opdenacker michael.opdenacker at bootlin.com
Thu Oct 8 08:43:56 CEST 2020


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/5fdbdc459aeee3feb22597befe3695d95d3a9ab6

>---------------------------------------------------------------

commit 5fdbdc459aeee3feb22597befe3695d95d3a9ab6
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Thu Oct 8 08:43:56 2020 +0200

    QEMU labs: temporarily restore the use of the ifconfig command
    
    - In /etc/qemu-myifup:
      Works: exec /sbin/ifconfig $1 192.168.100.1
      Doesn't work: exec /sbin/ip a add 192.168.100.1/24 dev $1
      ... though these commands seem equivalent
    
      Will investigate later
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

5fdbdc459aeee3feb22597befe3695d95d3a9ab6
 labs/sysdev-u-boot-qemu/sysdev-u-boot-qemu.tex | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/labs/sysdev-u-boot-qemu/sysdev-u-boot-qemu.tex b/labs/sysdev-u-boot-qemu/sysdev-u-boot-qemu.tex
index 9375fa81..893ae4f8 100644
--- a/labs/sysdev-u-boot-qemu/sysdev-u-boot-qemu.tex
+++ b/labs/sysdev-u-boot-qemu/sysdev-u-boot-qemu.tex
@@ -206,12 +206,16 @@ printenv foo
 To load a kernel in the next lab, we will setup networking between the QEMU emulated
 machine and the host.
 
-The first thing to do is to create a \code{/etc/qemu-myifup} (for example)
-script that will bring up a network interface between QEMU and the host. Here are its contents:
+First install the \code{net-tools} package to get the \code{ifconfig}
+command.
+
+Then create a \code{/etc/qemu-myifup} (for example)
+script that will bring up a network interface between QEMU and the host.
+Here are its contents:
 
 \begin{verbatim}
 #!/bin/bash
-exec /sbin/ip a add 192.168.0.1/24 dev $1
+exec /sbin/ifconfig $1 192.168.0.1
 \end{verbatim}
 
 Of course, make this script executable:




More information about the training-materials-updates mailing list