Toolchain
Prerequisites
The toolchain concerned by this document has been created using Yocto project 2.1.2 and has been tested on Ubuntu 16.04 LTS (the host).
The following packages must be installed on the host prior to begin:
Download
The toolchain can be downloaded on the Yocto directoy of the LORIX One:
poky-wifx-glibc-x86_64-wifx-base-sdk-cortexa5hf-neon-toolchain-2.1.2.tar.bz2 (archive containing a script file 534MB)
Or by using a terminal:
The manifest files containing the packages included into the toolchain:
poky-wifx-glibc-x86_64-wifx-base-sdk-cortexa5hf-neon-toolchain-2.1.2.host.manifest
poky-wifx-glibc-x86_64-wifx-base-sdk-cortexa5hf-neon-toolchain-2.1.2.target.manifest
Install
Prior to install the toolchain, you need to extract the installation script file from the archive:
You can now install the toolchain using the script:
Use example
A simple example can be done with the "Hello world" application. Begin by creating a main.c file and put the following code inside:
Source the toolchain parameters and compile the C file:
The CC value contains the compiler command and some usefull parameters to compile the source code specially for the LORIX One:
That's all. The created file is an ARM binary compiled for the LORIX One:
You can use the generated application by writing it on a SD card or using an NFS server (the LORIX One includes a NFS client which can by connected to a server, the host for example).