[rtems-testing commit] realview_pbx_a9_qemu: Add network support

Sebastian Huber sebh at rtems.org
Wed Nov 13 12:57:22 UTC 2013


Module:    rtems-testing
Branch:    master
Commit:    00042b50e386799b7bcb1c828e06341e66e1a1fe
Changeset: http://git.rtems.org/rtems-testing/commit/?id=00042b50e386799b7bcb1c828e06341e66e1a1fe

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Nov 13 13:56:41 2013 +0100

realview_pbx_a9_qemu: Add network support

---

 sim-scripts/realview_pbx_a9_qemu.in |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/sim-scripts/realview_pbx_a9_qemu.in b/sim-scripts/realview_pbx_a9_qemu.in
index b92fd82..f86c0fe 100644
--- a/sim-scripts/realview_pbx_a9_qemu.in
+++ b/sim-scripts/realview_pbx_a9_qemu.in
@@ -2,6 +2,7 @@
 #  arm/realview_pbx_a9_qemu Qemu Support
 #
 
+bspSupportsNIC="yes"
 bspUsesGDBSimulator="no"
 # bspGeneratesGDBCommands="yes"
 # bspSupportsGDBServerMode="yes"
@@ -17,7 +18,16 @@ runARGS()
     COVERAGE_ARG="-trace ${1}.cov"
   fi
 
-  echo "-no-reboot -net none -nographic -M realview-pbx-a9 -m 256M ${COVERAGE_ARG} -kernel ${1}"
+  if [ ${enable_network} = yes ] ; then
+    NETWORK_ARG="-net nic,model=smc91c111,macaddr=0e:b0:ba:5e:ba:11"
+    if [ x${tap_network_interface} != x ] ; then
+      NETWORK_ARG="${NETWORK_ARG} -net tap,ifname=${tap_network_interface},script=no,downscript=no"
+    fi
+  else
+    NETWORK_ARG="-net none"
+  fi
+
+  echo "-no-reboot -nographic -M realview-pbx-a9 -m 256M ${COVERAGE_ARG} ${NETWORK_ARG} -kernel ${1}"
 }
 
 checkBSPFaults()




More information about the vc mailing list