Difference between revisions of "CL-SOM-iMX8X: Yocto Linux: Building images"

From Compulab Mediawiki
Jump to: navigation, search
imported>Igor.vaisbein
 
imported>Uri.mashiach
(Yocto Environment Setup)
Line 13: Line 13:
 
</pre>
 
</pre>
 
The next step is getting the CL-SOM-iMX8X8 meta-layer.
 
The next step is getting the CL-SOM-iMX8X8 meta-layer.
<pre>git clone https://github.com/compulab-yokneam/meta-cl-som-imx8x.git sources/meta-compulab-bsp/meta-cl-som-imx8x</pre>
+
<pre>git clone -b r1.0 https://github.com/compulab-yokneam/meta-cl-som-imx8x.git sources/meta-compulab-bsp/meta-cl-som-imx8x</pre>
 
The CL-SOM-iMX8X8 meta-layer contains recipes adjustments and configuration files for the CL-SOM-iMX8X module.
 
The CL-SOM-iMX8X8 meta-layer contains recipes adjustments and configuration files for the CL-SOM-iMX8X module.
  

Revision as of 08:15, 3 September 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 CL-SOM-iMX8X System-on-Module.

Learn more about Yocto

Yocto Environment Setup

Yocto host requirements are listed on the official Yocto website

In order to setup the NXP Yocto BSP build environment please issue the following commands. More detailed instructions can be found in 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

The next step is getting the CL-SOM-iMX8X8 meta-layer.

git clone -b r1.0 https://github.com/compulab-yokneam/meta-cl-som-imx8x.git sources/meta-compulab-bsp/meta-cl-som-imx8x

The CL-SOM-iMX8X8 meta-layer contains recipes adjustments and configuration files for the CL-SOM-iMX8X module.

Building the Image

This section provides information about building the CL-SOM-iMX8X module images.

Create Build Environment

  • Issue the Compulab Setup Script:
source sources/meta-compulab-bsp/meta-cl-som-imx8x/tools/setup-cl-som-imx8x-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 cl-som-imx8x-eval
  • 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