Loading...
 

Build From Source - Toolchain

The ESPRESSObin board uses Linaro toolchain for building binary kernel and file system images, so make sure to set it up first before moving on to building other components.

Begin by making a directory (in e.g. /home/user/toolchain) where you will download Linaro toolchain:

espressobin@buildserver:~$ mkdir -p toolchain


Linaro toolchain can be downloaded from:

https://releases.linaro.org/components/toolchain/binaries/5.2-2015.11-2/aarch64-linux-gnu/gcc-linaro-5.2-2015.11-2-x86_64_aarch64-linux-gnu.tar.xz

after which it must be placed in the newly made toolchain directory. It can also be obtained via command line:

espressobin@buildserver:~$ cd toolchain/
espressobin@buildserver:~$ wget https://releases.linaro.org/components/toolchain/binaries/5.2-2015.11-2/aarch64-linux-gnu/gcc-linaro-5.2-2015.11-2-x86_64_aarch64-linux-gnu.tar.xz


Once the toolchain is downloaded to your Linux machine, extract the archive with:

espressobin@buildserver:~/toolchain$ tar -xvf gcc-linaro-5.2-2015.11-2-x86_64_aarch64-linux-gnu.tar.xz


and, depending where you downloaded the archive, set the correct path for the toolchain (compiler path including bin directory):

espressobin@buildserver:~/toolchain$ export PATH=$PATH:/home/espressobin/toolchain/gcc-linaro-5.2-2015.11-2-x86_64_aarch64-linux-gnu/bin