Fmc-adc test system setup
Ubuntu installation & setup
- Download and install ubuntu 14.04.
user: user
pw : baraka - Set date & time.
- Auto-hide the launcher (system settings>appearance>behavior).
- Disable 'Lock' and 'Require my password when waking from suspend' (system settings>brightness&lock).
Connect to Internet
For CERN network:
- Connect to a portable socket.
- Open a web browser and declare the MAC address on the cern network.
Install missing packages
sudo apt-get install emacs git gitk python-scipy python-matplotlib libusb-dev python2-pyro4
Optional:
sudo apt-get install openssh-server
sudo /etc/init.d/ssh restart
Improve barcode reader speed (model: CR1421)
- Download: http://www.codecorp.com/assets/download/D006284-CR1000-CR1400-CR8000--Configuration-Guide.pdf
- Print page 13.
- Scan "Enable Alternative OS (Windows CE/MAC/Unix/Linux)" QrCode.
Install & configure PTS + dependencies
Clone fmc-adc testing repository:
cd ~
git clone git:https://www.ohwr.org/fmc-projects/fmc-adc-100m14b4cha/fmc-adc-100m14b4cha-tst.git fmc-adc-tst/
cd fmc-adc-tst
git submodule init
git submodule update
Build driver, tools and library:
cd ~/fmc-adc-tst/pts/gnurabbit/
make
cd kernel/
sudo make install
cd ~/fmc-adc-tst/pts/gnurabbit/python
make
Build libipmi tool:
cd ~/fmc-adc-tst/pts/common/fmceeprom/libipmi/
make
Get fmc-adc gateware:
mkdir ~/fmc-adc-tst/gatewares
cd ~/fmc-adc-tst/gatewares
wget https://www.ohwr.org/project/fmc-adc-100m14b4cha/uploads/cdd797be176db52a0d8e5d9decff84b9/spec-fmc-adc-v4.0.bin .
ln -s spec-fmc-adc-v4.0.bin spec_fmcadc100m14b4cha.bin
Clone USB relay box repository and build modified cp210x driver:
cd ~
git clone git:https://www.ohwr.org/usb-relay-box1.git usb-relay-box1/
cd usb-relay-box1/sw/cp210x-driver/
git checkout 3.13.0-24-generic
make
sudo make install
Clone fpga-config-space and build sdbfs tools:
cd ~
git clone git:https://www.ohwr.org/hdl-core-lib/fpga-config-space.git fpga-config-space/
cd ~/fpga-config-space/sdbfs/lib/
make
cd ~/fpga-config-space/sdbfs/userspace/
make
cd /usr/bin
sudo ln -s ~/fpga-config-space/sdbfs/userspace/gensdbfs gensdbfs
sudo ln -s ~/fpga-config-space/sdbfs/userspace/sdb-read sdb-read
sudo ln -s ~/fpga-config-space/sdbfs/userspace/sdb-extract sdb-extract
Make PTS run at startup
- Launch "Startup Applications" (from dash)
- Add
Name : fmc-adc-pts
Command: gnome-terminal --maximize -e "/home/user/fmc-adc-tst/run_pts.sh"
Comment: Launch fmc-adc production tests