Arm linux toolchain: Difference between revisions

From Phobos Wiki
Jump to navigation Jump to search
(Guide to install arm-linux toolchain)
 
mNo edit summary
Line 1: Line 1:
= Where to get toolchain? =
== Where to get toolchain? ==
[http://www.codesourcery.com/ http://www.codesourcery.com/] -> PRODUCTS -> SOURCERY G++ -> EDITIONS -> LITE -> ARM<br />
[http://www.codesourcery.com/ http://www.codesourcery.com/] -> PRODUCTS -> SOURCERY G++ -> EDITIONS -> LITE -> ARM<br />
Or try this link [http://www.codesourcery.com/sgpp/lite/arm/download.html http://www.codesourcery.com/sgpp/lite/arm/download.html]
Or try this link [http://www.codesourcery.com/sgpp/lite/arm/download.html http://www.codesourcery.com/sgpp/lite/arm/download.html]
Line 5: Line 5:
When compiling kernel or software for Voipac PXA270 the you use GNU/Linux version of toolchain
When compiling kernel or software for Voipac PXA270 the you use GNU/Linux version of toolchain


= Installation on Ubuntu Linux =
=== Installation on Ubuntu Linux ===
* Extract the archive to a temporary location
* Extract the archive to a temporary location
* Create folder arm in /usr/local
* Create folder arm in /usr/local
Line 26: Line 26:
   roland@spirit:/usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi$ ln -s ../libexec libexec
   roland@spirit:/usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi$ ln -s ../libexec libexec


== Getting [http://www.boost.org/ Boost C++ Libraries] to work with ARM toolchain ==
=== Getting [http://www.boost.org/ Boost C++ Libraries] to work with ARM toolchain ===
* If not installed already, install libboost-dev
* If not installed already, install libboost-dev
  sudo apt-get install libboost-dev
  sudo apt-get install libboost-dev
* Create symlink
* Create symlink
  roland@spirit:~$ ln -s /usr/include/boost /usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi/include/boost
  roland@spirit:~$ ln -s /usr/include/boost /usr/local/arm/4.3.3_gnulinux/arm-none-linux-gnueabi/include/boost

Revision as of 15:02, 17 August 2009

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