]> jspc29.x-matter.uni-frankfurt.de Git - daqdocu.git/commitdiff
User scripts added, typos fixed.
authorhadaq <hadaq>
Mon, 3 Dec 2012 15:05:23 +0000 (15:05 +0000)
committerhadaq <hadaq>
Mon, 3 Dec 2012 15:05:23 +0000 (15:05 +0000)
trb3/main.tex
trb3/trb3qs_configuration.tex
trb3/trb3qs_software.tex

index 43de791191d2bf3e629ad646c2ca57ebf5b167f3..d407b405a67c7d0688a12c76215a659b69f0953b 100755 (executable)
 \input{trb3qs_part}
 
 
-  \cleardoublepage
+\cleardoublepage
 
 \bibliography{biblio}
 
index 11c2c4525a4cfcc30705dbb7c842e90322165bdb..56d843d4ef76c4883092eb5e7e47b76e28c61067 100644 (file)
@@ -80,7 +80,7 @@ subnet 10.0.0.0 netmask 255.255.255.0 {
 
 Now we can start your DHCP server. How to do this ask AYA (it is different
 for different LINUX distributions). You should also configure your RPCBIND (it
-has nothing to do with HADES RPC) to run with option \verb+i+ $\to$ AYA.
+has nothing to do with HADES RPC) to run with option \verb+-i+ $\to$ AYA.
 
 Now you can restart your TRB3 and watch again log of your system, you should get
 following output
@@ -158,7 +158,7 @@ TRB3_SERVER=trb033
 \end{lstlisting}
 
 If you are using only one TRB3 then you can also export variables globally
-\begin{lstlisting}[label=,caption=Recommended way to run TRBnet for single TRB3 system]
+\begin{lstlisting}[label=lst:rawtrbnet,caption=Recommended way to run TRBnet for single TRB3 system]
 $ export TRB3_SERVER=trb033
 $ trbnetd -i 1
 $ export DAQOPSERVER=localhost:1
@@ -170,9 +170,25 @@ $ trbcmd i 0xffff
 0xf306  0xb600000390225b28  0x03
 \end{lstlisting}
 In future we assume that we have only one TRB3 and these variables are exported.
-You can add this exports to your \verb+~/trb3/setenv.sh+ file.
 
-As you can see the FPGA addresses (first column) are not configured yet in your
+To start TRBnet user can use script \verb+~/rtb3user/start_trbnet.sh+ (see
+Listing \ref{lst:trb3user}). On need to adjust only three variables with the
+name of DAQ host (DNS name), TRB number (DNS name) and ID of TRBnet daemon to
+run.
+
+\begin{lstlisting}[label=,caption=Adjusting variables for TRBnet]
+DAQHOSTNAME=localhost
+TRBID=trb033
+TRBNETID=1
+\end{lstlisting}
+
+This script should be called once with command
+\verb+source ~/rtb3user/start_trbnet.sh+ after setting the proper TRB3 environment.
+% You can add this exports to your \verb+~/trb3/setenv.sh+ file.
+
+\subsection{Configuring TRB3}
+
+As you can see in Listing \ref{lst:rawtrbnet} the FPGA addresses (first column) are not configured yet in your
 system. The middle columns is the unique ID of the FPGA (temp sensor), the last
 column is the FPGA number (0x05 is the central FPGA). To set proper addresses
 execute following command
@@ -207,6 +223,22 @@ other users of the TRB3.
 \end{warning}
 As the last you should rerun merging of the addresses and serials.
 
