Changes between Version 18 and Version 19 of WikiStart/Toolchain/XcompiledRTT


Ignore:
Timestamp:
08/27/12 12:09:58 (7 years ago)
Author:
thro02
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart/Toolchain/XcompiledRTT

    v18 v19  
    147147=== Omniorb startup failure on Gumstix === 
    148148Delete /var/lib/omniorb/* and reboot. 
     149 
     150 
     151= Alternative (using Ubuntu 12.04) = 
     152 
     153Using Ubuntu 12.04 allows you to easily create a qemu based chroot to perform your cross-compilation. The following gives a premature outline of the steps needed to setup your environment.  
     154 
     155== Sources == 
     156== Using Ubuntu 12.04 == 
     157 
     158 * BuildEABIChroot  
     159   * https://wiki.ubuntu.com/ARM/BuildEABIChroot 
     160   * http://wiki.debian.org/ArmEabiHowto 
     161 
     162== Steps ==  
     163 
     164*** Note: the following list assume familarity with debian based systems and the typical rock-installation process ***  
     165 
     166=== Preparing the chroot === 
     167 * install qemu-user-static  
     168 {{{ 
     169    apt-get install qemu-user-static 
     170 }}} 
     171 
     172 * boostrap a selected debian/ubuntu release, i.e. create you chroot image 
     173   * in case you what to use an older release, you might have to refer to archives, i.e. set the links correspondingly. In the following we list two examples, one requiring archives (lenny) one not (squeeze) 
     174   * example: debian lenny:  
     175 {{{ 
     176    sudo qemu-debootstrap --arch armel --foreign lenny eabi-chroot-lenny http://archive.debian.org 
     177 }}} 
     178   * example: debian sequeeze 
     179 {{{ 
     180    sudo qemu-debootstrap --arch armel --foreign squeeze eabi-chroot-squeeze http://ftp.debian.org 
     181  }}} 
     182 
     183 * change into your chroot and update the apt-sources list 
     184 {{{ 
     185     sudo chroot eabi-chroot-squeeze 
     186     
     187 }}} 
     188 * update apt source list 
     189 {{{ 
     190     vi /etc/apt/sources.list 
     191 }}} 
     192 * add the repositories, you might also want to add 'contrib non-free updates' 
     193 {{{ 
     194   # deb http://archive.debian.org/debian lenny main 
     195   deb http://ftp.debian.org/debian squeeze main  
     196 }}} 
     197 * update your chroot 
     198 {{{ 
     199    apt-get update 
     200    apt-get upgrade 
     201 }}} 
     202 
     203=== Setting up autoproj ===  
     204You can follow the normal autoproj boostrap, if you perfrom the following steps before:  
     205 
     206 * install some packages manually, e.g. 
     207{{{ 
     208 sudo apt-get install ruby wget gem git-core pkg-config doxygen locales 
     209 dpkg-reconfigure locales 
     210}}} 
     211 
     212 * set the autoproj operating system enviroment variable, e.g. 
     213{{{ 
     214export AUTOPROJ_OS=lenny,debian:5.0.10 
     215export AUTOPROJ_OS=sequeez,debian:6.0.5 
     216}}} 
     217 
     218Also the installation of osdeps seems to be of an issue, i.e. does not work reliably. However, since installation has to be performed only once, this should not be a showstopper.  
     219Try using 'autoproj osdeps' or in worst case identify the required package and install it via 'apt-get install' yourself. 
     220 
     221 
     222=== Using the chroot === 
     223 
     224 * To avoid some error messages perform the following commands to link your host into the chroot system, before you change into your chroot:  
     225{{{ 
     226    mount -t proc none <chroot-folder>/proc 
     227    mount -o bind /dev <chroot-folder>/dev 
     228}}} 
     229 
     230 
     231 * currently adding the 'noexecstack' flag needs to be disabled in base/types/cmake/RubyExtension.cmake for armel 
     232 
     233 
     234