Arm linux toolchain

From Phobos Wiki
Revision as of 15:02, 17 August 2009 by Roland (talk | contribs)
Jump to navigation Jump to search

Where to get toolchain?

http://www.codesourcery.com/ -> PRODUCTS -> SOURCERY G++ -> EDITIONS -> LITE -> ARM
Or try this link http://www.codesourcery.com/sgpp/lite/arm/download.html

When compiling kernel or software for Voipac PXA270 the you use GNU/Linux version of toolchain

Installation on Ubuntu Linux

  • Extract the archive to a temporary location
  • Create folder arm in /usr/local
  • Create a subdir for the toolchain named 4.3.3_gnulinux
  • Copy all extracted files to /usr/local/arm/4.3.3_gnulinux

Check that everything looks alright

roland@spirit:~$ ls -l /usr/local/arm/4.3.3_gnulinux/
total 20
drwxr-xr-x 6 roland roland 4096 2009-08-11 17:33 arm-none-linux-gnueabi
drwxr-xr-x 2 roland roland 4096 2009-05-21 21:27 bin
drwxr-xr-x 3 roland roland 4096 2009-05-21 21:27 lib
drwxr-xr-x 4 roland roland 4096 2009-05-21 21:17 libexec
drwxr-xr-x 3 roland roland 4096 2009-05-21 19:12 share
  • Go to arm-none-linux-gnueabi folder
roland@spirit:~$ cd /usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi/
roland@spirit:/usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi$
  • And make a symlink to ../libexec
 roland@spirit:/usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi$ ln -s ../libexec libexec

Getting Boost C++ Libraries to work with ARM toolchain

  • If not installed already, install libboost-dev
sudo apt-get install libboost-dev
  • Create symlink
roland@spirit:~$ ln -s /usr/include/boost /usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi/include/boost