aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/csit/install_prereq.sh
diff options
context:
space:
mode:
authorsharath <sharathkumarboyanapally@gmail.com>2018-10-09 14:59:08 +0530
committersharath <sharathkumarboyanapally@gmail.com>2018-10-09 19:21:12 +0530
commitdd82eab81846cbccaa1ab84c5a9919dc0b41f9c9 (patch)
tree9faf3b5ef55c58541b6cb6d50e3639b69c06af60 /scripts/csit/install_prereq.sh
parent31ea86798426cf236d70c9de1944c723a6cb1d95 (diff)
Feat: Migration of CSIT scripts to DMM repo
Change-Id: I4b38cbc9c1d801e3c91ff3d4dd8fed7e747db46e Signed-off-by: sharath <sharathkumarboyanapally@gmail.com>
Diffstat (limited to 'scripts/csit/install_prereq.sh')
-rwxr-xr-xscripts/csit/install_prereq.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/csit/install_prereq.sh b/scripts/csit/install_prereq.sh
new file mode 100755
index 0000000..b03769b
--- /dev/null
+++ b/scripts/csit/install_prereq.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+set -x
+SCRIPT_DIR=`dirname $(readlink -f $0)`
+ROOTDIR=$SCRIPT_DIR/../../../
+
+cd ${ROOTDIR}
+chmod +x *.deb
+sudo dpkg -i libnuma1_2.0.11-1ubuntu1.1_amd64.deb
+sudo dpkg -i libnuma-dev_2.0.11-1ubuntu1.1_amd64.deb
+sudo dpkg -i ethtool_4.5-1_amd64.deb
+sudo dpkg -i lsof_4.89+dfsg-0.1_amd64.deb
+
+DPDK_DOWNLOAD_PATH=$(cat $ROOTDIR/dmm/scripts/build_dpdk.sh | grep DPDK_DOWNLOAD_PATH= | cut -d "=" -f2)
+sudo rm /tmp/dpdk
+mkdir -p $DPDK_DOWNLOAD_PATH
+mv $ROOTDIR/dpdk-18.02.tar.xz $DPDK_DOWNLOAD_PATH
+# install DPDK
+cp -f $ROOTDIR/dmm/scripts/build_dpdk.sh $ROOTDIR/dmm/scripts/build_dpdk_csit.sh
+sed -i 's!wget.*!#comment wget!1' $ROOTDIR/dmm/scripts/build_dpdk_csit.sh
+bash -x $ROOTDIR/dmm/scripts/build_dpdk_csit.sh
+
+sudo modprobe uio
+sudo modprobe uio_pci_generic
+sudo insmod $DPDK_DOWNLOAD_PATH/dpdk-18.02/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko
+
+bash $SCRIPT_DIR/kill_given_proc.sh vs_epoll
+bash $SCRIPT_DIR/setup_hugepage.sh