[FE training-materials-updates] sysdev-thirdparty: provide a ready-made qemu-ifup script

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Oct 5 11:16:34 CEST 2012


Repository : git://git.free-electrons.com/training-materials.git

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

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

commit 343df277790f659202d0c136ef06be5625cd4d5f
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date:   Fri Oct 5 11:16:56 2012 +0200

    sysdev-thirdparty: provide a ready-made qemu-ifup script
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>


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

343df277790f659202d0c136ef06be5625cd4d5f
 lab-data/sysdev/{appdev => thirdparty}/qemu-ifup |    0
 lab-data/sysdev/thirdparty/run_qemu              |    2 +-
 labs/sysdev-thirdparty/sysdev-thirdparty.tex     |    6 ------
 3 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/lab-data/sysdev/appdev/qemu-ifup b/lab-data/sysdev/thirdparty/qemu-ifup
similarity index 100%
copy from lab-data/sysdev/appdev/qemu-ifup
copy to lab-data/sysdev/thirdparty/qemu-ifup
diff --git a/lab-data/sysdev/thirdparty/run_qemu b/lab-data/sysdev/thirdparty/run_qemu
index 2b7e076..dcb5d83 100755
--- a/lab-data/sysdev/thirdparty/run_qemu
+++ b/lab-data/sysdev/thirdparty/run_qemu
@@ -1,3 +1,3 @@
 # Starting the qemu emulator
 
-sudo qemu-system-arm -M versatilepb -net tap -net nic -m 32 -kernel data/vmlinuz-arm-2.6.34 -append "clocksource=pit console=tty0 rw root=/dev/nfs ip=172.20.0.2 nfsroot=172.20.0.1:$HOME/felabs/sysdev/thirdparty/target"
+sudo qemu-system-arm -M versatilepb -net tap,script=./qemu-ifup -net nic -m 32 -kernel data/vmlinuz-arm-2.6.34 -append "clocksource=pit console=tty0 rw root=/dev/nfs ip=172.20.0.2 nfsroot=172.20.0.1:$HOME/felabs/sysdev/thirdparty/target"
diff --git a/labs/sysdev-thirdparty/sysdev-thirdparty.tex b/labs/sysdev-thirdparty/sysdev-thirdparty.tex
index 45a038e..989df19 100644
--- a/labs/sysdev-thirdparty/sysdev-thirdparty.tex
+++ b/labs/sysdev-thirdparty/sysdev-thirdparty.tex
@@ -110,12 +110,6 @@ And restart your NFS server.
 Install the Qemu emulator for non-x86 architectures by installing the
 \code{qemu-kvm-extras} package.
 
-Modify the \code{/etc/qemu-ifup} script so that it just contains 2 lines:
-\begin{verbatim}
-#!/bin/sh
-/sbin/ifconfig $1 172.20.0.1
-\end{verbatim}
-
 Then, run Qemu with the provided script:
 
 \begin{verbatim}



More information about the training-materials-updates mailing list