Changes between Initial Version and Version 1 of BuildingAPC/14-04-1_64_Install


Ignore:
Timestamp:
Jul 15, 2016, 6:50:57 PM (8 years ago)
Author:
cv
Comment:

First pass

Legend:

Unmodified
Added
Removed
Modified
  • BuildingAPC/14-04-1_64_Install

    v1 v1  
     1= Install Barrett System under Ubuntu 14.04.1 LTS with Xenomai 2.6.4 =
     2
     3== Notice - Pre-release instructions ==
     4This software has not been fully tested. It is meant for use with external PC's only (not the WAM's internal PC/104). We recommend using a standard OS and Kernel that ship with Barrett's products.
     5
     6== Install kernel from Debian ==
     7{{{
     8sudo dpkg -i linux-image-3.14.17-xenomai-2.6.4.barrett_amd64.deb
     9sudo dpkg -i linux-headers-3.14.17-xenomai-2.6.4.barrett_amd64.deb
     10}}}
     11
     12Install Xenomai
     13{{{
     14cd /usr/src
     15sudo wget http://download.gna.org/xenomai/stable/xenomai-2.6.4.tar.bz2
     16sudo tar -xjf xenomai-2.6.4.tar.bz2
     17sudo rm xenomai-2.6.4.tar.bz2
     18}}}
     19
     20Some updating for GRUB
     21{{{
     22sudo update-initramfs -c -k "3.14.17-xenomai-2.6.4"
     23}}}
     24
     25== Set up Xenomai ==
     26
     27{{{
     28sudo addgroup xenomai
     29sudo usermod -aG xenomai robot
     30}}}
     31
     32Use the following command to identify the xenomai group id number
     33{{{
     34XENGRPNUM=$(egrep -i "^xenomai" /etc/group | cut -d':' -f 3)
     35}}}
     36
     37Add kernel option with group id
     38{{{
     39sudo sed -i "s/quiet\ splash/quiet\ splash\ xeno_nucleus.xenomai_gid=$XENGRPNUM/" /etc/default/grub
     40}}}
     41
     42Update rc.local
     43{{{
     44sudo sed -i '/exit\ 0/ i\/usr/xenomai/sbin/rtcanconfig\ rtcan0\ -b\ 1000000\ -c\ none\ start' /etc/rc.local
     45sudo sed -i '/exit\ 0/ i\/usr/xenomai/sbin/rtcanconfig\ rtcan1\ -b\ 1000000\ -c\ none\ start' /etc/rc.local
     46}}}
     47
     48Update your grub2 to reflect recent changes
     49{{{
     50sudo update-grub
     51#Install Grub Customizer to graphically make our new kernel the default
     52sudo add-apt-repository ppa:danielrichter2007/grub-customizer
     53sudo apt-get update
     54sudo apt-get install grub-customizer
     55}}}
     56
     57Open the Grub 2 GUI
     58{{{
     59echo "Please move kernel 3.14.17-xenomai-2.6.4 to the top of the list and save the configuration."
     60read -n1 -r -p "Press any key to continue..." key
     61sudo grub-customizer
     62}}}
     63
     64== Build Xenomai userspace libs ==
     65
     66{{{
     67cd /usr/src/xenomai-2.6.4
     68sudo ./configure --enable-dlopen-skins
     69sudo make
     70sudo make install
     71sudo chgrp xenomai /dev/rtheap
     72sudo chgrp xenomai /dev/rtp*
     73}}}
     74
     75== Restart your PC to complete Xenomai Setup ==
     76
     77{{{
     78sudo shutdown -r now
     79}}}
     80
     81== Install Barrett Technology software ==
     82
     83{{{
     84sudo apt-get update
     85sudo apt-get install g++ cmake libncurses5-dev spell subversion ssh python-dev python-argparse libeigen2-dev libboost1.46 libgsl0-dev libxenomai-dev libboost-thread-dev libboost-python-dev python-visual libgtkglextmm-x11-1.2-dev git
     86
     87wget http://web.barrett.com/support/WAM_Installer/libconfig-barrett_1.4.5-1_amd64.deb
     88sudo dpkg -i libconfig-barrett_1.4.5-1_amd64.deb
     89
     90
     91#Get the latest version of libbarrett
     92git clone https://github.com/BarrettTechnology/libbarrett.git
     93cd libbarrett
     94cmake .
     95make
     96sudo make install
     97mv .bash_aliases ../
     98cd
     99. ~/.bashrc
     100
     101sudo bash
     102echo /usr/xenomai/lib/ | cat > /etc/ld.so.conf.d/xenomai.conf
     103ldconfig
     104exit
     105
     106#Install Xenomai 2.6.4 version of btclient and bash aliases
     107git clone -b proficio_p3-svn https://git.barrett.com/software/btclient.git ~/btclient
     108cd ~/btclient
     109sh makeall
     110mv .bash_aliases ../
     111cd
     112. ~/.bashrc
     113}}}