Development Environment setup¶
This chapter will detail the process of setting up all tooling required for development on the parallella board for RTFP.
This setup is intended to be run on a linux machine, The steps shown here have been realized on an Ubuntu 18.04 system, it should also work with any other distributions -and versions- of linux.
Dependencies¶
RTFP requires the following dependencies to allow successful compilation and deployment of binaries generated using the framework:
- ESDK (Epiphany SDK) : v2016.11.
- Linaro cross GCC toolchain.
Environment setup¶
This framework usually requires cross compilation on a host machnine (development machine) and deployment to the Parallella board.
This section will explain the setup for cross compilation.
steps are as follows:
- Download The Epiphany SDK (ESDK) from Github. This framework has been written using the latest ESDK (v2016.11), it has not been tested on previous ESDK versions.
- The ESDK is released in 3 versions:
- armv7l: for compilation on the parallella board (this version has an arm-compatible GCC).
- x86-64: This is the version that was used for development of RTFP and it must be used for cross compilation of Parallella binaries on thelocal machine.
- x86-64: This version could be used for simulating the operation of parallella on the local machine (requires at least 8GB of ram, for more details on that, refer to this repository).
- Create a directory at
/opt/adapteva
- unzip the tar.gz file here using the following command
tar xf esdk.2016.11.x86_64.tar.gz
- create a soft link for the ESDK folder, this step is optional, but wil simplify further operations as it is easier to type than the full name of the ESDK folder
sudo ln -s esdk.2016.11 esdk
- open the bash start up file
sudo nano ~/.bashrc
- Append the following to the end of the file
EPIPHANY_HOME=/opt/adapteva/esdk
. ${EPIPHANY_HOME}/setup.sh
- restart terminal (to allow bash to intialize again)
- For ARM code compilation, a gnubeahif cross compiler is needed. download the Linaro toolchain for cross compilation toolchain.
- unzip the tool chain tar in the following folder
/opt/linaro
Building RTFParallella Using Command Line Interface¶
- Clone the repository from Eclipse APP4MC example repository.
./patch_init.sh
cd src/parallella
make all