summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f8f32d5)
raw | patch | inline | side by side (parent: f8f32d5)
author | Tinku Mannan <tmannan@ti.com> | |
Thu, 28 Aug 2014 18:22:58 +0000 (14:22 -0400) | ||
committer | Tinku Mannan <tmannan@ti.com> | |
Thu, 28 Aug 2014 18:24:40 +0000 (14:24 -0400) |
ti/runtime/netapi/tools/net_test_loopback_setup.sh | patch | blob | history | |
ti/runtime/netapi/tools/net_test_router_setup.sh | patch | blob | history |
diff --git a/ti/runtime/netapi/tools/net_test_loopback_setup.sh b/ti/runtime/netapi/tools/net_test_loopback_setup.sh
index 7503fd3bc48199089daff1bdaf627d5f1a312932..b1016abb4a23c5441b6bb6edfc2e7efccc0a7337 100644 (file)
#!/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
#
# 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
diff --git a/ti/runtime/netapi/tools/net_test_router_setup.sh b/ti/runtime/netapi/tools/net_test_router_setup.sh
index 8b7c6329f0827be2ebd044680f9da4f3d7b7d833..766bd37a99b4801ed3ab7ffa4f84610511e2b4f7 100644 (file)
#!/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
#
# 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