+\subsection{DAQ configuration}
+
+You must configure your TRB3 which is the IP address of the Event Builder. This
+you can set in proper registers of the central FPGA of
+the TRB3. For this in the file \verb+~/trb3user/configure_trb3.sh+ (see Listing
+\ref{lst:trb3user}) find line starting with \verb+#mac address of the EB+, in
+register \verb+0x8100+ write lower four bytes of the MAC and \verb+0x8101+ two
+upper bytes, for example for MAC \verb+00:11:22:33:44:55:66+ configuration look
+following
+\begin{lstlisting}[label=,caption=Settings Event Builder address for TRB3]
+#mac address of the EB
+#ebhost 00:11:22:33:44:55
+trbcmd w 0x8000 0x8100 0x22334455  # lower bytes
+trbcmd w 0x8000 0x8101 0x0011      # upper bytes
+\end{lstlisting}
+
 \subsection{CTS monitor configuration}
 
 In order to inform CTS server which endpoint hosts the CTS, you must or edit
@@ -223,25 +255,4 @@ sub getDefaultEndpoint {
 }
 
 1;
-\end{lstlisting}
-
-
-\subsection{DAQ configuration}
-
-You must configure your TRB3 which is the IP address of the Event Builder. This
-you can set in proper registers of the central FPGA of
-the TRB3. For this in the file \verb+configure_trb3.sh+ find line starting with
-\verb+#mac address of the EB+, in register \verb+0x8100+ write lower four bytes
-of the MAC and \verb+0x8101+ two upper bytes, for example for MAC
-\verb+00:11:22:33:44:55:66+ configuration look following
-
-\begin{lstlisting}[label=,caption=Settings Event Builder address for TRB3]
-#mac address of the EB
-#ebhost 00:11:22:33:44:55
-trbcmd w 0x8000 0x8100 0x22334455  # lower bytes
-trbcmd w 0x8000 0x8101 0x0011      # upper bytes
-\end{lstlisting}
-
-{\color{red}\fbox{
-TODO: how to get this script?
-}}
\ No newline at end of file
+\end{lstlisting}
\ No newline at end of file
index 30fbef6c0fa097fc3aed199b2c1e571595b03839..2b65256705cedc6066277c2992bc917e61cabd05 100644 (file)
@@ -58,10 +58,36 @@ If you get error
 edit file \verb+evtbuild.c+, comment out \verb+#define RFIO+ and repeat last
 command (the \verb+for+ loop).
 
-On the it is recommended to create init script
-\begin{lstlisting}[label=setenv,caption=\$\{HOME\}/trb3/setenv.sh]
-#!/bin/bash
-export PATH="${HOME}/daqsoftware/bin:${HOME}/trbsoft/trbnettools/binlocal:${PATH}"
+
+On the it is recommended to create init script for preparing environment. User
+can create his own or use already prepared user scripts. To get them he must run
+following
+
+\begin{lstlisting}[label=lst:trb3user,caption=User scripts preparation]
+$ cd ~
+$ wget http://www-linux.gsi.de/~rlalik/trb3userscripts.tar.gz
+$ tar zxvf trb3userscripts.tar.gz
 \end{lstlisting}
-This script should be run with command \verb+. ~/trb3/setenv.sh+ in each new terminal
-supposed to work for TRB3.
\ No newline at end of file
+To adjust script to his system should edit file \verb+~/trb3user/setenv.sh+ and
+adjust paths to trb3 software
+
+\begin{lstlisting}[label=,caption=Variables to be adjusted]
+# normally HOME variable should host proper value
+#HOME=/home/hadaq # uncomment this line only if you kow what are you doing
+
+TRB3USER=${HOME}/trb3user
+TRBSOFT=${HOME}/trbsoft
+TRBNETTOOLS=${TRBSOFT}/trbnettools
+DAQSOFT=${HOME}/daqsoftware
+\end{lstlisting}
+
+Usually no changes are required if all other software were installed in user's
+\verb+${$HOME}+ directory (recommended way).
+
+This script should be run with command \verb+source ~/trb3user/setenv.sh+ in
+each new terminal supposed to work for TRB3.
+
+% \begin{lstlisting}[label=setenv,caption=\$\{HOME\}/trb3/setenv.sh]
+% #!/bin/bash
+% export PATH="${HOME}/daqsoftware/bin:${HOME}/trbsoft/trbnettools/binlocal:${PATH}"
+% \end{lstlisting}
\ No newline at end of file