| | 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]] |
| | 7 | All other options default. |
| | 8 | |
| | 9 | '''__Install your new kernel from debian__'''[[br]] |
| | 10 | Log in to your new system, open a terminal, and get new kernel |
| | 11 | {{{ |
| | 12 | cd /usr/src |
| | 13 | sudo wget http://web.barrett.com/support/WAM_Installer/linux-image-3.2.21-xenomai-2.6.1.barrett_i386.deb |
| | 14 | sudo 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 |
| | 17 | sudo dpkg -i linux-image-3.2.21-xenomai-2.6.1.barrett_i386.deb |
| | 18 | sudo dpkg -i linux-headers-3.2.21-xenomai-2.6.1.barrett_i386.deb |
| | 19 | |
| | 20 | #Cleanup |
| | 21 | sudo rm *.barrett_i386.deb |
| | 22 | |
| | 23 | #Install Xenomai |
| | 24 | sudo wget http://download.gna.org/xenomai/stable/xenomai-2.6.1.tar.bz2 |
| | 25 | sudo tar -xjf xenomai-2.6.1.tar.bz2 |
| | 26 | sudo rm xenomai-2.6.1.tar.bz2 |
| | 27 | |
| | 28 | |
| | 29 | #Some updating for GRUB |
| | 30 | sudo update-initramfs -c -k "3.2.21-xenomai-2.6.1" |
| | 31 | }}} |
| | 32 | |
| | 33 | '''__Set up Xenomai Group Permissions and GRUB 2__''' |
| | 34 | {{{ |
| | 35 | sudo addgroup xenomai |
| | 36 | sudo usermod -aG xenomai robot |
| | 37 | |
| | 38 | # now use the following command to identify the xenomai group id number |
| | 39 | egrep -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 |
| | 43 | sudo 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 |
| | 49 | sudo gedit /etc/default/grub |
| | 50 | |
| | 51 | # Find the line of text that looks similar to below. |
| | 52 | GRUB_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: |
| | 56 | GRUB_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 |
| | 60 | sudo update-grub |
| | 61 | #Install Grub Customizer to graphically make our new kernel the default |
| | 62 | sudo add-apt-repository ppa:danielrichter2007/grub-customizer |
| | 63 | sudo apt-get update |
| | 64 | sudo apt-get install grub-customizer |
| | 65 | |
| | 66 | #Open the Grub 2 GUI |
| | 67 | grub-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 | {{{ |
| | 76 | cd /usr/src/xenomai-2.6.1 |
| | 77 | sudo ./configure --enable-dlopen-skins |
| | 78 | sudo make |
| | 79 | sudo make install |
| | 80 | sudo chgrp xenomai /dev/rtheap |
| | 81 | sudo chgrp xenomai /dev/rtp* |
| | 82 | sudo ldconfig |
| | 83 | }}} |
| | 84 | |
| | 85 | '''__Restart and Boot Your New RT Kernel__''' |
| | 86 | {{{ |
| | 87 | sudo 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 | {{{ |
| | 97 | sudo apt-get update |
| | 98 | sudo apt-get install g++ cmake libncurses5-dev spell subversion ssh python-dev python-argparse |
| | 99 | |
| | 100 | sudo apt-get install libeigen2-dev libboost1.46-all-dev libgsl0-dev |
| | 101 | |
| | 102 | wget http://web.barrett.com/svn/libbarrett/dependencies/libconfig-1.4.5-PATCHED.tar.gz |
| | 103 | tar xzf libconfig-1.4.5-PATCHED.tar.gz |
| | 104 | cd libconfig-1.4.5 |
| | 105 | ./configure && make && sudo make install |
| | 106 | cd .. |
| | 107 | rm -rf libconfig-1.4.5 libconfig-1.4.5-PATCHED.tar.gz |
| | 108 | |
| | 109 | #Get the latest version of libbarrett |
| | 110 | svn co http://web.barrett.com/svn/libbarrett/tags/libbarrett-1.1.0 |
| | 111 | |
| | 112 | sudo mkdir /etc/barrett |
| | 113 | sudo chown -R robot:robot /etc/barrett/ |
| | 114 | |
| | 115 | cd ~/libbarrett-1.1.0 |
| | 116 | cmake . && make -j4 && sudo make install |
| | 117 | |
| | 118 | sudo bash |
| | 119 | echo /usr/xenomai/lib/ | cat > /etc/ld.so.conf.d/xenomai.conf |
| | 120 | ldconfig |
| | 121 | exit |
| | 122 | }}} |
| | 123 | |
| | 124 | That's it!! Enjoy your new 12.04 32-Bit PC!! |