Project

General

Profile

Minutes

2013 - July, from 8th to 12th - Working week @GSI
2013 - June, from 3rd to 7th - Working week @GSI
2013 - March, from 22th to 29th - Working week @GSI
2012 - July, from 23th to 27th - Working week @LNL
2011, 21th of July - Meeting @Orsay
2010, 5th of July - Meeting @LNL

Technical informations

Updating LSC carrier for a new TM server

Modifying agataconfiguration.py

In function tm_command fix the first line with the right hostname :

def tm_command(cmd, ignoreout=False):
command = "ssh topology@HOSTNAME \"bin/tm_xml_access %s\"" % cmd
...

After, you have to check in this file that the variable UseTopologyManager is True.

Modifying commandToCarrier.py

Fix the line which add an option --url* with the right hostname :
Should be around line 15.

Fixing ssh key issue

You have to propagate ssh public key to the user topology on @HOSTNAME machine.

Restarting the System

Restarting of Topology manager

  • Account:
      topology@scgw2
    
  • General
     The command should better be used in a scree 

    The port will be 6095.
    The web server:
    http://scgw2:6095 
    
  • Folder:
      /home/topology/topology-lab/topology-manager-dev
    
  • Command:
      LD_LIBRARY_PATH=/home/topology/gnat_pro-7.2.0w/lib:/home/topology/gnat_pro-7.2.0w/lib/gcc/x86_64-pc-linux-gnu/4.7.3//adalib  ./bin/tm_server -log_level debug -file /agatalog/topology-manager/log-scgw2 -base AGATADEVICES -port 6095          
    

Do the configuration

This procedure is done in screen.

User

psa-tests@scgw2

File

The script buildcfg is used with the option of the topology manager

Utilisation

buildcg --tm 12[AB] 13[ABC] 14[ABC]

The list of the crystal has to be changed. this will automatically set at on the crystal in the topology manager.

Next of standard procedure.

Digitizer LSC

  • User
 midas@scgw2 
  • Command:
     ./MIDAS/TclHttpd/Linux64/TclHttpd-server 
  • Server:
    port: 8015
http://scgw2:8015

Carrier LSC

  • User:
    carrier@scgw2 (WARRRRRNNNNNING mot de passe different!!!)
    
  • Command:
    ./carrierLSC/server.py
    

Carrier GUI

  • User
    psa-tests@scgw2
    
  • Command
     ./carrierLSC/cgui.py 12A 12B 13A 13B 13C 14A 14B 14C
    

Mezzanine LSC

  • User:
    mezzanine@scgw2
    
  • Command:
    ./start_LSC_mezz
    
  • web page:
    port : 4747
     http://scgw2:4747 

Checking and Setting the Topology

General

  • In the home folder, the link hardware-list points to the current topology
  • In the hardware-carrier.xml file, for each master, one need to define a device_type server associated.

Files

  • hardware-* are the harware list. They should be updated only if there is a hardware change.
    • carrier master server have to be linked with the right field address and internal_ref (and this is crystal dependant ...) (hardware-carrier.xml)
    • think about it for ancillary (hardware-ancillary.xml)
    • cluster have a filed to set the position in the AGATA-structure. It is has to be updated when crystal are installed! (hardware-global.xml)
    • core mezzanine has to be set to the right kindness (hardware-segment.xml)
  • relation-* to set relation between all object in the base. **

To set the DB from file

The server need to be running.

./bin/clean_and_fill_db_from_multiple_xml.sh

The password of the database is asked.

Starting procedure

Command list

This is a list of the command to enter to get the electronic rebooted if it is needed.
This is quickly done By Damian, at the end of the 2014 experiments to keep some track of what to do.
This is not free of bugs.

Clean the previous configuration

Execute the following command:

psa-tests@scgw2:~$ ./clean_all.sh

This kill all remaining process from the previous configuration.

Reboot the GTS tree

It is good to switch the ancillary GTS before going up. (the AGAVA is in the crate with a r4-6 controller).
Switch off and on the VME-CRATE.
Come back down, and switch on the AGAVA- crate.

Reboot all leaf

After checking that the Linco are seen by all computer:

psa-tests@scgw2:~$ checkNarvalNodes

Connect to all anode:

psa-tests@scgw2:~$ cssh root@anode22 root@anode02 root@anode18 root@anode24 root@anode09 root@anode12 root@anode11 root@anode06 root@anode19 root@anode07 root@anode20 root@anode13 root@anode16 root@anode03 root@anode01 root@anode14 root@anode15 root@anode17 root@anode08 root@anode10 root@anode05 root@anode23

and execute the following script:

root@anodeXX:~# ./reboot_gts.sh

Make sure that all computer get the order properly, the following message should be seen:

./Reload_GTS_leaf_firmware.sh
CREATION DU FICHIER : /tmp/tmp.v6S4zf5UxD
EXECUTE COMMAND FILE : /tmp/tmp.v6S4zf5UxD :
cleancablelock
setmode -bscan
setcable -p parport0
identify
assignfile -p 7 -file /agata/tools/mezzanine/GTS_leaf_xavier_ganil.bit
program -p 7
quit
Release 10.1.03 - iMPACT K.39 (lin64)
Copyright (c) 1995-2008 Xilinx, Inc.  All rights reserved.
Preference Table
Name                 Setting             
StartupClock         Auto_Correction     
AutoSignature        False               
KeepSVF              False               
ConcurrentMode       False               
UseHighz             False               
ConfigOnFailure      Stop                
UserLevel            Novice              
MessageLevel         Detailed            
svfUseTime           false               
SpiByteSwap          Auto_Correction     
>Cleaning all cable semaphores. Please wait.
Reusing 78006001 key.
 Removing semaphore, key = 0x78006001.
Reusing FC006001 key.
 Removing semaphore, key = 0xFC006001.
 Removing semaphore, key = 0x79006001.
 Removing semaphore, key = 0xFD006001.
 Removing semaphore, key = 0x7A006001.
 Removing semaphore, key = 0xFE006001.
 Removing semaphore, key = 0x7B006001.
 Removing semaphore, key = 0xFF006001.
 Removing semaphore, key = 0xA0006001.
 Removing semaphore, key = 0x24006001.
 Removing semaphore, key = 0xA1006001.
 Removing semaphore, key = 0x25006001.
 Removing semaphore, key = 0xA2006001.
 Removing semaphore, key = 0x26006001.
 Removing semaphore, key = 0xA3006001.
 Removing semaphore, key = 0x27006001.
 Removing semaphore, key = 0xA4006001.
 Removing semaphore, key = 0x28006001.
 Removing semaphore, key = 0xA5006001.
 Removing semaphore, key = 0x29006001.
 Removing semaphore, key = 0xA6006001.
 Removing semaphore, key = 0x2A006001.
 Removing semaphore, key = 0xA7006001.
 Removing semaphore, key = 0x2B006001.
 Removing semaphore, key = 0xA8006001.
 Removing semaphore, key = 0x2C006001.
 Removing semaphore, key = 0xA9006001.
 Removing semaphore, key = 0x2D006001.
 Removing semaphore, key = 0xAA006001.
 Removing semaphore, key = 0x2E006001.
 Removing semaphore, key = 0xAB006001.
 Removing semaphore, key = 0x2F006001.
 Removing semaphore, key = 0xAC006001.
 Removing semaphore, key = 0x30006001.
 Removing semaphore, key = 0xAD006001.
 Removing semaphore, key = 0x31006001.
 Removing semaphore, key = 0xAE006001.
 Removing semaphore, key = 0x32006001.
 Removing semaphore, key = 0xAF006001.
 Removing semaphore, key = 0x33006001.
 Removing semaphore, key = 0xB0006001.
 Removing semaphore, key = 0x34006001.
 Removing semaphore, key = 0xB1006001.
 Removing semaphore, key = 0x35006001.
 Removing semaphore, key = 0xB2006001.
 Removing semaphore, key = 0x36006001.
 Removing semaphore, key = 0xB3006001.
 Removing semaphore, key = 0x37006001.
 Removing semaphore, key = 0xB4006001.
 Removing semaphore, key = 0x38006001.
 Removing semaphore, key = 0xB5006001.
 Removing semaphore, key = 0x39006001.
 Removing semaphore, key = 0xB6006001.
 Removing semaphore, key = 0x3A006001.
 Removing semaphore, key = 0xB7006001.
 Removing semaphore, key = 0x3B006001.
 Removing semaphore, key = 0xB8006001.
 Removing semaphore, key = 0x3C006001.
 Removing semaphore, key = 0xB9006001.
 Removing semaphore, key = 0x3D006001.
 Removing semaphore, key = 0xBA006001.
 Removing semaphore, key = 0x3E006001.
 Removing semaphore, key = 0xBB006001.
 Removing semaphore, key = 0x3F006001.
 Removing semaphore, key = 0xBC006001.
 Removing semaphore, key = 0x40006001.
 Removing semaphore, key = 0xBD006001.
 Removing semaphore, key = 0x41006001.
 Removing semaphore, key = 0xBE006001.
 Removing semaphore, key = 0x42006001.
 Removing semaphore, key = 0xBF006001.
 Removing semaphore, key = 0x43006001.
 Removing semaphore, key = 0xC0006001.
 Removing semaphore, key = 0x44006001.
 Removing semaphore, key = 0xC1006001.
 Removing semaphore, key = 0x45006001.
 Removing semaphore, key = 0xC2006001.
 Removing semaphore, key = 0x46006001.
 Removing semaphore, key = 0xC3006001.
 Removing semaphore, key = 0x47006001.
 Removing semaphore, key = 0xC4006001.
 Removing semaphore, key = 0x48006001.
 Removing semaphore, key = 0xC5006001.
 Removing semaphore, key = 0x49006001.
 Removing semaphore, key = 0xC6006001.
 Removing semaphore, key = 0x4A006001.
 Removing semaphore, key = 0xC7006001.
 Removing semaphore, key = 0x4B006001.
 Removing semaphore, key = 0xC8006001.
 Removing semaphore, key = 0x4C006001.
 Removing semaphore, key = 0xC9006001.
 Removing semaphore, key = 0x4D006001.
 Removing semaphore, key = 0xCA006001.
 Removing semaphore, key = 0x4E006001.
 Removing semaphore, key = 0xCB006001.
 Removing semaphore, key = 0x4F006001.
 Removing semaphore, key = 0xCC006001.
 Removing semaphore, key = 0x50006001.
 Removing semaphore, key = 0xCD006001.
 Removing semaphore, key = 0x51006001.
 Removing semaphore, key = 0xCE006001.
 Removing semaphore, key = 0x52006001.
 Removing semaphore, key = 0xCF006001.
 Removing semaphore, key = 0x53006001.
 Removing semaphore, key = 0xD0006001.
 Removing semaphore, key = 0x54006001.
 Removing semaphore, key = 0xD1006001.
 Removing semaphore, key = 0x55006001.
 Removing semaphore, key = 0xD2006001.
 Removing semaphore, key = 0x56006001.
 Removing semaphore, key = 0xD3006001.
 Removing semaphore, key = 0x57006001.
 Removing semaphore, key = 0xD4006001.
 Removing semaphore, key = 0x58006001.
 Removing semaphore, key = 0xD5006001.
 Removing semaphore, key = 0x59006001.
 Removing semaphore, key = 0xD6006001.
 Removing semaphore, key = 0x5A006001.
 Removing semaphore, key = 0xD7006001.
 Removing semaphore, key = 0x5B006001.
 Removing semaphore, key = 0xD8006001.
 Removing semaphore, key = 0x5C006001.
 Removing semaphore, key = 0xD9006001.
 Removing semaphore, key = 0x5D006001.
 Removing semaphore, key = 0xDA006001.
 Removing semaphore, key = 0x5E006001.
 Removing semaphore, key = 0xDB006001.
 Removing semaphore, key = 0x5F006001.
 Removing semaphore, key = 0xDC006001.
 Removing semaphore, key = 0x60006001.
 Removing semaphore, key = 0xDD006001.
 Removing semaphore, key = 0x61006001.
 Removing semaphore, key = 0xDE006001.
 Removing semaphore, key = 0x62006001.
 Removing semaphore, key = 0xDF006001.
 Removing semaphore, key = 0x63006001.
 Removing semaphore, key = 0xE0006001.
 Removing semaphore, key = 0x64006001.
 Removing semaphore, key = 0xE1006001.
 Removing semaphore, key = 0x65006001.
 Removing semaphore, key = 0xE2006001.
 Removing semaphore, key = 0x66006001.
 Removing semaphore, key = 0xE3006001.
 Removing semaphore, key = 0x67006001.
 Removing semaphore, key = 0xE4006001.
 Removing semaphore, key = 0x68006001.
 Removing semaphore, key = 0xE5006001.
 Removing semaphore, key = 0x69006001.
 Removing semaphore, key = 0xE6006001.
 Removing semaphore, key = 0x6A006001.
 Removing semaphore, key = 0xE7006001.
 Removing semaphore, key = 0x6B006001.
 Removing semaphore, key = 0xE8006001.
 Removing semaphore, key = 0x6C006001.
 Removing semaphore, key = 0xE9006001.
 Removing semaphore, key = 0x6D006001.
 Removing semaphore, key = 0xEA006001.
 Removing semaphore, key = 0x6E006001.
 Removing semaphore, key = 0xEB006001.
 Removing semaphore, key = 0x6F006001.
 Removing semaphore, key = 0xEC006001.
 Removing semaphore, key = 0x70006001.
 Removing semaphore, key = 0xED006001.
 Removing semaphore, key = 0x71006001.
 Removing semaphore, key = 0xEE006001.
 Removing semaphore, key = 0x72006001.
 Removing semaphore, key = 0xEF006001.
 Removing semaphore, key = 0x73006001.
 Removing semaphore, key = 0xF0006001.
 Removing semaphore, key = 0x74006001.
 Removing semaphore, key = 0xF1006001.
 Removing semaphore, key = 0x75006001.
 Removing semaphore, key = 0xF2006001.
 Removing semaphore, key = 0x76006001.
 Removing semaphore, key = 0xF3006001.
 Removing semaphore, key = 0x77006001.
 Removing semaphore, key = 0xF4006001.
 Removing semaphore, key = 0x78006001.
 Removing semaphore, key = 0xF5006001.
 Removing semaphore, key = 0x79006001.
 Removing semaphore, key = 0xF6006001.
 Removing semaphore, key = 0x7A006001.
 Removing semaphore, key = 0xF7006001.
 Removing semaphore, key = 0x7B006001.
 Removing semaphore, key = 0xF8006001.
 Removing semaphore, key = 0x7C006001.
 Removing semaphore, key = 0xF9006001.
 Removing semaphore, key = 0x7D006001.
 Removing semaphore, key = 0xFA006001.
 Removing semaphore, key = 0x7E006001.
 Removing semaphore, key = 0xFB006001.
 Removing semaphore, key = 0x7F006001.
 Removing semaphore, key = 0xFC006001.
 Removing semaphore, key = 0x80006001.
 Removing semaphore, key = 0xFD006001.
 Removing semaphore, key = 0x81006001.
 Removing semaphore, key = 0xFE006001.
 Removing semaphore, key = 0x82006001.
 Removing semaphore, key = 0xFF006001.
 Removing semaphore, key = 0x83006001.
 Removing semaphore, key = 0x6001.
 Removing semaphore, key = 0x84006001.
 Removing semaphore, key = 0x1006001.
 Removing semaphore, key = 0x85006001.
 Removing semaphore, key = 0x2006001.
 Removing semaphore, key = 0x86006001.
 Removing semaphore, key = 0x3006001.
 Removing semaphore, key = 0x87006001.
 Removing semaphore, key = 0x4006001.
 Removing semaphore, key = 0x88006001.
 Removing semaphore, key = 0x5006001.
 Removing semaphore, key = 0x89006001.
 Removing semaphore, key = 0x6006001.
 Removing semaphore, key = 0x8A006001.
 Removing semaphore, key = 0x7006001.
 Removing semaphore, key = 0x8B006001.
 Removing semaphore, key = 0x8006001.
 Removing semaphore, key = 0x8C006001.
 Removing semaphore, key = 0x9006001.
 Removing semaphore, key = 0x8D006001.
 Removing semaphore, key = 0xA006001.
 Removing semaphore, key = 0x8E006001.
 Removing semaphore, key = 0xB006001.
 Removing semaphore, key = 0x8F006001.
 Removing semaphore, key = 0xC006001.
 Removing semaphore, key = 0x90006001.
 Removing semaphore, key = 0xD006001.
 Removing semaphore, key = 0x91006001.
 Removing semaphore, key = 0xE006001.
 Removing semaphore, key = 0x92006001.
 Removing semaphore, key = 0xF006001.
 Removing semaphore, key = 0x93006001.
 Removing semaphore, key = 0x10006001.
 Removing semaphore, key = 0x94006001.
 Removing semaphore, key = 0x11006001.
 Removing semaphore, key = 0x95006001.
 Removing semaphore, key = 0x12006001.
 Removing semaphore, key = 0x96006001.
 Removing semaphore, key = 0x13006001.
 Removing semaphore, key = 0x97006001.
 Removing semaphore, key = 0x14006001.
 Removing semaphore, key = 0x98006001.
 Removing semaphore, key = 0x15006001.
 Removing semaphore, key = 0x99006001.
 Removing semaphore, key = 0x16006001.
 Removing semaphore, key = 0x9A006001.
 Removing semaphore, key = 0x17006001.
 Removing semaphore, key = 0x9B006001.
 Removing semaphore, key = 0x18006001.
 Removing semaphore, key = 0x9C006001.
 Removing semaphore, key = 0x19006001.
 Removing semaphore, key = 0x9D006001.
 Removing semaphore, key = 0x1A006001.
 Removing semaphore, key = 0x9E006001.
 Removing semaphore, key = 0x1B006001.
 Removing semaphore, key = 0x9F006001.
 Removing semaphore, key = 0x1C006001.
 Removing semaphore, key = 0xA0006001.
 Removing semaphore, key = 0x1D006001.
 Removing semaphore, key = 0xA1006001.
 Removing semaphore, key = 0x1E006001.
 Removing semaphore, key = 0xA2006001.
 Removing semaphore, key = 0xB4006001.
 Removing semaphore, key = 0x38006001.
 Removing semaphore, key = 0xB5006001.
 Removing semaphore, key = 0x39006001.
 Removing semaphore, key = 0xB6006001.
 Removing semaphore, key = 0x3A006001.
 Removing semaphore, key = 0xB7006001.
 Removing semaphore, key = 0x3B006001.
>>Connecting to cable (Parallel Port - parport0).
 libusb-driver.so version: 2011-12-12 16:47:45.
 parport0: baseAddress=0x0, ecpAddress=0x400
 parport1: baseAddress=0x10, ecpAddress=0x410
 LPT1 Base Address set from env variable = 0.
 LPT base address = 0000h.
 LPT1 Ecp Address set from env variable = 400.
 ECP base address = 0400h.
Cable connection established.
>Identifying chain contents ....'1': : Manufacturer's ID =Xilinx xc4vfx60, Version : 8
INFO:iMPACT:1777 - 
   Reading /agata/Xilinx_Orsay/Xilinx/10.1/ISE/virtex4/data/xc4vfx60.bsd...
INFO:iMPACT:501 - '1': Added Device xc4vfx60 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'2': : Manufacturer's ID =Xilinx xcf32p, Version : 15
INFO:iMPACT:1777 - 
   Reading /agata/Xilinx_Orsay/Xilinx/10.1/ISE/xcfp/data/xcf32p.bsd...
INFO:iMPACT:501 - '1': Added Device xcf32p successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'3': : Manufacturer's ID =Xilinx xc4vfx60, Version : 8
INFO:iMPACT:501 - '1': Added Device xc4vfx60 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'4': : Manufacturer's ID =Xilinx xcf32p, Version : 15
INFO:iMPACT:501 - '1': Added Device xcf32p successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'5': : Manufacturer's ID =Xilinx xc4vfx60, Version : 8
INFO:iMPACT:501 - '1': Added Device xc4vfx60 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'6': : Manufacturer's ID =Xilinx xcf32p, Version : 15
INFO:iMPACT:501 - '1': Added Device xcf32p successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'7': : Manufacturer's ID =Xilinx xc4vfx60, Version : 8
INFO:iMPACT:501 - '1': Added Device xc4vfx60 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'8': : Manufacturer's ID =Xilinx xcf32p, Version : 15
INFO:iMPACT:501 - '1': Added Device xcf32p successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'9': : Manufacturer's ID =Xilinx xc4vlx25, Version : 10
INFO:iMPACT:1777 - 
   Reading /agata/Xilinx_Orsay/Xilinx/10.1/ISE/virtex4/data/xc4vlx25.bsd...
INFO:iMPACT:501 - '1': Added Device xc4vlx25 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'10': : Manufacturer's ID =Xilinx xcf32p, Version : 15
INFO:iMPACT:501 - '1': Added Device xcf32p successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'11': : Manufacturer's ID =Xilinx xc4vfx60, Version : 8
INFO:iMPACT:501 - '1': Added Device xc4vfx60 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'12': : Manufacturer's ID =Xilinx xcf32p, Version : 15
INFO:iMPACT:501 - '1': Added Device xcf32p successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
'13': : Manufacturer's ID =Xilinx xcf32p, Version : 15
INFO:iMPACT:501 - '1': Added Device xcf32p successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
done.
Elapsed time =      1 sec.
Elapsed time =      0 sec.
>'7': Loading file '/agata/tools/mezzanine/GTS_leaf_xavier_ganil.bit' ...
done.
----------------------------------------------------------------------
INFO:iMPACT:501 - '7': Added Device xc4vfx60 successfully.
----------------------------------------------------------------------
----------------------------------------------------------------------
>Maximum TCK operating frequency for this device chain: 0.
Validating chain...
Boundary-scan chain validated successfully.
'7': Programming device...
 Match_cycle = NoWait.
Match cycle: NoWait
done.
'7': Reading status register contents...
CRC error                                         :         0
Decryptor security set                            :         0
DCM locked                                        :         1
DCI matched                                       :         1
End of startup signal from Startup block          :         1
status of GTS_CFG_B                               :         1
status of GWE                                     :         1
status of GHIGH                                   :         1
value of MODE pin M0                              :         0
value of MODE pin M1                              :         0
Value of MODE pin M2                              :         0
Internal signal indicates when housecleaning is completed:         1
Value driver in from INIT pad                     :         1
Internal signal indicates that chip is configured :         1
Value of DONE pin                                 :         1
Indicates when ID value written does not match chip ID:         0
Decryptor error Signal                            :         0
System Monitor Over-Temperature Alarm             :         0
INFO:iMPACT:2219 - Status register values:
INFO:iMPACT - 0011 1111 0001 1110 0000 0000 0000 0000 
INFO:iMPACT:579 - '7': Completed downloading bit file to device.
 Match_cycle = NoWait.
Match cycle: NoWait
INFO:iMPACT - '7': Checking done pin....done.
'7': Programmed successfully.
Elapsed time =     15 sec.
>----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------
----------------------------------------------------------------------

If not, execute the script again.

Prepare the setup

Check that all card are seen on the network:

psa-tests@scgw2:~$ pingcards

Check that all telnet are open:

psa-tests@scgw2:~$ ./clean_all.sh

If not, wait and try again.

Do the setup procedure:

psa-tests@scgw2:~$ ./setup.sh

and wait until:

*****************************
launch the carrier reset NOW
*****************************

On the Carrier-GUI, do the reset of all the cards.
Once all the carrier are in reset status wait for the message:

All GTS cards now wait for the carriers
*****************************
launch the carrier setup NOW
*****************************

Make sure that all carriers are properly setup. If one is in error, just do a reset/setup of this card. Check that all carrier do NOT have any back pressure status at the setup procedure. For this, open all carrier information, and make sure that they are no red point. If any has red-point, just reset and setup this card.

Once all card are really setup press return at the following message:

Press <RETURN> key to continue...

The GTS-delay and time should be measured, until you get this message:

--> configuration parameters are taken from config_crystals/crystal_<crystal name>.rc <--

 ----> MODIFYING IDLE PERIOD IN THE GTS TREE <-----

Gtk-Message: Failed to load module "gnomebreakpad": libgnomebreakpad.so: cannot open shared object file: No such file or directory
writeField_S idle_period_ctrl idle_period 300  : launched on cards 6 7 8 9 10 11 12 13 14 15 16 17 18 22 23 24 26 28 29 30 35 36 37 39 40 43 44 46 47 48 51 57 58 62 65
writeField_S idle_period idle_period_en 1  : launched on cards 6 7 8 9 10 11 12 13 14 15 16 17 18 22 23 24 26 28 29 30 35 36 37 39 40 43 44 46 47 48 51 57 58 62 65
END OF SETUP SCRIPT

At this point, the carrier and GTS are setup.

Digitizer

Once all GTS are properly time aligned (previous step), do a setup of all digitizers from the following web-interface:

http://scgw2:8015/AGATADigitizer/AGATADigitizer.tml

This is taking a while. Once the web-page is responding again, check the status of the carrier. All the left column DOT should be green. If they are yellow, resync the associate digitizer.

Get Ready to take data.

Before setting up the system in "GO", un-tick, and tick the drain.
Check that the Lincos are properly setup:

checkNarvalNodes

And GO!

Launch a narval run:

Prepare the environment:

prototype@narval-base:/agatadisks/data2014/150414_post_exp/zCurrentNarvalDir$ narval_launch

Load the actors:

prototype@narval-base:/agatadisks/data2014/150414_post_exp/zCurrentNarvalDir$ narval_shell --end_point http://localhost:$AWS_PORT load 060214_feb2014_LOAD  gsi | xmlstarlet fo -    

And start:

prototype@narval-base:/agatadisks/data2014/150414_post_exp/zCurrentNarvalDir$ narval_shell --end_point http://localhost:$AWS_PORT load 060214_feb2014_START  gsi | xmlstarlet fo -   

From this point, you can remove the drain.
Check that all data you are expected are taken on disk:

prototype@narval-base:/agatadisks/data2014/150414_post_exp/zCurrentNarvalDir$ ll -h Data/*/*cdat* -h

At the moment, we should have 22 crystals taking data.

Remark:
If the GTS-tree is recable-change-reduced, one would need to change the validation configuration file:
ssh gammadaq@gts-252

The file to edit is:
gammadaq@ag05: vim cfg/validateall.cfg

Simply edit the field detectors with the gts list that you have:
            detectors = (9,37,16,24,06,26,35,17,12,10,30,14,23,7,8,11,15,22,13,29,36,28,39);

Reboot the GTS only

h3.Procedure

  • Reboot the VME FIFO crate
  • Reboot of all the GTS leaf
  • Connect to the node
     root@anodeXX
    
  • Check that the Lincos are here:
    lspci -H1 | grep ojo
    
  • discmount/mount the xdev (help if they had been used before)
    modprobe -r xdev
    

    modprobe xdev
    
  • Load the environement:
    . /opt/Xilinx/10.1/ISE/settings64.sh
    
  • Execute the scripte to Reload the GTS-bit file
    cd /agata/tools/mezzanine
    

    ./Reload_GTS_leaf_firmware.sh
    

For all GTS

Same procedure is used. Idealy, when all Lincos are here (CheckNarvalNodes script helps) one can use the cssh:

cssh root@anode22 root@anode02 root@anode18 root@anode24 root@anode09 root@anode12 root@anode11 root@anode04 root@anode06 root@anode19 root@anode07 root@anode20 root@anode13 root@anode16 root@anode03 root@anode01 root@anode14 root@anode15 root@anode17 root@anode08 root@anode10 root@anode05 root@anode23

There is a script in the home of the anode, after a checknarvalnode, it is working fine:

 ./reboot_gts.sh 

The script is only doing the set of command uo here.

Information in case of error

GTS-building procedure

  • During the first part of the ./setup.sh procedure, there are the TreeSetup procedure. It is checking that all GTS are properly connected, and can communicate together.
  • The message if it works fine should look like this:
    clientReset : sent to all GTSs
    gtsReset  : launched on cards 6 7 8 10 11 12 13 14 15 16 17 18 22 23 24 26 28 29 30 35 36 38 40 43 44 46 48 51 57 58 62 65 67
    do_tree : started
     29 62 65 67 24 26 22 23 46 44 28 43 40 7 6 8 12 58 11 10 13 38 15 14 17 16 18 57 30 51 36 35 48
    treeSetup 1 : launched on cards 29 62 65 67 24 26 22 23 46 44 28 43 40 7 6 8 12 58 11 10 13 38 15 14 17 16 18 57 30 51 36 35 48
    treeSetup 2 : launched on cards 29 62 65 67 24 26 22 23 46 44 28 43 40 7 6 8 12 58 11 10 13 38 15 14 17 16 18 57 30 51 36 35 48
    treeSetup 3 : launched on cards 29 62 65 67 24 26 22 23 46 44 28 43 40 7 6 8 12 58 11 10 13 38 15 14 17 16 18 57 30 51 36 35 48
    treeSetup 4 : launched on cards 29 62 65 67 24 26 22 23 46 44 28 43 40 7 6 8 12 58 11 10 13 38 15 14 17 16 18 57 30 51 36 35 48
    treeStart : launched on cards 29 62 65 67 24 26 22 23 46 44 28 43 40 7 6 8 12 58 11 10 13 38 15 14 17 16 18 57 30 51 36 35 48
    treeStop : launched on cards 29 62 65 67 24 26 22 23 46 44 28 43 40 7 6 8 12 58 11 10 13 38 15 14 17 16 18 57 30 51 36 35 48
    
  • If it get stuck after:
    treeSetup 1
    
    • There is probably a GTS-Leaf with a bad boot procedure. It need to be rebooted. To see which one, look at the log windows.
    • It could also be due to a tranceiver failure.
  • If it get stuck after:
    treeSetup 2
    
    • This could be due to a disconnected optical fiber
    • Maybe a tranceiver failure, or optical fiber failure can be responsible of the probleme. But Damian is not so sure.
  • If it get stuck after:
    treeSetup 3
    
    • Could be an optical fiber plug inside a GTS-FIFO, without a LEAF at the end.

How to boot manually the wXwork (from Xavier Lafay's notes)

FAQ