]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/netapi.git/commitdiff
SDOCM00112691: Fix setup scripts for loopback and router appliations
authorTinku Mannan <tmannan@ti.com>
Thu, 28 Aug 2014 18:22:58 +0000 (14:22 -0400)
committerTinku Mannan <tmannan@ti.com>
Thu, 28 Aug 2014 18:24:40 +0000 (14:24 -0400)
ti/runtime/netapi/tools/net_test_loopback_setup.sh
ti/runtime/netapi/tools/net_test_router_setup.sh

index 7503fd3bc48199089daff1bdaf627d5f1a312932..b1016abb4a23c5441b6bb6edfc2e7efccc0a7337 100644 (file)
@@ -1,5 +1,13 @@
 #!/bin/sh
 
+if [ -z "$1"]
+  then
+    echo "Need to supply device type, either k2h, k2k, k2l, k2e"
+    exit 1
+fi
+
+# start up RM server
+/usr/bin/rmServer.out /usr/bin/device/$1/global-resource-list.dtb /usr/bin/device/$1/policy_dsp_arm.dtb
 export KERNEL_VER=$(uname -r)
 #install kernel module
 echo $KERNEL_VER
@@ -9,4 +17,4 @@ devmem2 0x2090804 w 0x4
 #
 # run net_test_loopback applicaton, default location of config file is in /etc/transportnetlib/test,
 # default config file name is net_test_config.txt
-/usr/bin/net_test_loopback /etc/transportnetlib/test/net_test_config.txt
+/usr/bin/net_test_loopback_$1 /etc/transportnetlib/test/net_test_config.txt
index 8b7c6329f0827be2ebd044680f9da4f3d7b7d833..766bd37a99b4801ed3ab7ffa4f84610511e2b4f7 100644 (file)
@@ -1,5 +1,13 @@
 #!/bin/sh
 
+if [ -z "$1"]
+  then
+    echo "Need to supply device type, either k2h, k2k, k2l, k2e"
+    exit 1
+fi
+
+# start up RM server
+/usr/bin/rmServer.out /usr/bin/device/$1/global-resource-list.dtb /usr/bin/device/$1/policy_dsp_arm.dtb
 export KERNEL_VER=$(uname -r)
 #install kernel module
 echo $KERNEL_VER
@@ -13,4 +21,4 @@ devmem2 0x2090804 w 0x4
 #
 # run net_test_router applicaton, default location of config file is in /etc/transportnetlib/test,
 # default config file name is net_test_config.txt
-/usr/bin/net_test_router /etc/transportnetlib/test/net_test_config.txt
+/usr/bin/net_test_router_$1 /etc/transportnetlib/test/net_test_config.txt