|Installing and Activating Cross Development Environment|
The Linux i.MX6 development software is distributed as a linux-<mcu>-<release>.tgz file available for download from the Emcraft site. That file can be installed to an arbitrary directory on your Linux development host, as follows:
[psl@ocean SF]$ mkdir release
You do not need to be the superuser (root) in order to install the Linux i.MX6 distribution. The installation can be performed from an arbitrary unprivileged user account.
As a next step in the installation procedure, you need to download and install the Emcraft Yocto toolchain and packages collection. The Linux i.MX6 software development environment makes use of a modified software distribution developed by the Yocto project. This is a software distribution and development environment that includes the GNU cross development tools as well as a large number of pre-built target tools and libraries ready for immediate use with Linux running on Cortex-A9. Yocto is provided for free with full source code, including all patches, extensions, programs and scripts used to build the tools.
Basically, the idea is that the Emcraft provided part of the i.MX6 software development environment includes U-Boot, the Linux kernel, and some other i.MX6 software components, all highly optimized for the SOLOX System-On-Module (SOM). The Yocto is used as a second component of the i.MX6 software development environment and provides the Cortex-A9 GNU toolchain as well as a Yocto-based management of various Linux user-space components ready for the Cortex-A9 processor core.
The Emcraft Yocto release used in the i.MX6 software development environment is based on Yocto 1.8.1 (Fido). The i.MX6 development software requires the following Yocto 1.8.1 capabilities be installed on the development host:
After downloading the above files from the software release page of the Emcraft site, the following commands must be issued in an arbitrary writeable directory to install the specified Yocto capabilities on the Linux development host:
$ sh /tmp/poky-glibc-i686-meta-toolchain-qte-cortexa5hf-vfp-neon-toolchain-qte-1.8.1.sh
The activation script needs to be run any time you start a development session. The script resides at the top of the installation directory:
[psl@ocean release]$ cd linux-imx6sx-2.3.0
An alternative way to run the script is to perform the following command:
[psl@ocean linux-imx6sx-2.3.0]$ source ACTIVATE.sh