Getting started with new AMC13 software:
1. Install SLC6 OS and Cactus tools on your computer.
-
SLC6 install
-
Cactus install
2. Check out AMC13 software package and build:
Clone from
git
:
- SSH option:
$ git clone ssh://git@gitlab.cern.ch:7999/cms-cactus/svn2git/software/boards/amc13.git
In case of permission denial, follow the
instruction
to add a ssh key.
- HTML option:
$ git clone https://gitlab.cern.ch/cms-cactus/svn2git/software/boards/amc13.git
- Kerberos option:
$ git clone https://:@gitlab.cern.ch:8443/cms-cactus/svn2git/software/boards/amc13.git
- No longer used:
$ svn co svn+ssh://svnuser@svn.cern.ch/reps/cactus/trunk/cactusupgrades/boards/amc13/software/amc13
(substitute your CERN user name for svnuser)
To build the code after downloading run:
$ cd amc13
$ source env.sh # or possibly .csh
$ make # possibly needed twice first time
$ export AMC13_ADDRESS_TABLE_PATH=~/amc13/amc13/etc/amc13
3a. Create a connection file for your board. You need to know the IP addresses
(two, for T1 and T2). By default they are:
T1: 192.168.1.x where x = 255-2*SN
T2: 192.168.1.y where y = 254-2*SN
SN is the serial number from the front of the module.
There are other ways to set the IP addresses; let me know if you can't
use the default ones.
There are a sample connection files:
amc13/etc/amc13/connectionSN43.xml (not using control hub)
amc13/etc/amc13/connectionSN43_ch.xml (using control hub)
Please copy the appropriate one and edit it to match your AMC13.
3b. (Alternatively) you can run the tool to specify the IP address of your AMC13 on the command line:
AMC13Tool2.exe -c 192.168.1.50 -p ~/work/amc13/amc13/etc/amc13
See
Documentation for details.
4. Run the
AMC13Tool2 as follows:
$ tools/bin/AMC13Tool2.exe -c amc13/etc/amc13/connectionSN43.xml
Using AMC13 software ver:30304
>list
Connected AMC13s
*0: SN: 43 T1v: 0209 T2v: 0021 cf: amc13/etc/amc13/connectionSN43.xml
>
Assuming you get to this point and you get a display of firmware versions and serial
number which make sense, you are in good shape!
--
EricHazen - 04 Sep 2014</verbatim>