--- /dev/null
+#!/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
# 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
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