aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom-linux-test
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linaro.org>2020-09-03 07:15:44 -0500
committerAníbal Limón <anibal.limon@linaro.org>2020-09-03 07:15:44 -0500
commit2fd5ddd0ae2b87225226f0262f286a089ec32a29 (patch)
treebc567053c7ae0a826811db8ea2d72045a32f3f83 /lt-qcom-linux-test
parent584b55f126c38e76b9aea41a87fabfbb4c12cbab (diff)
lt-qcom-linux-test: Disable predectible device interface names
Add net.ifnames=0 to kernel cmdline to use eth0 and wlan0 always instead of rename to predectible interface names. Predictible interface names are good when have many network cards and would like to have the same name in every reboot. In our boards only one eth and wlan is expected. Signed-off-by: Aníbal Limón <anibal.limon@linaro.org> Change-Id: I7bd01fe1128e52f7a07b68ef4aa8531188ff43d0
Diffstat (limited to 'lt-qcom-linux-test')
-rwxr-xr-xlt-qcom-linux-test/builders.sh4
-rwxr-xr-xlt-qcom-linux-test/submit_for_testing.sh4
2 files changed, 2 insertions, 6 deletions
diff --git a/lt-qcom-linux-test/builders.sh b/lt-qcom-linux-test/builders.sh
index 1d9888ea5d..31f8f0fcbc 100755
--- a/lt-qcom-linux-test/builders.sh
+++ b/lt-qcom-linux-test/builders.sh
@@ -402,7 +402,7 @@ skales-mkbootimg \
--pagesize "${BOOTIMG_PAGESIZE}" \
--base "${BOOTIMG_BASE}" \
--ramdisk_base "${RAMDISK_BASE}" \
- --cmdline "root=/dev/ram0 init=/sbin/init rw console=tty0 console=${SERIAL_CONSOLE},115200n8 ${KERNEL_CMDLINE_APPEND}"
+ --cmdline "root=/dev/ram0 init=/sbin/init rw console=tty0 console=${SERIAL_CONSOLE},115200n8 net.ifnames=0 ${KERNEL_CMDLINE_APPEND}"
# Create boot image (functional), sdm845-mtp requires an initramfs to mount the rootfs and then
# exec switch_rootfs, use the same method in other boards too
@@ -421,7 +421,7 @@ skales-mkbootimg \
--pagesize "${BOOTIMG_PAGESIZE}" \
--base "${BOOTIMG_BASE}" \
--ramdisk_base "${RAMDISK_BASE}" \
- --cmdline "root=/dev/ram0 init=/init rw console=tty0 console=${SERIAL_CONSOLE},115200n8 ${KERNEL_CMDLINE_APPEND}"
+ --cmdline "root=/dev/ram0 init=/init rw console=tty0 console=${SERIAL_CONSOLE},115200n8 net.ifnames=0 ${KERNEL_CMDLINE_APPEND}"
echo BOOT_FILE=$boot_file >> builders_out_parameters
echo BOOT_ROOTFS_FILE=$boot_rootfs_file >> builders_out_parameters
diff --git a/lt-qcom-linux-test/submit_for_testing.sh b/lt-qcom-linux-test/submit_for_testing.sh
index 64d7e97eea..fb7399ec61 100755
--- a/lt-qcom-linux-test/submit_for_testing.sh
+++ b/lt-qcom-linux-test/submit_for_testing.sh
@@ -26,12 +26,8 @@ case "${MACHINE}" in
export LAVA_DEVICE_TYPE="dragonboard-410c"
elif [ ${MACHINE} = "apq8096-db820c" ]; then
export LAVA_DEVICE_TYPE="dragonboard-820c"
-
- export WLAN_DEVICE="wlp1s0"
- export ETH_DEVICE="enP2p1s0"
elif [ ${MACHINE} = "sdm845-db845c" ]; then
export LAVA_DEVICE_TYPE="dragonboard-845c"
- export ETH_DEVICE="enp1s0u3"
elif [ ${MACHINE} = "sdm845-mtp" ]; then
export LAVA_DEVICE_TYPE="sdm845-mtp"
elif [ ${MACHINE} = "qcs404-evb-4000" ]; then