Difference: HowTo (1 vs. 22)

Revision 222015-04-21 - TimBrooks

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here
Line: 110 to 110
 

Running BL4S Daq

Setting up computers

Changed:
<
<
The computers have to be set up to be able to handle the DAQ. On all the computers you'll use as DAQ components do the following:
>
>
The computers have to be set up to be able to handle the DAQ. By default SLC6 has ulimit set to restrict the maximum number of files and process open to 1024. It also rejects traffic to unknown ports in it's iptable config.
 
Changed:
<
<
Write following in /etc/security/limits.d/99-max-files.conf
>
>
On all the computers you'll use as DAQ components do the following as root:

Write the following in /etc/security/limits.d/99-max-files.conf

 
# set the max number of open files - issue
*               soft    nofile          65536
*               hard    nofile          65536
Changed:
<
<
Write following in /etc/security/limits.d/99-nproc.conf
>
>
Write the following in /etc/security/limits.d/99-nproc.conf
 
Deleted:
<
<
## Managed by Puppet ##
 * soft nproc 192751
Added:
>
>
You can list the iptables rules with iptables -L INPUT --line-numbers. This prints rule numbers. To delete rule number X, call iptables -D INPUT X.
 

Downloading source code

There are 2 repositories that have the BL4S daq related source code.

Revision 192014-09-22 - CenkYildiz

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here
Deleted:
<
<

Cherenkov gas settings

After todays(26.08.2014) mini talk, we decided to redo the pion decay experiment for different beam energies. Looking at the reference plots in

/afs/cern.ch/user/d/daquser/public/daq_extras/gas_mix/root/co2_final.root

Beam Energy CH1 CH2

4GeV ~1.1bar >1.6bar

6GeV ~0.5bar >0.6bar

8GeV ~0.3bar >0.5bar

10GeV ~0.2bar >0.3bar; <2.7bar

CH1 selects electrons and muons and CH2 selects electons, muons and pions.

