Difference between revisions of "iMX8M Industrial Yocto Image Building"

From Voipac Wiki
Jump to navigation Jump to search
(Created page with "Category:iMX8M Industrial Category:iMX8M Industrial Software Category:iMX8M Industrial Yocto Category:Yocto <!-- --> <div style="float:right">__TOC__</div> Th...")
 
Line 6: Line 6:
 
<div style="float:right">__TOC__</div>
 
<div style="float:right">__TOC__</div>
  
This Wiki page guides thorugh the process of downloading the Yocto Project source files, preparing and building images for the iMX8M Industrial Development Kit.
+
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, [[iMX8M Industrial Yocto Prerequisities|neccesary steps need to be performed]] to setup the host machine.
 
Before images can be built, [[iMX8M Industrial Yocto Prerequisities|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 [https://github.com/voipac Voipac GitHub] repository.
+
All the source files for this customized Yocto Project, together with the recent changes made, can be inspected and downloaded at the [https://github.com/voipac Voipac GitHub] repository.
 +
 
 +
== Building using a script ==
 +
The quickest option how to build an image provides the [https://github.com/voipac/yocto-imx8m-voipac/blob/master/build_image.sh 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:
 +
<syntaxhighlight lang="bash">
 +
./build_image.sh
 +
</syntaxhighlight>
 +
 
 +
== 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:
 +
<syntaxhighlight lang="bash">
 +
mkdir ~/imx-yocto
 +
cd ~/imx-yocto
 +
</syntaxhighlight>
 +
 
 +
Initialize repo with manifest file where all the sources described:
 +
<syntaxhighlight lang="bash">
 +
repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-kirkstone -m imx-5.15.71-2.2.0.xml
 +
</syntaxhighlight>
 +
 
 +
Synchronize the directories afterwards:
 +
<syntaxhighlight lang="bash">
 +
repo sync
 +
</syntaxhighlight>
 +
 
 +
=== 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:

Revision as of 23:49, 8 December 2023

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: