Changes between Initial Version and Version 1 of BuildingAPC/PCInstall


Ignore:
Timestamp:
Jul 11, 2011, 6:56:25 PM (13 years ago)
Author:
cv
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingAPC/PCInstall

    v1 v1  
     1= Install Barrett System to a PC =
     2
     3Install Ubuntu 9.10 from official image: http://releases.ubuntu.com/9.10/ubuntu-9.10-desktop-i386.iso
     4
     5User name: “robot” Password: “WAM”
     6
     7All other options default.
     8
     9Log in to your new system, open a terminal, and get new kernel
     10{{{
     11cd /
     12sudo wget http://web.barrett.com/support/WAM_Installer/ubuntu910xen2552.tar.bz2
     13sudo tar xvjf ubuntu910xen2552.tar.bz2
     14sudo rm ubuntu910xen2552.tar.bz2
     15}}}
     16
     17Make xenomai group
     18{{{
     19sudo addgroup xenomai
     20sudo usermod -aG xenomai robot
     21}}}
     22
     23Downgrade from GRUB2 to GRUB
     24{{{
     25sudo cp /etc/default/grub /etc/default/grub.old
     26sudo cp -R /etc/grub.d /etc/grub.d.old
     27sudo cp -R /boot/grub /boot/grub.old
     28sudo aptitude purge grub2 grub-pc
     29
     30# System is unbootable until the next 3 commands succeed!!!
     31sudo aptitude install grub
     32sudo update-grub
     33
     34# Select 'y' to generate new menu.lst
     35# Use your primary harddrive as the argument (probably "/dev/sda")
     36sudo grub-install /dev/sda
     37
     38# Open the Grub menu file for editing
     39 gksudo gedit /boot/grub/menu.lst
     40
     41# Find the block of text that says "2.6.31.4-ipipe" (not "recovery mode"). Do NOT copy directly from this web site- your hard drive's UUID will be unique.
     42# It looks similar to:
     43
     44        title           Ubuntu 9.10, kernel 2.6.31.4-ipipe
     45        uuid            bbd03826-5ecd-4999-9a89-03846de55c0b
     46        kernel          /boot/vmlinuz-2.6.31.4-ipipe root=UUID=bbd03826-5ecd-4999-9a89-03846de55c0b ro quiet splash                             
     47        initrd          /boot/initrd.img-2.6.31.4-ipipe
     48               
     49# Paste a copy of that block just above the line that reads "### BEGIN AUTOMAGIC KERNELS LIST"
     50
     51# Modify title of the copy to something distinct.
     52# Also, add the kernel option "xeno_nucleus.xenomai_gid=1001".
     53# The modified block should look similar to:
     54
     55        title           BARRETT DEFAULT: Ubuntu 9.10, kernel 2.6.31.4-ipipe
     56        uuid            bbd03826-5ecd-4999-9a89-03846de55c0b
     57        kernel          /boot/vmlinuz-2.6.31.4-ipipe root=UUID=bbd03826-5ecd-4999-9a89-03846de55c0b ro quiet splash xeno_nucleus.xenomai_gid=1001
     58        initrd          /boot/initrd.img-2.6.31.4-ipipe
     59       
     60# Save and close the updated menu file
     61
     62# Reboot the system
     63sudo shutdown -r now
     64}}}
     65
     66Build Xenomai
     67{{{
     68cd /usr/src/xenomai
     69sudo ./configure
     70sudo make
     71sudo make install
     72sudo chgrp xenomai /dev/rtheap
     73sudo chgrp xenomai /dev/rtp*
     74bash /usr/xenomai/bin/xeno-test
     75
     76cd
     77wget http://web.barrett.com/support/WAM_Installer/rc.local.910
     78sudo mv rc.local.910 /etc/rc.local
     79sudo chown root:root /etc/rc.local
     80sudo chmod 755 /etc/rc.local
     81sudo /etc/rc.local
     82}}}
     83
     84Install required software
     85{{{
     86wget http://web.barrett.com/support/WAM_Installer/inputrc
     87mv inputrc ~/.inputrc
     88
     89sudo apt-get update
     90sudo apt-get install g++ cmake libncurses5-dev spell subversion ssh
     91
     92svn co http://web.barrett.com/svn/btclient/trunk ~/btclient
     93cd ~/btclient
     94wget http://web.barrett.com/support/WAM_Installer/config-xeno.mk
     95mv config-xeno.mk config.mk
     96sh makeall
     97
     98svn co http://web.barrett.com/svn/libbarrett/dependencies/ ~/dependencies
     99cd ~/dependencies
     100
     101tar xjf eigen-2.0.12.tar.bz2
     102cd eigen
     103cmake . && make && sudo make install
     104cd ..
     105
     106tar xzf libconfig-1.4.5-PATCHED.tar.gz
     107cd libconfig-1.4.5
     108./configure && make && sudo make install
     109cd ..
     110
     111tar xjf boost_1_46_1.tar.bz2
     112cd boost_1_46_1/
     113./bootstrap.sh
     114sudo ./bjam --with-python --with-thread install
     115cd ..
     116
     117tar xzf gsl-1.14.tar.gz
     118cd gsl-1.14
     119./configure && make && sudo make install
     120cd ..
     121
     122cd ..
     123sudo rm -Rf dependencies
     124
     125sudo bash
     126echo /usr/xenomai/lib/ | cat > /etc/ld.so.conf.d/xenomai.conf
     127ldconfig
     128exit
     129
     130svn co http://web.barrett.com/svn/libbarrett/trunk/ ~/libbarrett
     131
     132sudo mkdir /etc/barrett
     133sudo cp ~/libbarrett/config/* /etc/barrett/
     134sudo chown -R robot:robot /etc/barrett/
     135
     136cd ~/libbarrett/build
     137cmake ..
     138make
     139}}}