Difference between revisions of "iMX93 Industrial Yocto Image Building"
(Created page with "Category:iMX93 Industrial Category:iMX93 Industrial Software Category:iMX93 Industrial Yocto Category:Yocto <!-- --> <div style="float:right">__TOC__</div> Th...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
<div style="float:right">__TOC__</div> | <div style="float:right">__TOC__</div> | ||
− | This Wiki page guides through the process of downloading the Yocto Project source files for release | + | This Wiki page guides through the process of downloading the Yocto Project source files for release 5.0 (scarthgap), their synchronization and building images for the iMX93 Industrial Development Kit. |
− | Before images can be built, [[ | + | Before images can be built, [[iMX93 Industrial Yocto Prerequisites|necessary steps need to be performed]] to setup the host machine. |
Line 20: | Line 20: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | Clone the | + | Clone the iMX93 Industrial Yocto Project into the host machine: |
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | git clone https://github.com/voipac/yocto- | + | git clone https://github.com/voipac/yocto-imx-voipac.git |
+ | git checkout -b imx93 origin/imx9x-scarthgap | ||
+ | |||
</syntaxhighlight> | </syntaxhighlight> | ||
== Building the image == | == Building the image == | ||
− | Voipac provides quick and simple-to-use option how to build an image by using [https://github.com/voipac/yocto- | + | Voipac provides quick and simple-to-use option how to build an image by using [https://github.com/voipac/yocto-imx-voipac/blob/imx9x-scarthgap/build_image.sh prepared script]: |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | This script automatically updates the latest meta layers. These layers include config files describing where all the sources are located. Afterwards all the directories are synchronized. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | This script automatically updates the latest meta layers. These layers include | ||
− | |||
− | |||
− | |||
− | |||
− | |||
The script can be run to fetch and build the Yocto images by simply calling its filename: | The script can be run to fetch and build the Yocto images by simply calling its filename: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | ./build_image.sh | + | ./build_image.sh [lite|basic|pro|max] |
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
− | |||
'''''Note:''''' The first successful build can take several hours (depending on multiple factors affecting the host machine like CPU, internet bandwidth, allocated disk space, etc.). | '''''Note:''''' The first successful build can take several hours (depending on multiple factors affecting the host machine like CPU, internet bandwidth, allocated disk space, etc.). | ||
Line 75: | Line 44: | ||
After the compiling process was completed, the freshly built output files are located in the directory: | After the compiling process was completed, the freshly built output files are located in the directory: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | cd ~/voipac-yocto/yocto- | + | cd ~/voipac-yocto/yocto-imx-voipac/build/tmp/deploy/images/imx93-voipac |
</syntaxhighlight> | </syntaxhighlight> | ||
This directory also include binaries to be flashed into the development kit. To make them more accessible, the files can be copied and unpacked: | This directory also include binaries to be flashed into the development kit. To make them more accessible, the files can be copied and unpacked: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | + | cp -prv voipac-image-imx93-voipac.rootfs-20250110131518.wic.zst ~/voipac-image-imx93-voipac.wic.zst | |
− | cp -prv voipac-image- | ||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
− | '''''Note:''''' The number string (e.g. '' | + | '''''Note:''''' The number string (e.g. ''20250110131518'') in the filename differs between every build as it displays the timestamp of the compilation. |
== Flashing the binaries == | == Flashing the binaries == | ||
− | At this point everything was prepared to flash the binaries. Follow the [[ | + | At this point everything was prepared to flash the binaries. Follow the [[iMX93 Industrial Flashing Procedure|flashing procedure]] instructions to start the development kit with the compiled images. |
Latest revision as of 15:45, 28 January 2025
This Wiki page guides through the process of downloading the Yocto Project source files for release 5.0 (scarthgap), their synchronization and building images for the iMX93 Industrial Development Kit.
Before images can be built, necessary 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.
Cloning the project
Create a new directory for the project environment:
mkdir ~/voipac-yocto cd ~/voipac-yocto
Clone the iMX93 Industrial Yocto Project into the host machine:
git clone https://github.com/voipac/yocto-imx-voipac.git git checkout -b imx93 origin/imx9x-scarthgap
Building the image
Voipac provides quick and simple-to-use option how to build an image by using prepared script:
This script automatically updates the latest meta layers. These layers include config files describing where all the sources are located. Afterwards all the directories are synchronized.
The script can be run to fetch and build the Yocto images by simply calling its filename:
./build_image.sh [lite|basic|pro|max]
Note: The first successful build can take several hours (depending on multiple factors affecting the host machine like CPU, internet bandwidth, allocated disk space, etc.).
Locating output files
After the compiling process was completed, the freshly built output files are located in the directory:
cd ~/voipac-yocto/yocto-imx-voipac/build/tmp/deploy/images/imx93-voipac
This directory also include binaries to be flashed into the development kit. To make them more accessible, the files can be copied and unpacked:
cp -prv voipac-image-imx93-voipac.rootfs-20250110131518.wic.zst ~/voipac-image-imx93-voipac.wic.zst
Note: The number string (e.g. 20250110131518) in the filename differs between every build as it displays the timestamp of the compilation.
Flashing the binaries
At this point everything was prepared to flash the binaries. Follow the flashing procedure instructions to start the development kit with the compiled images.