=== modified file 'lava_dispatcher/default-config/lava-dispatcher/device-types/rtsm_ve-armv8.conf'
@@ -7,11 +7,11 @@
# how long ubuntu takes to boot to prompt
boot_linaro_timeout = 500
-# if you do dhcp on boot, adb will not work (asac) on fastmodels
-enable_network_after_boot_android = 0
+#after enabled the network, we can set it to true
+enable_network_after_boot_android = 1
-# we do usermode networking over the loopback
-default_network_interface = lo
+# change to use eth0 after we enabled the network
+default_network_interface = eth0
bootloader_prompt = Start:
@@ -50,6 +50,7 @@
sim_bin = /opt/arm/RTSMv8_VE/bin/model_shell64
sim_model = /opt/arm/RTSMv8_VE/models/Linux64_GCC-4.1/RTSM_VE_AEMv8A.so
android_adb_port = 5555
+interfaceName = armv8_01
simulator_version_command = %(sim_bin)s --version | grep "Model Shell" | sed 's/Model Shell //'
@@ -59,8 +60,6 @@
boot_options =
motherboard.mmc.p_mmc_file
- motherboard.hostbridge.userNetPorts
- motherboard.hostbridge.userNetworking
motherboard.smsc_91c111.enabled
cluster.NUM_CORES
cluster.cpu0.unpredictable_WPMASKANDBAS
@@ -72,17 +71,18 @@
cluster.cpu3.unpredictable_WPMASKANDBAS
cluster.cpu3.unpredictable_non-contigous_BAS
cluster.take_ccfail_undef
+ motherboard.hostbridge.interfaceName
+ motherboard.smsc_91c111.mac_address
+
+[motherboard.smsc_91c111.mac_address]
+default="auto"
+
+[motherboard.hostbridge.interfaceName]
+default="%(interfaceName)s"
[motherboard.mmc.p_mmc_file]
default = {IMG}
-[motherboard.hostbridge.userNetPorts]
-default="%(android_adb_port)s=%(android_adb_port)s"
-
-[motherboard.hostbridge.userNetworking]
-default = 1
-allowed = 0,1
-
[motherboard.smsc_91c111.enabled]
default = 1
allowed = 0,1
=== modified file 'lava_dispatcher/device/fastmodel.py'
@@ -82,8 +82,9 @@
f.write('\n# LAVA CUSTOMIZATIONS\n')
#make sure PS1 is what we expect it to be
f.write('PS1="%s"\n' % self.ANDROID_TESTER_PS1)
- # fast model usermode networking does not support ping
- f.write('alias ping="echo LAVA-ping override 1 received"\n')
+ if not self.config.enable_network_after_boot_android:
+ # fast model usermode networking does not support ping
+ f.write('alias ping="echo LAVA-ping override 1 received"\n')
self.deployment_data = Target.android_deployment_data