Changes between Initial Version and Version 1 of BuildingAPC/Precise32Install


Ignore:
Timestamp:
Jul 30, 2012, 2:05:10 PM (12 years ago)
Author:
dc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingAPC/Precise32Install

    v1 v1  
     1= Install Barrett System with Ubuntu 12.04 LTS Precise Pangolin and Xenomai 2.6.1 - __32-Bit External PC__ =
     2
     3'''Download and Install 32-bit Ubuntu 12.04 LTS Precise Pangolin from official image:'''[[BR]]
     4[http://releases.ubuntu.com/precise/ubuntu-12.04-desktop-i386.iso][[BR]]
     5'''With Username: ''' robot[[br]]
     6'''Password: ''' WAM[[br]]
     7All other options default.
     8
     9'''__Install your new kernel from debian__'''[[br]]
     10Log in to your new system, open a terminal, and get new kernel
     11{{{
     12cd /usr/src
     13sudo wget http://web.barrett.com/support/WAM_Installer/linux-image-3.2.21-xenomai-2.6.1.barrett_i386.deb
     14sudo wget http://web.barrett.com/support/WAM_Installer/linux-headers-3.2.21-xenomai-2.6.1.barrett_i386.deb
     15
     16#Install from Debian
     17sudo dpkg -i linux-image-3.2.21-xenomai-2.6.1.barrett_i386.deb
     18sudo dpkg -i linux-headers-3.2.21-xenomai-2.6.1.barrett_i386.deb
     19
     20#Cleanup
     21sudo rm *.barrett_i386.deb
     22
     23#Install Xenomai
     24sudo wget http://download.gna.org/xenomai/stable/xenomai-2.6.1.tar.bz2
     25sudo tar -xjf xenomai-2.6.1.tar.bz2
     26sudo rm xenomai-2.6.1.tar.bz2
     27
     28
     29#Some updating for GRUB
     30sudo update-initramfs -c -k "3.2.21-xenomai-2.6.1"
     31}}}
     32
     33'''__Set up Xenomai Group Permissions and GRUB 2__'''
     34{{{
     35sudo addgroup xenomai
     36sudo usermod -aG xenomai robot
     37
     38# now use the following command to identify the xenomai group id number
     39egrep -i "^xenomai" /etc/group
     40#find the group number that corresponds to the xenomai group. Usually: 1001 - will be referred to as <gid>
     41
     42#Update rc.local
     43sudo gedit /etc/rc.local
     44#Copy the following as the last command before exit 0
     45/usr/xenomai/sbin/rtcanconfig rtcan0 -b 1000000 -c none start
     46#Save and close the updated file
     47
     48# Open the Grub2 file for editing
     49sudo gedit /etc/default/grub
     50
     51# Find the line of text that looks similar to below.
     52GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
     53
     54# Add the kernel option "xeno_nucleus.xenomai_gid=<gid>". Make sure the use the correct groud id number!
     55# The modified entry should look similar to:
     56GRUB_CMDLINE_LINUX_DEFAULT="quiet splash xeno_nucleus.xenomai_gid=1001"
     57   
     58# Save and close the updated menu file
     59# Update your grub2 to reflect recent changes
     60sudo update-grub
     61#Install Grub Customizer to graphically make our new kernel the default
     62sudo add-apt-repository ppa:danielrichter2007/grub-customizer
     63sudo apt-get update
     64sudo apt-get install grub-customizer
     65
     66#Open the Grub 2 GUI
     67grub-customizer
     68
     69#Click on entry Ubuntu, with Linux 3.2.21-xenomai-2.6.1
     70#Use the up arrow to move the entry as high as possible
     71#Save and Exit
     72}}}
     73
     74'''__Build the Xenomai userspace libs__'''
     75{{{
     76cd /usr/src/xenomai-2.6.1
     77sudo ./configure --enable-dlopen-skins
     78sudo make
     79sudo make install
     80sudo chgrp xenomai /dev/rtheap
     81sudo chgrp xenomai /dev/rtp*
     82sudo ldconfig
     83}}}
     84
     85'''__Restart and Boot Your New RT Kernel__'''
     86{{{
     87sudo shutdown -r now
     88}}}
     89
     90'''__Test Your RT Kernel__'''
     91{{{
     92/usr/xenomai/bin/xeno-test
     93}}}
     94
     95'''__Install Barrett Technology Software__'''
     96{{{
     97sudo apt-get update
     98sudo apt-get install g++ cmake libncurses5-dev spell subversion ssh python-dev python-argparse
     99
     100sudo apt-get install libeigen2-dev libboost1.46-all-dev libgsl0-dev
     101
     102wget http://web.barrett.com/svn/libbarrett/dependencies/libconfig-1.4.5-PATCHED.tar.gz
     103tar xzf libconfig-1.4.5-PATCHED.tar.gz
     104cd libconfig-1.4.5
     105./configure && make && sudo make install
     106cd ..
     107rm -rf libconfig-1.4.5 libconfig-1.4.5-PATCHED.tar.gz
     108
     109#Get the latest version of libbarrett
     110svn co http://web.barrett.com/svn/libbarrett/tags/libbarrett-1.1.0
     111
     112sudo mkdir /etc/barrett
     113sudo chown -R robot:robot /etc/barrett/
     114
     115cd ~/libbarrett-1.1.0
     116cmake . && make -j4 && sudo make install
     117
     118sudo bash
     119echo /usr/xenomai/lib/ | cat > /etc/ld.so.conf.d/xenomai.conf
     120ldconfig
     121exit
     122}}}
     123
     124That's it!! Enjoy your new 12.04 32-Bit PC!!