B E L K Q u i c k S t a r t G u i d e
v . 1 . 0 . 9
even “on the fly” (meaning that the file system can be modified
while the system is running). The most common way to setup a
system like the one described is through NFS (installation and
configuration depends on the host Linux distribution).
3.3.3.3 Pre-built toolchain
To start developing software for the BORA platform, users need
a proper toolchain, which can be pre-built or
built-from-scratch. Building a toolchain from scratch is not a
trivial task (though using a recent build system is easier than in
the past), so the recommended approach consists in using a
pre-built toolchain.
The toolchain used as a reference for BELK is the toolchain
provided with the Xilinx SDK (usually installed into
/opt/Xilinx/SDK/<Vivado_version>/gnu/arm/lin/bin
).
Once the toolchain is installed, create a a bash script (
env.sh
)
containing the following lines:
export PATH=<path_to_toolchain>:$PATH
export ARCH=arm
export CROSS_COMPILE=<toolchain_prefix>
For example, for the Vivado 2014.4 release, the variables are
the following:
export PATH=/opt/Xilinx/SDK/2014.4/gnu/arm/lin/bin:
$PATH
export ARCH=arm
export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
Use the following command to set up the environment shell
variables required during the building procedure:
source env.sh
3.3.3.4 Pre-built root file system
Linux needs a root file system: a root file system must contain
everything needed to support the Linux system (applications,
settings, data, ..). The root file system is the file system that is
contained on the same partition on which the root directory is
March, 2016
33/66