MSU Test rig

Setup information

Currently the setup consists of 1 computer that controls two single board computers in the crate. All computers are on SLC6 and are accessible via the user cmxuser. The software resides on my CERN afs home directory (custom l1calo software packages and settings) and on the CERN TDAQ afs space (general TDAQ software packages). All these directories are world wide readable, so that the cmxuser does not need an CERN afs token.

These are the computers that are involved:

  • msul1c.aglt2.org main computer from which a partition should be run
  • sbccmx-00.aglt2.org single board computer in the TTC crate
  • sbccmx-01.aglt2.org single board computer in the crate with JEM/CMM/CMX

To gain access, place your ssh public key on msul1c.aglt2.org (ask Phillippe). From there you should be able to log to sbccmx-00.aglt2.org and sbccmx-01.aglt2.org with the ssh key of cmxuser.

Setup after reboot/startup of the single board computers

This concerns only the setup of the sbccmx-xx computers. After reboot a set of commands need to be executed, so that afs is started, the vme drivers are installed etc. The sbccmx-startup-script.sh needs to be executed. The script is documented here:

mke2fs -m 0 /dev/ram0
mount /usr/vice/cache
ntpdate 0.rhel.pool.ntp.org
date
/etc/init.d/afs restart
ls /afs
/bin/atlas_tdaq_drivers load

Getting the L1CALO/TDAQ Software running

Source the l1calo.sh script in the home directory of the use cmxuser to setup the L1CALO software. For reference here are the commands in the script:

myOsVersion="slc6"
myGccVersion="gcc47"
myTdaqVersion="tdaq-05-00-01"
myTdaqInst="cmt"
myArchitecture="x86_64"
export L1CALO_ROOT=/afs/cern.ch/user/d/dta/LVL1/l1calo/installed
cd /afs/cern.ch/user/d/dta/
source l1calo/scripts/login/.lxplus_bashrc
export TDAQ_IPC_INIT_REF=file:/tmp/common/TDAQ/ipc_root.ref

The setup on the sbccmx-xx computers is similar, but you need to use l1calo_i686.sh . Which sets up the software for 32bit:

[...]
myArchitecture="i686"
[...]

Please note that the binaries are being loaded via afs from CERN, so it is somewhat slow.

startting a partition

setup_daq -p $TDAQ_PARTITION

command-line VME command

To access VME registers directly use the vme command. Here are some examples:

cmxuser@sbccmx-01</afs/cern.ch/user/d/dta>vme dump 0x0910000 0x0910002
Installing SIGBUS handler.
Dumping from $910000 to $910002
  TundraFactory Creating single map tundra mapper
SingleMapper uses 18 bits, ff000000 as mask, and ffffff as offset mask
00910000:  02ab

cmxuser@sbccmx-01</afs/cern.ch/user/d/dta>echo abcd | vme edit 0x0910004
Installing SIGBUS handler.
Editing from $910004 to $ffffff
  TundraFactory Creating single map tundra mapper
SingleMapper uses 18 bits, ff000000 as mask, and ffffff as offset mask
00910004: 0bcd> 00910006: 061c>
cmxuser@sbccmx-01</afs/cern.ch/user/d/dta>vme dump 0x0910004 0x0910006
Installing SIGBUS handler.
Dumping from $910004 to $910006
  TundraFactory Creating single map tundra mapper
SingleMapper uses 18 bits, ff000000 as mask, and ffffff as offset mask
00910004:  0bcd

Please not that the a word is not being written, since the corresponding register is read-only.

-- DucBaoTa - 14 Feb 2014

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2014-02-14 - DucBaoTa
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

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