1 #!/bin/sh
3 if [ -z "$1"]
4 then
5 echo "Need to supply device type, either k2h, k2k, k2l, k2e"
6 exit 1
7 fi
9 # start up RM server
10 /usr/bin/rmServer.out /usr/bin/device/$1/global-resource-list.dtb /usr/bin/device/$1/policy_dsp_arm.dtb
11 export KERNEL_VER=$(uname -r)
12 #install kernel module
13 echo $KERNEL_VER
14 insmod /lib/modules/$KERNEL_VER/extra/hplibmod.ko
15 # disable vlan aware mode in switch
16 devmem2 0x2090804 w 0x4
17 #
18 # run net_test_loopback applicaton, default location of config file is in /etc/transportnetlib/test,
19 # default config file name is net_test_config.txt
20 /usr/bin/net_test_loopback_$1 /etc/transportnetlib/test/net_test_config.txt