Download the Toolchain for Rugged Board A5d2x

Objective:

This guide describes a method of downloading the toolchain for rugged board a5d2x and cross compile the sample application.

Materials:

Hardware:

Software:

  • Ubuntu 16.04

Procedure:

Toolchain Downloading:

Step1: Make directory to download the toolchain.

$ mkdir toolchain

Step2: Download the toolchain zip file from below link and copy the downloaded file to toolchain folder.

toolchain zip file download link

Step3: unzip the downloaded file.

$ unzip RB-Toolchain.20.0.0.zip
$ cd RB-Toolchain.20.0.0/

Step4: Give the permissions to the toolchain script file as below and install it.

$ chmod 777 poky-tiny-musl-x86_64-core-image-minimal-cortexa5hf-neon-toolchain-2.5.2.sh
$ sh poky-tiny-musl-x86_64-core-image-minimal-cortexa5hf-neon-toolchain-2.5.2.sh
Poky (Yocto Project Reference Distro) SDK installer version 2.5.2
=================================================================
Enter target directory for SDK (default: /opt/poky-tiny/2.5.2):
You are about to install the SDK to "/opt/poky-tiny/2.5.2". Proceed[Y/n]? y
Extracting SDK.......................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
. /opt/poky-tiny/2.5.2/environment-setup-cortexa5hf-neon-poky-linux-musleabi

Step5: To cross compile any sample application(hello_world.c) or compile any source, please run the below command to get the arm environment.

$ . /opt/poky-tiny/2.5.2/environment-setup-cortexa5hf-neon-poky-linux-musleabi

Step6: Cross compiling the c application as below

$ $CC hello_world.c -o hello_world
$ file hello_world
hello_world: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-armhf.so.1, BuildID[sha1]=30b0fe2eaee04506f9728d874827bdbd35eb4ecd, not stripped 

Last updated