Skip to content

01. Build CompuLab Images

vraevsky edited this page Apr 15, 2022 · 20 revisions

meta-compulab

is a set of recipes and configuration files for Yocto Build Environmet that allows to create CompuLab Yocto Images

Supported Yocto NXP Releases:

Supported Yocto NXP Releases Changes:

Neither Krogoth nor Morty supported any longer by NXP.
The cl-som-imx6 support for Sumo and Warrior moved to meta-bsp-imx6
The cl-som-imx6ul support for Sumo and Warrior moved to meta-bsp-imx6

Supported CompuLab Machines:

Prepare Build Machine

Prepare BSP Environment

Select an NXP branch: imx-4.1-krogoth/imx-morty

$: export IMX_BRANCH=imx-4.1-krogoth
or
$: export IMX_BRANCH=imx-morty; IMX_BRANCH+=' -m imx-4.1.33-7ulp_beta.xml'

Download the NXP BSP source:

$: repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b ${IMX_BRANCH}
$: repo sync

Clone meta-compulab layer:

$: git clone -b devel https://github.com/compulab-yokneam/meta-compulab sources/meta-compulab

imx-4.1-krogoth fixes

Refer to this Build Environment Known Issues page for details.

Build Procedure

Select a machine: cm-fx6-evk/cl-som-imx6ul/cl-som-imx7/cl-som-imx6

$: export MACHINE=cm-fx6-evk
or
$: export MACHINE=cl-som-imx6ul
or
$: export MACHINE=cl-som-imx7
or
$: export MACHINE=cl-som-imx6

Select a distribution: x11/fb/xwayland/wayland

$: export DISTRO=fsl-imx-x11
or
$: export DISTRO=fsl-imx-fb
or
$: export DISTRO=fsl-imx-xwayland
or
$: export DISTRO=fsl-imx-wayland

Create Build Environment

  • Issue NXP Setup Script
$: source fsl-setup-release.sh -b build-${MACHINE}-${DISTRO}
  • Issue CompuLab Setup Script
$: source ../sources/meta-compulab/bb-tools/setup-compulab-env

Build Instruction

Select an image: fsl-image-gui/fsl-image-qt5/compulab-eval-image-xfce

$: export IMAGE=fsl-image-gui
or
$: export IMAGE=fsl-image-qt5
or
$: export IMAGE=compulab-eval-image-xfce

⚠️ compulab-eval-image-xfce does not work in Morty

⚠️ compulab-eval-image-xfce requires DISTRO=fsl-imx-x11

Build Yocto image

$: bitbake ${IMAGE}

Build kernel only

$: bitbake linux-compulab

Build U-Boot only

$: bitbake u-boot-compulab