Attention: the Quickstart Guide for BSP 2.8, based on the Ångström distribution, is not being updated anymore. Depending on your SoM, you have different options:
Vybrid and Tegra: the information is provided as-is and still accurate, since newer Toradex BSPs are not ported to those SoMs. Just keep in mind that the Guides are not being maintained anymore, even if we find bugs or outdated instructions.
Apalis TK1 (all variants), Colibri iMX6ULL (all variants), Colibri iMX7S 256MB and Colibri iMX7D 512MB: these computer on modules are still regularly maintained in our BSPs and, to get started, you must check the software page Toradex BSP Layers and Reference Images for Yocto Project. Since Torizon is not supported, at the moment a Quickstart Guide is not available.
All other i.MX-based SoMs: you have two options to get started with embedded Linux: the first is to follow the Quickstart Guide for Torizon, which provides the greatest out-of-the-box experience, or if you choose to use Yocto, check the software page Toradex BSP Layers and Reference Images for Yocto Project.
In this lesson, you will go through the process of configuring the Toradex Software Development Kit (SDK) for cross-compiling C/C++ code to the ARM architecture using the GNU C Compiler (GCC).
In this lesson you will:
Download the Toradex SDK to the home directory of your computer.
Download the 64-bit SDK from here.
This includes the cross toolchain for building applications on the host machine, as well as the target root filesystem with development headers.
Warning: Make sure to use a matching SDK version (e.g. for Linux version 2.7, download SDK version 2.7). All available SDK versions are found here.
Open the Linux terminal and go to the home directory. Install the SDK using the following commands. Use the default installation directory:
Note: This assumes that you downloaded your toolchain file in your home folder! Make sure to check where you downloaded the toolchain file and navigate accordingly using the cd command.
user@host:~$ cduser@host:~$ chmod +x angstrom-glibc-x86_64-armv7at2hf-neon-v2017.12-toolchain.shuser@host:~$ ./angstrom-glibc-x86_64-armv7at2hf-neon-v2017.12-toolchain.shAngstrom SDK installer version nodistro.0=========================================Enter target directory for SDK (default: /usr/local/oecore-x86_64):You are about to install the SDK to "/usr/local/oecore-x86_64". Proceed[Y/n]? y
Note: The lib paths are hard-coded in the moment of the installation-extraction. If you use a custom directory path and by any circumstance, you need to move it to another location afterward, make sure to re-install the SDK.
Export the variables for cross-compilation.
Attention: You must execute this step every time you open a new terminal window or tab for cross-compilation.
Warning: In the command above, notice that there is a dot and a space before the path to the script.