CL-SOM-iMX8X: Yocto Linux: Building images

From Compulab Mediawiki
Jump to: navigation, search


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:// -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.2 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

Building previous versions of CL-SOM-iMX8X Yocto