Computer location in 157

  • WebcamServer1: Control room, no peripherals, any ethernet cable
  • WebcamServer2: Experimental area, with Fisheye lense, no peripherals, short ethernet cable(?)
  • WebcamServer3: Above T9 (near stairs), no peripherals, 20m ethernet cable, long power cable (from area or from Beam control room)

  • bl4sdaq: Shift leader, has everything
  • bl4sdaqclone: Run Control Shifter, has everything
  • newPC1: Detector Shifter, SLC6, has everything (we'll get from offices)
  • newpc2: in barracks, for students. windows(?) + virtual box. has peripherals from around (screen from markus (14))
  • newpc3: in barracks, for students. windows(?) + virtual box. has peripherals from around (screen from markus (4))
 

How to setup a CCT VP 717 Single Board Computer.

VP717 VME single board computers are items that can be rented from CERN Electronics Pool. One can plug in a monitor, keyboard and mouse and use it as a normal computer. After installing SLC6, one should log in as root, and do the following steps.

Line: 158 to 128
 

Downloading source code

There are 2 repositories that have the BL4S daq related source code.
Changed:
<
<
  • DAQ Software and the database: The source code of the DAQ,
  • DAQ Extras: The extra programs.
>
>
 

Setting up database

Setting up hosts

The hosts that will be used in the DAQ system should be created. To do this a bash script is used, and this script takes a python program as input.
Changed:
<
<
>
>
Script can be found in /bl4sextras/db_programs/ with instructions inside the README
 

Monitoring

Changed:
<
<
ROOT version runs with command line arguments:
>
>
There are several monitoring programs, most run with following command line arguments
 
Changed:
<
<
./emon_task2 -p part_BL4S -t ReadoutApplication -e 1000 -v 2
>
>
emon_task2 -p part_BL4S -t ReadoutApplication -e 1000 -v 2 -c current_config.cfg
 
Added:
>
>
 

Labview Event Display

  • Install labview by doing following steps. Note that we use 32 bit version, because VIPM does not work on 64bit (At least I(Cenk) could not get it to run). Answer all questions yes when you run the install script. You can just omit installing NI VISA Drivers, they are not needed.

Line: 221 to 193
 

Using DIP to publish data for a client in Technical Network(TN)

Installing DIM

Changed:
<
<
This step is only needed, if you want to start your own dns server. If you want to communicate with TN, this will not help.
>
>
This step is only needed, if you want to start your own dns server. If you want to communicate with TN, this will not help, since you need to use one of public servers.
  http://lhcb-daq.web.cern.ch/lhcb-daq/cgi-bin/rpmrepo_scripts/list_rpms.sh

For instance, SLC6 64 bits DIM :

Changed:
<
<
wget http://lhcb-daq.web.cern.ch/lhcb-daq/cgi-bin/rpmrepo_scripts/details.sh?/afs/cern.ch/lhcb/project/web/online/online-rpm-repo/slc6X/x86_64/RPMS/dim-v20r7-1.RHEL6.x86_64.rpm

wget http://lhcb-daq.web.cern.ch/lhcb-daq/cgi-bin/rpmrepo_scripts/details.sh?/afs/cern.ch/lhcb/project/web/online/online-rpm-repo/slc6X/x86_64/RPMS/dim-programs-v20r7-1.el6.x86_64.rpm

>
>
cp /afs/cern.ch/lhcb/project/web/online/online-rpm-repo/slc6X/x86_64/RPMS/dim-v20r7-1.RHEL6.x86_64.rpm /afs/cern.ch/lhcb/project/web/online/online-rpm-repo/slc6X/x86_64/RPMS/dim-programs-v20r7-1.el6.x86_64.rpm .
 yum localinstall dim-v20r7-1.RHEL6.x86_64.rpm dim-programs-v20r7-1.el6.x86_64.rpm
Added:
>
>
  It should resolve all dependencies for you and install the DNS daemon in /etc/init.d/dnsd
Changed:
<
<
You can install it, then all you need is to run...

# echo "export DIM_DNS_PORT=2506" >> /etc/sysconfig/dnsd

... and restart the dnsd service ...

>
>
To have a DIP Name server running, all you need is to run following commands to setup and restart dns daemon
 
Changed:
<
<
# service dnsd restart

... to have a standard DIP name server running.

>
>
echo "export DIM_DNS_PORT=2506" >> /etc/sysconfig/dnsd
service dnsd restart
  You can then point your DIP API to "localhost".
Changed:
<
<

Installing DIP

>
>

Installing DIP and test programs

 
Line: 255 to 223
 
  • If there are errors, try to fix them by adding relevant C header files. (You may need to add "stdlib.h" and change a function Sleep to sleep (big to small caps))

Starting DIP Server that publish BL4S Variables

Changed:
<
<
  • It is in the daq_extras repo, there is a working version of BL4S Dip Server. Do following to start the server after logging on to a PC with daquser account
>
>
  • It is in the daq_extras repo, there is already a working version of BL4S Dip Server. Do following to start the server after logging on to a PC with daquser account
 
cd /afs/cern.ch/user/d/daquser/public/daq_extras/dip_server
source setenv64.sh

Revision 182014-09-07 - CenkYildiz

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here
Line: 220 to 220
 

Using DIP to publish data for a client in Technical Network(TN)

Installing DIM

Deleted:
<
<
Hello Cenk,
 
Changed:
<
<
Concerning DIM, there is an RPM package produced by LHCb that features a neat dns daemon.
>
>
This step is only needed, if you want to start your own dns server. If you want to communicate with TN, this will not help.
  http://lhcb-daq.web.cern.ch/lhcb-daq/cgi-bin/rpmrepo_scripts/list_rpms.sh
Line: 246 to 247
  You can then point your DIP API to "localhost".
Deleted:
<
<
Let me know if you have further questions,

Brice

 

Installing DIP

Line: 257 to 254
 
  • Go to examples directory, compile Server.cpp and Client.cpp by saying "make all"
  • If there are errors, try to fix them by adding relevant C header files. (You may need to add "stdlib.h" and change a function Sleep to sleep (big to small caps))
Added:
>
>

Starting DIP Server that publish BL4S Variables

  • It is in the daq_extras repo, there is a working version of BL4S Dip Server. Do following to start the server after logging on to a PC with daquser account
cd /afs/cern.ch/user/d/daquser/public/daq_extras/dip_server
source setenv64.sh
./ServerBL4S

To check if the variables are published:

cd /afs/cern.ch/user/d/daquser/public/daq_extras/dip_server
source setenv64.sh
./browser64.sh
In the window, enter dipnsgpn1 as server, then you should see published variables under name bl4s in the tree.

 -- CenkYildiz - 13 Mar 2014 - 27 Jun 2014 -- CenkYildiz - 07 Jul 2014 -- CenkYildiz - 29 Aug 2014

Revision 172014-09-02 - CenkYildiz

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here
Line: 166 to 166
 

Monitoring

Added:
>
>
ROOT version runs with command line arguments:
 
./emon_task2 -p part_BL4S -t ReadoutApplication -e 1000 -v 2
Changed:
<
<
--++ Controlling HV mainframe remotely
>
>

Labview Event Display

  • Install labview by doing following steps. Note that we use 32 bit version, because VIPM does not work on 64bit (At least I(Cenk) could not get it to run). Answer all questions yes when you run the install script. You can just omit installing NI VISA Drivers, they are not needed.
       cd /afs/cern.ch/sw/natinst/LabVIEW2013/32bit/labview_core 
       ./INSTALL  
       
  • NOTE: Only in one of the PC's (bl4sdaq) I had to install libXinerama.i686 and mesa-libGL.i686 to get 32 bit labview to run.
       yum install  libXinerama.i686 mesa-libGL.i686
       
  • Install "Asynchronous Message Communication" extension
    • Download VI Package Manager (VIPM) from http://jki.net/vipm/download, extract the zip file, start the executable "vipm"
    • When the VIPM window opens, search for "Asynchronous Message Communication" on right top. Install the package (If it has problem communicating with labview, in labview go to Tools->Option->VI Server, and click on TCP/IP to activate port 3363, then press OK)
  • Get the event_display source code from Joseph Tag

Controlling HV mainframe remotely

  The SY2527 H.V. Mainframe has ethernet connection, It can be controlled remotely following the steps:
  • Register it to network going to CERN Network DataBase. Current one is registered as bl4shv on Cenk Yildiz.

Revision 162014-09-01 - CenkYildiz

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here
Line: 137 to 139
 

Running BL4S Daq

Added:
>
>

Setting up computers

The computers have to be set up to be able to handle the DAQ. On all the computers you'll use as DAQ components do the following:

Write following in /etc/security/limits.d/99-max-files.conf

# set the max number of open files - issue
*               soft    nofile          65536
*               hard    nofile          65536

Write following in /etc/security/limits.d/99-nproc.conf

## Managed by Puppet ##
*      soft        nproc       192751
 

Downloading source code

There are 2 repositories that have the BL4S daq related source code.
  • DAQ Software and the database: The source code of the DAQ,
Line: 181 to 201
 modprobe ndiswrapper
Added:
>
>

Using DIP to publish data for a client in Technical Network(TN)

Installing DIM

Hello Cenk,

Concerning DIM, there is an RPM package produced by LHCb that features a neat dns daemon.

http://lhcb-daq.web.cern.ch/lhcb-daq/cgi-bin/rpmrepo_scripts/list_rpms.sh

For instance, SLC6 64 bits DIM :

wget http://lhcb-daq.web.cern.ch/lhcb-daq/cgi-bin/rpmrepo_scripts/details.sh?/afs/cern.ch/lhcb/project/web/online/online-rpm-repo/slc6X/x86_64/RPMS/dim-v20r7-1.RHEL6.x86_64.rpm wget http://lhcb-daq.web.cern.ch/lhcb-daq/cgi-bin/rpmrepo_scripts/details.sh?/afs/cern.ch/lhcb/project/web/online/online-rpm-repo/slc6X/x86_64/RPMS/dim-programs-v20r7-1.el6.x86_64.rpm yum localinstall dim-v20r7-1.RHEL6.x86_64.rpm dim-programs-v20r7-1.el6.x86_64.rpm

It should resolve all dependencies for you and install the DNS daemon in /etc/init.d/dnsd

You can install it, then all you need is to run...

# echo "export DIM_DNS_PORT=2506" >> /etc/sysconfig/dnsd

... and restart the dnsd service ...

# service dnsd restart

... to have a standard DIP name server running.

You can then point your DIP API to "localhost".

Let me know if you have further questions,

Brice

Installing DIP

  • Download DIP from http://j2eeps.cern.ch/wikis/display/EN/DIP+API
  • unzip the file.
  • In the folder run "source setenv64.sh"
  • Go to examples directory, compile Server.cpp and Client.cpp by saying "make all"
  • If there are errors, try to fix them by adding relevant C header files. (You may need to add "stdlib.h" and change a function Sleep to sleep (big to small caps))
 -- CenkYildiz - 13 Mar 2014 - 27 Jun 2014 -- CenkYildiz - 07 Jul 2014 -- CenkYildiz - 29 Aug 2014 \ No newline at end of file

Revision 152014-08-29 - CenkYildiz

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here
Line: 170 to 170
  rdesktop -d cern -u daquser -g 95% pcbl4swebcam3
Deleted:
<
<
-- CenkYildiz - 13 Mar 2014 - 27 Jun 2014 -- CenkYildiz - 07 Jul 2014
 \ No newline at end of file
Added:
>
>

Installing AE1200 Wireless adapter to RH6

su
yum --enablerepo=elrepo install ndiswrapper-utils kmod-ndiswrapper
cd /afs/cern.ch/user/c/cyildiz/public/ae1200wireless
ndiswrapper -i bcmwlhigh5.inf
depmod -a
modprobe ndiswrapper

-- CenkYildiz - 13 Mar 2014 - 27 Jun 2014 -- CenkYildiz - 07 Jul 2014 -- CenkYildiz - 29 Aug 2014

 \ No newline at end of file

Revision 122014-08-26 - SaimeSarikaya

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here
Added:
>
>

Cherenkov gas settings

After todays(26.08.2014) mini talk, we decided to redo the pion decay experiment for different beam energies. Looking at the reference plots in

/afs/cern.ch/user/d/daquser/public/daq_extras/gas_mix/root/co2_final.root

Beam Energy CH1 CH2

4GeV ~1.1bar >1.6bar

6GeV ~0.5bar >0.6bar

8GeV ~0.3bar >0.5bar

10GeV ~0.2bar >0.3bar; <2.7bar

CH1 selects electrons and muons and CH2 selects electons, muons and pions.

 

Computer location in 157

  • WebcamServer1: Control room, no peripherals, any ethernet cable
  • WebcamServer2: Experimental area, with Fisheye lense, no peripherals, short ethernet cable(?)

Revision 112014-08-26 - CenkYildiz

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here
Added:
>
>

Computer location in 157

  • WebcamServer1: Control room, no peripherals, any ethernet cable
  • WebcamServer2: Experimental area, with Fisheye lense, no peripherals, short ethernet cable(?)
  • WebcamServer3: Above T9 (near stairs), no peripherals, 20m ethernet cable, long power cable (from area or from Beam control room)

  • bl4sdaq: Shift leader, has everything
  • bl4sdaqclone: Run Control Shifter, has everything
  • newPC1: Detector Shifter, SLC6, has everything (we'll get from offices)
  • newpc2: in barracks, for students. windows(?) + virtual box. has peripherals from around (screen from markus (14))
  • newpc3: in barracks, for students. windows(?) + virtual box. has peripherals from around (screen from markus (4))
 

How to setup a CCT VP 717 Single Board Computer.

VP717 VME single board computers are items that can be rented from CERN Electronics Pool. One can plug in a monitor, keyboard and mouse and use it as a normal computer. After installing SLC6, one should log in as root, and do the following steps.

Revision 102014-07-07 - CenkYildiz

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here
Line: 121 to 121
 ./emon_task2 -p part_BL4S -t ReadoutApplication -e 1000 -v 2
Deleted:
<
<
-- CenkYildiz - 13 Mar 2014 - 27 Jun 2014
 \ No newline at end of file
Added:
>
>
--++ Controlling HV mainframe remotely

The SY2527 H.V. Mainframe has ethernet connection, It can be controlled remotely following the steps:

  • Register it to network going to CERN Network DataBase. Current one is registered as bl4shv on Cenk Yildiz.
  • Start telnet in a windows or linux PC (Windows: go to Command Promt, type "telnet" and press enter, Linux: Open up a terminal, type "telnet" and press enter)
  • Connect to the HV mainframe with the following command:
o bl4shv 1527
  • The rest is same as using the HV module from its own screen.

-- CenkYildiz - 13 Mar 2014 - 27 Jun 2014 -- CenkYildiz - 07 Jul 2014

Revision 82014-06-27 - CenkYildiz

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here
Line: 59 to 59
 ./drivers_tdaq_vme start
Changed:
<
<

Setting up the A32 and A24 mapping in the VME memory. (More details should be added on how to use tsiconfig program)

>
>

Setting up the A32 and A24 mapping in the VME memory.

 #Setting the A32 and A24 mapping in the memory.
Added:
>
>
 cd /ATLAS/lib/ ../bin/tsiconfig -a ../driver/vmetab
Added:
>
>
To see what to do inside the tsiconfig, here's a howTo from the master himself: /afs/cern.ch/user/c/cyildiz/public/vme_mastermapping.mp4
 To see the mapping, one can use tsciscope
../bin/tsiscope  
Line: 118 to 121
 ./emon_task2 -p part_BL4S -t ReadoutApplication -e 1000 -v 2
Deleted:
<
<
-- CenkYildiz - 13 Mar 2014
 \ No newline at end of file
Added:
>
>
-- CenkYildiz - 13 Mar 2014 - 27 Jun 2014

Revision 52014-03-14 - CenkYildiz

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here
Line: 100 to 100
 

Checking the database

Running BL4S Daq

Added:
>
>

Downloading source code

There are 2 repositories that have the BL4S daq related source code.
  • DAQ Software and the database: The source code of the DAQ,
  • DAQ Extras: The extra programs.
 

Setting up database

Changed:
<
<

Setting up ...

>
>

Setting up hosts

The hosts that will be used in the DAQ system should be created. To do this a bash script is used, and this script takes a python program as input.
 

-- CenkYildiz - 13 Mar 2014

Revision 42014-03-14 - CenkYildiz

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here
Line: 7 to 7
  VP717 VME single board computers are items that can be rented from CERN Electronics Pool. One can plug in a monitor, keyboard and mouse and use it as a normal computer. After installing SLC6, one should log in as root, and do the following steps.
Changed:
<
<

Installing vme drivers

>
>

Installing vme drivers

 
cd root
mkdir ATLAS
Line: 27 to 27
 cd ../lib/
Changed:
<
<

Copying missing library shared objects

>
>

Copying missing library shared objects

 ldd command will show the missing libraries for each binary file, and they should be copied to /ATLAS/lib directory. One should repeat the following 3 lines until the command does not give more missing libraries such as "libSomething.so.3 => not found"
Line: 49 to 49
 cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libcmem_rcc.so .
Changed:
<
<

Setting up the system so that drivers are loaded at every boot

>
>

Setting up the system so that drivers are loaded at every boot

 
cd /etc/init.d
cp ~joos/public/drivers_tdaq_vme .
Line: 59 to 59
 ./drivers_tdaq_vme start
Changed:
<
<

Setting up the A32 and A24 mapping in the VME memory. (More details should be added on how to use tsiconfig program)

>
>

Setting up the A32 and A24 mapping in the VME memory. (More details should be added on how to use tsiconfig program)

 
#Setting the A32 and A24 mapping in the memory.
cd /ATLAS/lib/
Line: 85 to 85
 
Added:
>
>


 

Running DAQ School Exercise 4

Exercise 4 was originally run on CCT VP 110 VME SBC(32 bit), with operating system SLC4, and tdaq version 02-00-03. With help of experts the exercise is upgraded to run on CCT VP 717 VME SCB(64 bit), with operating system SLC6, and tdaq version 05-03-00.

Revision 32014-03-14 - CenkYildiz

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here

How to setup a CCT VP 717 Single Board Computer.

Changed:
<
<
After logging in as root.
>
>
VP717 VME single board computers are items that can be rented from CERN Electronics Pool. One can plug in a monitor, keyboard and mouse and use it as a normal computer. After installing SLC6, one should log in as root, and do the following steps.
 
Added:
>
>

Installing vme drivers

 
cd root                
mkdir ATLAS
Line: 23 to 24
 cp ~joos/public/tdaq-05-03-00/installed/x86.../bin/vme_rcc . cp ~joos/public/tdaq-05-03-00/installed/x86.../bin/tsiconf .

Deleted:
<
<
ldd * |grep found #Shows missing libraries for each bin

 cd ../lib/
Added:
>
>

Copying missing library shared objects

ldd command will show the missing libraries for each binary file, and they should be copied to /ATLAS/lib directory. One should repeat the following 3 lines until the command does not give more missing libraries such as "libSomething.so.3 => not found"

ldd ../bin/* |grep found
 cp ~joos/public/tdaq-05-03-00/installed/x86.../library/MISSING_LIB_NAME export LD_LIBRARY_PATH=.
Added:
>
>
 
Changed:
<
<
ldd ../bin/* |grep found #Shows missing libraries for each bin
>
>
During the installation for BL4S, we had to copy the following ones.
 #Copy until nothing else appears. Example: cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libvme_rcc.so . cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libDFDebug.so .
Line: 40 to 47
 cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/librcc_error.so . cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/librcc_time_stamp.so . cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libcmem_rcc.so .
Added:
>
>
 
Changed:
<
<
>
>

Setting up the system so that drivers are loaded at every boot

 cd /etc/init.d cp ~joos/public/drivers_tdaq_vme . cd ../rc5.d ln -s ../init.d/drivers_tdaq_vme S98drivers_tdaq_vme cd ../init.d ./drivers_tdaq_vme start
Added:
>
>
 
Added:
>
>

Setting up the A32 and A24 mapping in the VME memory. (More details should be added on how to use tsiconfig program)

 #Setting the A32 and A24 mapping in the memory. cd /ATLAS/lib/ ../bin/tsiconfig -a ../driver/vmetab
Added:
>
>
 
Changed:
<
<
To see the mapping:
>
>
To see the mapping, one can use tsciscope
 ../bin/tsiscope

===================================================================================

Line: 76 to 89
 Exercise 4 was originally run on CCT VP 110 VME SBC(32 bit), with operating system SLC4, and tdaq version 02-00-03. With help of experts the exercise is upgraded to run on CCT VP 717 VME SCB(64 bit), with operating system SLC6, and tdaq version 05-03-00.

Running exercise on this hardware with newer software requires the following steps.

Changed:
<
<

Setting up the VME SBC.

>
>

Setting up the VME SBC.

 
  • Install SLC 6
  • Login as root. Create account daquser
    addusercern daquser

Revision 22014-03-14 - CenkYildiz

Line: 1 to 1
 
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here
Added:
>
>

How to setup a CCT VP 717 Single Board Computer.

After logging in as root.

cd root                
mkdir ATLAS
cd ATLAS            
mkdir bin lib driver   
cd driver              
cp ~joos/public/tdaq-05-03-00/drvers-05-03-00-x86_64/vme_rcc_tsi._KERNELNO__x86_64.ko vme_rcc_tsi.ko                                                                                                                                
cp ~joos/public/tdaq-05-03-00/drvers-05-03-00-x86_64/io_rcc._KERNELNO__x86_64.ko io_rcc.ko
cp ~joos/public/tdaq-05-03-00/drvers-05-03-00-x86_64/cmem_rcc._KERNELNO__x86_64.ko cmem_rcc.ko
                       
cd ../bin/             
cp ~joos/public/tdaq-05-03-00/installed/x86.../bin/tsiscope .
cp ~joos/public/tdaq-05-03-00/installed/x86.../bin/scanvme_tsci .
cp ~joos/public/tdaq-05-03-00/installed/x86.../bin/vme_rcc .
cp ~joos/public/tdaq-05-03-00/installed/x86.../bin/tsiconf .
                       
ldd * |grep found #Shows missing libraries for each bin
                       
cd ../lib/             
cp ~joos/public/tdaq-05-03-00/installed/x86.../library/MISSING_LIB_NAME
export LD_LIBRARY_PATH=.
                       
ldd ../bin/* |grep found #Shows missing libraries for each bin

#Copy until nothing else appears. Example:
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libvme_rcc.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libDFDebug.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libgetinput.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libDFDebug.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libio_rcc.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/librcc_error.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/librcc_time_stamp.so .
cp /afs/cern.ch/atlas/project/tdaq/inst/tdaq/tdaq-05-03-00/installed/x86_64-slc6-gcc47-opt/lib/libcmem_rcc.so .


cd /etc/init.d
cp ~joos/public/drivers_tdaq_vme .
cd ../rc5.d            
ln -s ../init.d/drivers_tdaq_vme S98drivers_tdaq_vme
cd ../init.d           
./drivers_tdaq_vme start
                       
#Setting the A32 and A24 mapping in the memory.
cd /ATLAS/lib/         
../bin/tsiconfig -a ../driver/vmetab

To see the mapping:
../bin/tsiscope  

=======================================================================================
LSI|                       VME address range|                       PCI address range|  EN| MRPFD|     PFS|     2eSST|        TM|       DBW|  SUP|  PGM|     AM|    OTBS
===|========================================|========================================|====|======|========|==========|==========|==========|=====|=====|=======|========
  0| 0x0000000000000000 - 0x0000000000ffffff| 0x0000000040000000 - 0x0000000040ffffff| Yes|    No| 2 lines|  160 MB/s|    single|    32 bit| User| Data|    A24| 0x00000
  1| 0x0000000000000000 - 0x000000000fffffff| 0x0000000041000000 - 0x0000000050ffffff| Yes|    No| 2 lines|  160 MB/s|    single|    32 bit| User| Data|    A32| 0x00000
  2| 0x0000000000000000 - 0x000000000000ffff| 0x0000000000000000 - 0x000000000000ffff|  No|    No| 2 lines|  160 MB/s|    single|    16 bit| User| Data|    A16| 0x00000
  3| 0x0000000000000000 - 0x000000000000ffff| 0x0000000000000000 - 0x000000000000ffff|  No|    No| 2 lines|  160 MB/s|    single|    16 bit| User| Data|    A16| 0x00000
  4| 0x0000000000000000 - 0x000000000000ffff| 0x0000000000000000 - 0x000000000000ffff|  No|    No| 2 lines|  160 MB/s|    single|    16 bit| User| Data|    A16| 0x00000
  5| 0x0000000000000000 - 0x000000000000ffff| 0x0000000000000000 - 0x000000000000ffff|  No|    No| 2 lines|  160 MB/s|    single|    16 bit| User| Data|    A16| 0x00000
  6| 0x0000000000000000 - 0x000000000000ffff| 0x0000000000000000 - 0x000000000000ffff|  No|    No| 2 lines|  160 MB/s|    single|    16 bit| User| Data|    A16| 0x00000
  7| 0x0000000000000000 - 0x000000000000ffff| 0x0000000000000000 - 0x000000000000ffff|  No|    No| 2 lines|  160 MB/s|    single|    16 bit| User| Data|    A16| 0x00000
=======================================================================================


 

Running DAQ School Exercise 4

Exercise 4 was originally run on CCT VP 110 VME SBC(32 bit), with operating system SLC4, and tdaq version 02-00-03. With help of experts the exercise is upgraded to run on CCT VP 717 VME SCB(64 bit), with operating system SLC6, and tdaq version 05-03-00.

Revision 12014-03-13 - CenkYildiz

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="BeamLineForSchools"
HowTo Documents will be here

Running DAQ School Exercise 4

Exercise 4 was originally run on CCT VP 110 VME SBC(32 bit), with operating system SLC4, and tdaq version 02-00-03. With help of experts the exercise is upgraded to run on CCT VP 717 VME SCB(64 bit), with operating system SLC6, and tdaq version 05-03-00.

Running exercise on this hardware with newer software requires the following steps.

Setting up the VME SBC.

  • Install SLC 6
  • Login as root. Create account daquser
    addusercern daquser
  • Install tdaq locally

Checking the database

Running BL4S Daq

Setting up database

Setting up ...

-- CenkYildiz - 13 Mar 2014

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback