Epics@GSI Webhome
direct copy from HADES wiki

Running Etrax Thresholds Control

Steps to compile code

  1. login to any hades machine as scs :
    • ssh lxg0434 -l scs
  2. change to etrax directory
    • cd /u/scs/epics_apps/EtraxTest
  3. run setup
    • . ./setup.sh
  4. make
    • make clean && make
  5. If successful, remove binary and copy code on target system's file server (you have to enter twice (correctly) the password of hadaq, copy the whole code block below)
    • ssh hadaq@lxhadesdaq '   
         if [ -d /var/diskless/etrax_fs/epics/epics_apps/EtraxTest/bin ];
         then
            rm -r /var/diskless/etrax_fs/epics/epics_apps/EtraxTest/bin;
         fi' &&
      echo removed binary &&
      scp -r /u/scs/epics_apps/EtraxTest hadaq@lxhadesdaq.gsi.de:/var/diskless/etrax_fs/epics/epics_apps/
  6. logout
    • exit

... or all together:
      ssh lxg0434 -l scs
      cd /u/scs/epics_apps/EtraxTest
      . ./setup.sh
      make clean && make
      ssh hadaq@lxhadesdaq '   
         if [ -d /var/diskless/etrax_fs/epics/epics_apps/EtraxTest/bin ];
         then
            rm -r /var/diskless/etrax_fs/epics/epics_apps/EtraxTest/bin;
         fi' &&
      echo removed binary &&
      scp -r /u/scs/epics_apps/EtraxTest hadaq@lxhadesdaq.gsi.de:/var/diskless/etrax_fs/epics/epics_apps/

That's all!

Steps to start up

  1. login to your target machine (e.g. etrax023),(user: root)
    • telnet etrax023
  2. Change to iocboot directory of epics
    • cd /home/hadaq/epics/epics_apps/EtraxTest/iocBoot/iocetrax
  3. Provided your correct st-RpcThreshold-S3TRBxxx--SubEventIdyyy.cmd startup file is prepared, so first check in the current directory for st-RpcThreshold-S3TRBxxx--SubEventIdyyy.cmd
    (xxx: TRB number, yyy: SubEventId number),
    • ls
  4. Start the IOC
    • ../../bin/linux-cris_v32/EtraxTest st-RpcThreshold-S3TRB0--SubEventId809_master.cmd
  5. Keep it running.
    • DO NOT CLOSE THE WINDOW! (Other solution will come)

Steps to restart

  1. Use one of those commands to stop the epics IOC application
    • exit , CTRL+Z
  2. Killall instances of EtraxTest (assuming you are the only user running EtraxTest)
    • killall -9 EtraxTest
  3. Restart:
    • ../../bin/linux-cris_v32/EtraxTest st-RpcThreshold-S3TRB0--SubEventId809.cmd

Caveats

  1. When copying with scp you have to look at the protocol. Sometimes the binaries stay write-only.
    Therefore you should have been using ssh hadaq@lxhadesdaq 'rm -r /var/diskless/etrax_fs/epics/epics_apps/EtraxTest/bin%ENDGCC% retry it.
  2. How do I know, that a new database file has been created when having performed the _steps to compile?
    • on linux:
      • have a look at the directory /u/scs/epics_apps/EtraxTest/db to the newest files of pattern ...SxTRBy...SubEvtIdz (x:sector, y:trb, z:id)
    • on etrax:
      • have a look at the directory /home/hadaq/epics/epics_apps/EtraxTest/db
  3. In case you are using a new Combination of SECTORxTRBy and SubEventId abc then you have to create a new cmd file on the ETRAX using the script createCmdFile.sh on the TRB/ETRAX (if you cannot find it there, copy those local files to the corresponding directories)
    • files
    • steps to do:
      1. login to your target machine(s) (e.g. etrax023),(user: root)
        • telnet etrax023
      2. Change to iocboot directory of epics
        • cd /home/hadaq/epics/epics_apps/EtraxTest/iocBoot/iocetrax
      3. execute createCmdFile.sh
        • usage:
          createCmdFile.sh
          will give you the help how to use it

-- PeterZumbruch - 20 May 2008

-- PeterZumbruch - 20 May 2008
Topic attachments
I Attachment Action Size Date Who Comment
createCmdFile.shsh createCmdFile.sh manage 3.0 K 2008-05-14 - 11:49 PeterZumbruch Script to create from template cmd files
st-RpcThreshold-SsTRBt--SubEventIdXXX.cmd.templatetemplate st-RpcThreshold-SsTRBt--SubEventIdXXX.cmd.template manage 0.7 K 2008-05-14 - 11:48 PeterZumbruch template file
Edit | Attach | Print version |  PDF | History: r6 | r4 < r3 < r2 < r1 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r3 - 2008-05-20, PeterZumbruch
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)