GUF-Yocto-jethro-9.0-r7707-0
i.MX6
User Manual
8
Building a Garz & Fricke Yocto Linux system from source
This chapter describes how to build a Yocto based Linux BSP for a Garz & Fricke platform from source. All steps,
including the installation of the build system and the required toolchains, are covered here.
8.1
General information about Garz & Fricke Yocto Linux systems
Garz & Fricke uses the
Yocto Project
for building embedded Linux systems for their platforms by providing a
Board Support Package (BSP). The Yocto Project is led by the Linux foundation with the aim to produce tools and
processes to create embedded Linux distributions. It includes a cross toolchain and a configurable build system
called
Bitbake
.
For general information regarding the
Yocto Project
please refer to the official
Yocto website
:
A detailed documentation regarding Yocto and its build system can be found at:
https://www.yoctoproject.org/documentation/current
8.2
Build requirements
The Yocto build process is quite extensive and requires a fast processor (the more cores, the better) and approx-
imately 50 GB of free disk space.
The recommended host OS for Yocto development is a standard
Ubuntu LTS
release, which Garz & Fricke uses
in-house for building their BSPs as well. The recommended version can be found in the BSP release notes under
"Software Dependencies".
The official Yocto documentation lists which packages have to be installed in order to be able to compile a Yocto
image:
On Debian based Linux distributions packages can be installed using the
apt-get
command:
$ sudo apt-get install apt-get install gawk wget git-core diffstat unzip texinfo gcc-
,!
multilib build-essential chrpath socat
In contrast to a desktop Linux system, which is completely built with a native GNU toolchain, an embedded Linux
system is built with a GNU cross toolchain. A cross toolchain has the ability to produce target specific opcode
while running on a different host system. When building a BSP with Yocto, the toolchain is included and will be
built from source before the target system is built. There is no need to install a GNU Compiler Collection (GCC)
host and cross toolchain separately.
8.3
Download and installation of the Garz & Fricke Yocto BSP
To install a Garz & Fricke Yocto BSP the following files from the CD / USB stick shipped with the starter kit for
i.MX6 have to be extracted:
GUF-Yocto-jethro-9.0-r7707-0.tar.bz2
This archive can also be found on the Garz & Fricke support website:
http://support.garz-fricke.com/projects/Santaro/Linux-Yocto/Releases/
It contains the necessary files to build a cross toolchain and a Yocto based target image. To install the Garz &
Fricke BSP, simply extract the file.
For example:
57