This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
itk:installing_software_for_use_with_rce_and_hsio-2 [2016/06/01 21:35] mazhang |
itk:installing_software_for_use_with_rce_and_hsio-2 [2016/08/24 23:12] mazhang [Setting Up RCE Pixel Application] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Installing Software for Use with RCE and HSIO-2 ====== | ====== Installing Software for Use with RCE and HSIO-2 ====== | ||
+ | ====== Installing Python ====== | ||
- | Follow the setup instructions [[here|https://twiki.cern.ch/twiki/bin/view/Atlas/ | + | Following |
- | Note the line "AYUM software installation location: / | + | yum install |
+ | yum install -y python27 | ||
+ | which python | ||
- | The TDAQ framework does not need to be installed if you're installing RCF. The install command | + | Following probably unimportant |
- | < | + | |
- | sometimes runs into timeout issues while downloading files, but you can run it again after it finishes, and it'll just look for the missing pieces. | + | |
- | The make commands | + | yum groups mark convert |
- | < | + | yum groups mark install " |
- | cd ~/ | + | |
- | sometimes spit out errors such as " | + | yum install zlib-devel |
+ | yum install bzip2-devel | ||
+ | yum install openssl-devel | ||
+ | yum install ncurses-devel | ||
+ | yum install sqlite-devel | ||
+ | |||
+ | cd /opt | ||
+ | wget --no-check-certificate https:// | ||
+ | tar xf Python-2.7.5.tar.xz | ||
+ | cd Python-2.7.5 | ||
+ | ./ | ||
+ | make && make altinstall | ||
+ | |||
+ | End unimportant | ||
+ | |||
+ | wget --no-check-certificate https:// | ||
+ | sudo / | ||
+ | sudo / | ||
+ | |||
+ | yum install libffi-devel | ||
+ | |||
+ | sudo / | ||
+ | sudo / | ||
+ | sudo / | ||
+ | |||
+ | |||
+ | ====== Server Setup ====== | ||
+ | |||
+ | We will be mostly following the steps on this page - https:// | ||
+ | |||
+ | Become root by using the ' | ||
+ | |||
+ | First, we configure a server on our local computer to communicate with RCE. This server will have NFS and DCHP. Get required packages. | ||
+ | |||
+ | yum install dhcp cmake pyparted lib | ||
+ | |||
+ | Disable firewall and SELinux (Linux security). | ||
+ | |||
+ | / | ||
+ | / | ||
+ | vim / | ||
+ | |||
+ | Set " | ||
+ | |||
+ | sudo mkdir / | ||
+ | cd / | ||
+ | wget -O - http:// | ||
+ | |||
+ | Add the following command to your bash_profile file so that it runs every time you open the terminal. | ||
+ | |||
+ | source / | ||
+ | |||
+ | Set up the DHCP server by editing / | ||
+ | |||
+ | default-lease-time 600; | ||
+ | max-lease-time 7200; | ||
+ | authoritative; | ||
+ | ddns-update-style none; | ||
+ | |||
+ | subnet 192.168.3.0 netmask 255.255.255.0 { | ||
+ | option subnet-mask 255.255.255.0; | ||
+ | option ntp-servers 192.168.3.1; | ||
+ | option routers 192.168.3.1; | ||
+ | option broadcast-address 192.168.3.255; | ||
+ | range 192.168.3.2 192.168.3.254; | ||
+ | } | ||
+ | |||
+ | host hsio2 { | ||
+ | option host-name " | ||
+ | hardware ethernet 08: | ||
+ | } | ||
+ | |||
+ | Start the DHCP server. | ||
+ | |||
+ | / | ||
+ | / | ||
+ | |||
+ | # | ||
+ | |||
+ | ====== Setting Up RCE Pixel Application ====== | ||
+ | |||
+ | Following the setup instructions [[https:// | ||
+ | |||
+ | The pixel application has two parts - calibserver, | ||
+ | |||
+ | You don't need to edit /etc/hosts if your / | ||
+ | < | ||
+ | If you get an error "No route to host", this means you're using the wrong IP address. | ||
+ | |||
+ | Execute all the commands in this section as superuser: | ||
+ | |||
+ | yum install cmake libXpm libX11 libXext libSM libICE python-devel rpm-devel | ||
+ | mkdir -p /sw/atlas | ||
+ | chmod a+w /sw/atlas | ||
+ | cd /sw/atlas | ||
+ | git clone https://: | ||
+ | cd / | ||
+ | ./ | ||
+ | |||
+ | Enter the following information: | ||
+ | |||
+ | AYUM package location: / | ||
+ | AYUM software installation location: /sw/atlas | ||
+ | AYUM RPM database location: [/ | ||
+ | AYUM cache location: [/ | ||
+ | |||
+ | Keep executing commands: | ||
+ | |||
+ | cd / | ||
+ | make clean | ||
+ | make | ||
+ | cd ~/ayum | ||
+ | ./ayum install | ||
+ | cd ~ | ||
+ | git clone https://: | ||
+ | ln -s ~/pixelrce ~/daq | ||
+ | cd ~/daq/rce | ||
+ | source ./ | ||
+ | git checkout -b V1.1.0 | ||
+ | cd ~/ | ||
+ | cd ~/ | ||
+ | cd ~/daq/rce/ | ||
+ | rsync -e 'ssh -l root' -rlptDv / | ||
+ | rsync -rlptDv -e 'ssh -l root' build.arm-rcf/ | ||
+ | |||
+ | You can ssh into the HSIO-2 to run calibserver. This is not necessary unless you want to see real-time outputs from the server. | ||
+ | |||
+ | ssh [email protected] | ||
+ | export PATH=/ | ||
+ | calibserver | ||
+ | |||
+ | In another window, | ||
+ | |||
+ | cd ~/daq/rce | ||
+ | source scripts/ | ||
+ | calibGui | ||
+ | |||
+ | Use Inlink X+1, Outlink X+1, where the module is plugged into port AX. Use Rce 0. |