From ae0e807c1ea95d3f2ec16a4c7aa9ee027d18c854 Mon Sep 17 00:00:00 2001 From: Miroslav Miklus Date: Wed, 17 Feb 2016 23:46:01 +0100 Subject: T-REX fixes - ssh session hang with bash as /bin/sh - trex-cfg to handle initial configuration Change-Id: Ibcbde2d17f0e10ce126dc5db6bf9654185b0bb75 Signed-off-by: Miroslav Miklus --- resources/libraries/python/TrafficGenerator.py | 7 ++++--- resources/tools/t-rex-installer.sh | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'resources') diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py index 2037d49bc2..bc9678b399 100644 --- a/resources/libraries/python/TrafficGenerator.py +++ b/resources/libraries/python/TrafficGenerator.py @@ -51,13 +51,14 @@ class TrafficGenerator(object): ssh.connect(node) (ret, stdout, stderr) = ssh.exec_command( - "sh -c 'cd {0}/scripts/ && sudo modprobe uio && " - "sudo insmod ./ko/src/igb_uio.ko'"\ + "sh -c 'cd {0}/scripts/ && " + "sudo ./trex-cfg'"\ .format(trex_path)) (ret, stdout, stderr) = ssh.exec_command( "sh -c 'cd {0}/scripts/ && " - "sudo nohup ./t-rex-64 -i -c 4 --iom 0 > /dev/null 2>&1 &'"\ + "sudo nohup ./t-rex-64 -i -c 4 --iom 0 > /dev/null 2>&1 &'" + "> /dev/null"\ .format(trex_path)) @staticmethod diff --git a/resources/tools/t-rex-installer.sh b/resources/tools/t-rex-installer.sh index bc36774f37..781b73c3c2 100755 --- a/resources/tools/t-rex-installer.sh +++ b/resources/tools/t-rex-installer.sh @@ -33,5 +33,5 @@ unzip ${WORKING_DIR}/${TREX_DOWNLOAD_PACKAGE} -d ${TARGET_DIR} test $? -eq 0 || exit 1 cd ${TREX_INSTALL_DIR}/linux_dpdk/ && ./b configure && ./b build || exit 1 -cd ${TREX_INSTALL_DIR}/scripts/ko/src && make || exit 1 +cd ${TREX_INSTALL_DIR}/scripts/ko/src && make && make install || exit 1 -- cgit 1.2.3-korg