Difference between revisions of "UCM-iMX8M-Mini: Yocto Linux: Building UCM-iMX8M-Mini Yocto images"

From Compulab Mediawiki
Jump to: navigation, search
imported>Igor.vaisbein
(Building the images)
 
imported>Igor.vaisbein
Line 8: Line 8:
 
Yocto host requirements are listed [https://www.yoctoproject.org/docs/2.6/brief-yoctoprojectqs/brief-yoctoprojectqs.html#brief-build-system-packages on the Yocto official site]
 
Yocto host requirements are listed [https://www.yoctoproject.org/docs/2.6/brief-yoctoprojectqs/brief-yoctoprojectqs.html#brief-build-system-packages on the Yocto official site]
  
In order to get NXP Yocto BSP building environment please issue the following commands. More detailed instructions can be found at [https://source.codeaurora.org/external/imx/meta-fsl-bsp-release/tree/imx/README?h=rocko-4.9.123-2.3.0_8mm_ga#n23 the NXP readme file]
+
In order to get NXP Yocto BSP building environment please issue the following commands. More detailed instructions can be found at [https://source.codeaurora.org/external/imx/meta-fsl-bsp-release/tree/imx/README?h=sumo-4.14.98-2.0.0_ga the NXP readme file]
<pre>repo init -u git://source.codeaurora.org/external/imx/imx-manifest.git -b imx-linux-sumo -m imx-4.14.78-1.0.0_ga.xml
+
<pre>repo init -u git://source.codeaurora.org/external/imx/imx-manifest.git -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml
 
repo sync
 
repo sync
 
</pre>
 
</pre>
 
Next step is getting the Compulab BSP meta-layer.
 
Next step is getting the Compulab BSP meta-layer.
<pre>git clone -b devel-imx8mm-4.14.78 https://github.com/compulab-yokneam/meta-compulab-bsp.git sources/meta-compulab-bsp
+
<pre>git clone -b devel-imx8mm-4.14.98 https://github.com/compulab-yokneam/meta-compulab-bsp.git sources/meta-compulab-bsp
 
git clone -b devel https://github.com/compulab-yokneam/meta-compulab.git sources/meta-compulab
 
git clone -b devel https://github.com/compulab-yokneam/meta-compulab.git sources/meta-compulab
 
</pre>
 
</pre>
Line 23: Line 23:
 
==Create Build Environment==
 
==Create Build Environment==
 
:* Issue '''Compulab''' Setup Script:
 
:* Issue '''Compulab''' Setup Script:
:<pre>source source sources/meta-compulab-bsp/meta-bsp-imx8mm/tools/setup-imx8mm-env -b build-xwayland
+
:<pre>source sources/meta-compulab-bsp/meta-bsp-imx8mm/tools/setup-imx8mm-env -b build-xwayland
 
</pre>
 
</pre>
  
Line 29: Line 29:
 
The Yocto Project build uses the {{parameter|bitbake}} command.
 
The Yocto Project build uses the {{parameter|bitbake}} command.
  
* To build a NXP image with GUI use the command below:
+
* To build a Compulab image with GUI use the command below:
<pre>bitbake -k fsl-image-validation-imx</pre>
+
<pre>bitbake -k compulab-ucm-imx8m-mini</pre>
 
* To build a minimal Linux image use the command below:
 
* To build a minimal Linux image use the command below:
 
<pre>bitbake -k core-image-full-cmdline</pre>
 
<pre>bitbake -k core-image-full-cmdline</pre>
  
 
* To re-build only the Linux kernel use the command below:
 
* To re-build only the Linux kernel use the command below:
<pre>bitbake -c cleansstate linux-imx
+
<pre>source setup-environment build-xwayland
 +
bitbake -c cleansstate linux-imx
 
bitbake -k linux-imx
 
bitbake -k linux-imx
 
</pre>
 
</pre>
 
* To re-build only the u-boot bootloader and boot image use the command below:
 
* To re-build only the u-boot bootloader and boot image use the command below:
<pre>bitbake -c cleansstate imx-boot u-boot-imx
+
<pre>source setup-environment build-xwayland
 +
bitbake -c cleansstate imx-boot u-boot-imx
 
bitbake -k imx-boot u-boot-imx
 
bitbake -k imx-boot u-boot-imx
 
</pre>
 
</pre>
 +
=Building previous versions of UCM-iMX8M-Mini Yocto=
  
 +
* [[Building_UCM-iMX8M-Mini_Yocto_Linux_images_r1.1|Building UCM-iMX8M-Mini Yocto r1.1]]
 
[[Category:Linux]]
 
[[Category:Linux]]
 
[[Category:Yocto]]
 
[[Category:Yocto]]
 
[[Category:UCM-iMX8M-Mini]]
 
[[Category:UCM-iMX8M-Mini]]

Revision as of 07:29, 22 May 2019

Overview

The Yocto Project is an open-source collaboration focused on embedded Linux development.
The purpose of this article is to show how to get Yocto Image with support for the UCM-iMX8M-Mini System-on-Module.

Learn more about Yocto

Yocto Environment Setup

Yocto host requirements are listed on the Yocto official site

In order to get NXP Yocto BSP building environment please issue the following commands. More detailed instructions can be found at the NXP readme file

repo init -u git://source.codeaurora.org/external/imx/imx-manifest.git -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml
repo sync

Next step is getting the Compulab BSP meta-layer.

git clone -b devel-imx8mm-4.14.98 https://github.com/compulab-yokneam/meta-compulab-bsp.git sources/meta-compulab-bsp
git clone -b devel https://github.com/compulab-yokneam/meta-compulab.git sources/meta-compulab

The Compulab meta-layer consists of meta-compulab directory, that provides support for UCM-iMX8M-Mini and other Compulab i.MX based machines and contains recipes for U-boot and Linux kernel.

Image Building

This section provides information about building UCM-iMX8M-Mini images.

Create Build Environment

  • Issue Compulab Setup Script:
source sources/meta-compulab-bsp/meta-bsp-imx8mm/tools/setup-imx8mm-env -b build-xwayland

Building the images

The Yocto Project build uses the bitbake command.

  • To build a Compulab image with GUI use the command below:
bitbake -k compulab-ucm-imx8m-mini
  • To build a minimal Linux image use the command below:
bitbake -k core-image-full-cmdline
  • To re-build only the Linux kernel use the command below:
source setup-environment build-xwayland
bitbake -c cleansstate linux-imx
bitbake -k linux-imx
  • To re-build only the u-boot bootloader and boot image use the command below:
source setup-environment build-xwayland
bitbake -c cleansstate imx-boot u-boot-imx
bitbake -k imx-boot u-boot-imx

Building previous versions of UCM-iMX8M-Mini Yocto