iMX8M Industrial Yocto Image Building

From Voipac Wiki
Revision as of 00:49, 9 December 2023 by Voipac (talk | contribs)
Jump to navigation Jump to search

This Wiki page guides thorugh the process of downloading the Yocto Project source files for release 3.1 (dunfell), preparing and building images for the iMX8M Industrial Development Kit.

Before images can be built, neccesary steps need to be performed to setup the host machine.


All the source files for this customized Yocto Project, together with the recent changes made, can be inspected and downloaded at the Voipac GitHub repository.

Building using a script

The quickest option how to build an image provides the prepared script wich automatically copies the latest meta layers, set the machine and build the image. Locate the directory, where the script is located, then run it to fetch and build the Yocto image:

./build_image.sh

Building via console commands

As this method delivers the same result as the script above, it can furthermore provide additional insight and variability.

Downloading sources

Create a new directory for the project environment:

mkdir ~/imx-yocto
cd ~/imx-yocto

Initialize repo with manifest file where all the sources described:

repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-kirkstone -m imx-5.15.71-2.2.0.xml

Synchronize the directories afterwards:

repo sync

Setting up the machine

NXP, the CPU manufacturer, provides a usefull script called imx-setup-release.sh which simplifies the machine setup. To setup e.g. imx8mqevk machine we use it in following way: