Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Testing
Commits
8a554e33
Commit
8a554e33
authored
May 06, 2014
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Review setup note for ubuntu 14.04
Almost only bash commands -> could easily become an install script.
parent
e18ad37a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
104 additions
and
65 deletions
+104
-65
ubuntu_setup_note.txt
test/fmcadc100m14b4cha/doc/ubuntu_setup_note.txt
+104
-65
No files found.
test/fmcadc100m14b4cha/doc/ubuntu_setup_note.txt
View file @
8a554e33
This note explains how to setup an Ubuntu PC for FmcAdc100M14b4cha production
This note explains how to setup an Ubuntu PC for FmcAdc100M14b4cha production
test suite.
test suite.
Ubuntu version must be 11.04
Ubuntu installation & setup
========================================
The following packages must be installed:
Download and install ubuntu 14.04.
git
user: user
python-scipy
pw : baraka
python-matplotlib
Set date & time.
Auto-hide the launcher (system settings>appearance>behavior).
Copy PTS git repository:
Disable 'Lock' and 'Require my password when waking from suspend' (system settings>brightness&lock).
cd ~
git clone git://ohwr.org/misc/pts.git
Connect to CERN network
Pyro4 must be installed:
========================================
cd ~/pts/test/fmcadc100m14b4cha/python/
Connect to a portable socket.
tar -xf Pyro4-4.10.tar.gz
Open a web browser and declare the MAC address on the cern network.
cd Pyro4-4.10
chmod +x setup.py
sudo python setup.py install
Install missing packages
========================================
Create the following file:
sudo apt-get install emacs
sudo touch /usr/lib/python2.7/dist-packages/larz/__init__.py
sudo apt-get install git
sudo apt-get install gitk
Compile gnurabbit stuff:
sudo apt-get install python-scipy
cd ~/pts/gnurabbit
sudo apt-get install python-matplotlib
make
sudo apt-get install libusb-dev
Install rawrabbit driver (so it loads at startup):
Optional:
cd ~/pts/gnurabbit/kernel
sudo apt-get install openssh-server
make install
sudo /etc/init.d/ssh restart
Create a script file to launch the test program:
cd ~
Improve barcode reader speed (model: CR1421)
touch run_pts.sh
========================================
chmod +x run_pts.sh
Download: http://www.codecorp.com/assets/download/D006284-CR1000-CR1400-CR8000--Configuration-Guide.pdf
Print page 13.
Edit the script file as follow:
Scan "Enable Alternative OS (Windows CE/MAC/Unix/Linux)" QrCode.
#!/bin/sh
echo " "
echo " "
Install & configure PTS + dependencies
echo "********************************************************************************"
========================================
echo "* FmcAdc100M14b4cha Test program *"
cd ~
echo "********************************************************************************"
git clone git://ohwr.org/misc/pts.git pts/
echo " "
cd pts
cd ~/pts && sudo ./fmcadc100m14b4cha.sh
git checkout fmcadc100m14b4cha_dev
Create an alias to be able to launch the test program by typing "test".
cd ~/pts/gnurabbit/
Add the fllowing to ~/.bashrc
make
alias test='~/run_pts.sh'
cd kernel
sudo make install
Define bash as the default shell:
chsh -s /bin/bash <username>
cd ~/pts/gnurabbit/python
make
In "System > Preferences > Startup Applications" add the following to
automatically open a terminal at startup:
mkdir ~/pts/test/fmcadc100m14b4cha/firmwares
Command: gnome-terminal
cd ~/pts/test/fmcadc100m14b4cha/firmwares
wget http://www.ohwr.org/attachments/download/2830/spec-fmc-adc-v4.0.bin .
Clone sdbfs git repo:
ln -s spec-fmc-adc-v4.0.bin spec_fmcadc100m14b4cha.bin
git clone git://gitorious.org/rubi/sdbfs.git ~/sdbfs
cd ~/pts/test/fmcadc100m14b4cha/python/
Compile sdbfs:
tar -xf Pyro4-4.10.tar.gz
cd ~/sdbfs
cd Pyro4-4.10
make
chmod +x setup.py
sudo python setup.py install
Create a symbolic link to gensdbfs:
cd /usr/bin
cd ~
sudo ln -s ~/sdbfs/userspace/gensdbfs gensdbfs
git clone git://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
cd ~
git clone git://ohwr.org/hdl-core-lib/fpga-config-space.git fpga-config-space/
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
cd ~/pts/test/fmceeprom/python/libipmi/
make
Make PTS run at startup
========================================
cd ~
touch run_pts.sh
chmod +x run_pts.sh
echo '#!/bin/sh' >> run_pts.sh
echo 'echo " "' >> run_pts.sh
echo 'echo " "' >> run_pts.sh
echo 'echo "********************************************************************************"' >> run_pts.sh
echo 'echo "* FmcAdc100M14b4cha Test program *"' >> run_pts.sh
echo 'echo "********************************************************************************"' >> run_pts.sh
echo 'echo " "' >> run_pts.sh
echo 'cd ~/pts && sudo ./fmcadc100m14b4cha.sh' >> run_pts.sh
Go to Dash
Enter "startup applications"
Launch Startup Applications
Add
Name : fmc-adc-pts
Command: gnome-terminal --maximize -e "/home/user/run_pts.sh"
Comment: Launch fmc-adc production tests
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment