Figure 2.1.14
Close the window and
Click OK
to exit the Linux Devices Window.
2.2. Target Setup
Host Setup -
First open the terminal (ALT+CTRL+T).
2.2.1. Toolchain Installation:
This section explains how to Install prebuilt toolchain binaries on the Host. Where as, building
of Toolchain is explained in build system section.
2.2.2. Downloading the Toolchain:
Download the toolchain from the public ftp of PHYTEC from the link below.
ftp://ftp.phytec.de/pub/Products/India/phyBOARD-WEGA-
AM335x/Linux/PD14.0.0/tools/toolchain/arm-cortexa8-linux-gnueabihf.tar.bz2
2.2.3. Export the Toolchain to Shell Path:
Extract the toolchain that has downloaded, from terminal issue the following commands:
$ mkdir ~/work
$ cp arm-cortex8-linux-gnueabihf.tar.bz2 ~/work
$ cd ~/work
$ tar –xvf arm-cortex8-linux-gnueabihf.tar.bz2
Now write a script that export the target Architecture and toolchain prefix as below.
$ vim env.sh
#!/bin/sh
export PATH=$PATH:/home/<user>/<path to toolchain bin>
export ARCH=arm
export CROSS_COMPILE=arm-cortexa8-linux-gnueabihf-
Save and exit from the editor. Execute the script by issuing
$ . env.sh
© PHYTEC Embedded Pvt. Ltd 2014
16
Revision no. 1.0