CL-SOM-iMX8X: Yocto Linux: Building images

From Compulab Mediawiki
Revision as of 15:59, 18 August 2019 by imported>Igor.vaisbein
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 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