]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
new files in frankfurt test
authorJan Michel <j.michel@gsi.de>
Fri, 18 Oct 2013 15:17:15 +0000 (17:17 +0200)
committerJan Michel <j.michel@gsi.de>
Fri, 18 Oct 2013 15:17:15 +0000 (17:17 +0200)
users/frankfurt_test/evtbuilder_start.sh [new file with mode: 0755]
users/frankfurt_test/register_configgbe_ip.db
users/frankfurt_test/startup.sh

diff --git a/users/frankfurt_test/evtbuilder_start.sh b/users/frankfurt_test/evtbuilder_start.sh
new file mode 100755 (executable)
index 0000000..4272187
--- /dev/null
@@ -0,0 +1,61 @@
+#!/bin/bash
+
+dest="/local/tmp"
+sdest="/local/tmp"
+tmpdir="/local/tmp/evtbuild"
+pref="te"
+sden=0
+
+usage() {
+       echo "Usage: $0 [-d <hlddir>] [-s <shlddir>] [-p <te|be|ca>] [-t] [-h]"
+       echo "  -t -- scale down"
+       echo " Defaults:"
+       echo "  -d=${dest}"
+       echo "  -s=${sdest}"
+       echo "  -p=${pref}"
+}
+
+while getopts "d:s:p:th" opt; do
+       case "${opt}" in
+               t)
+                       sden=1
+                       ;;
+               d)
+                       dest=${OPTARG}
+                       ;;
+               s)
+                       sdest=${OPTARG}
+                       ;;
+               p)
+                       pref=${OPTARG}
+                       ;;
+               h)
+                       usage
+                       ;;
+               *)
+                       exit -1
+                       ;;
+       esac
+done
+
+sdopts="--resdownscale 20 --resnumevents 2000 --respath ${sdest} --ressizelimit 80"
+extraopts="--online"
+[ ${sden} -eq 1 ] && extraopts="$sdopts"
+
+
+[ ! -e $tmpdir ] && mkdir -p $tmpdir
+cd $tmpdir
+
+
+exec uxterm -bg khaki -geometry 120x20+0+45 -e "/home/hadaq/bin/daq_evtbuild -m 1 -o ${dest} -x ${pref} -I 1 --ebnum 1 -q 32 -S test -d file ${extraopts}; read; bash" &
+pid=$!
+echo $pid > $tmpdir/.daq_evtbuild.pid
+
+sleep 1
+
+exec uxterm -bg tan -geometry 120x20+0+345 -e "/home/hadaq/bin/daq_netmem -m 1 -i UDP:0.0.0.0:50000 -q 32 -d 1 -S test ;  " &
+pid=$!
+echo $pid > $tmpdir/.daq_netmem.pid
+
+echo ${dest} > $tmpdir/.hldfilesdir
+echo ${sdest} > $tmpdir/.shldfilesdir
index 1e7f7ef9a39320c98ca9c9b77cf43499408cf610..3a6b1c8b16d52b62284b3000539078ebeb3a8d1c 100755 (executable)
@@ -28,5 +28,5 @@
 # Hub    #  Type  #     C0     #     C1     #     C2     #     C3     #     C4     #     C5     #     C6     #     C7     #     C8     #
 ########################################################################################################################################
 
- 0x8000                0   0x546C5E8B    0x0008      0xc0a800fe      0xc350     0xdead8000     0x0230   0x0a9b3bd8         0xc350          0x0578
+ 0x8000                0   0x546C5E8B    0x0008      0xc0a800fe      0xc350     0xdead8000     0x0230   0xc0a80007      0xc350     0x0578
 
index 0e3cfcc5f91bb4d582e815918b84dac0519367a5..cbb68e6e67b3dd57af58e0bf9ebcf56ff72e3004 100755 (executable)
@@ -13,6 +13,8 @@ trbcmd s  0x48000002e2e36028  0x03 0xf003
 
 echo "Hubs"
 trbcmd w 0xfffe 0xc5 0x50ff
+trbcmd w 0xfffe 0xc0 0x0fef
+trbcmd w 0xfffe 0xc1 0x0fef
 
 ../../tools/loadregisterdb.pl register_configgbe.db
 ../../tools/loadregisterdb.pl register_configgbe_ip.db