NXP® i.MX 6 Ultra Lite Evaluation Kit

Contributors

BG Networks - Cyber Security for the Internet of Things

Jasmin Infotech - Embedded solutions and services

Let us know if you need additional information for a manual integration and build.

Board description

The i.MX 6UltraLite processor is the first device in the i.MX product line to have a single Arm® Cortex®-A7 core operating at speeds of up to 696 MHz. This EVK enables an LCD display and audio playback as well as many connectivity options.

URL: i.MX6UltraLite Evaluation Kit - Technical and Functional Specifications

Wiki: i.MX 6 series

Test results

The Yocto Project releases in the table below have been tested by the Mender community. Please update it if you have tested this integration on other Yocto Project releases:

Yocto Project Build Runtime
warrior (2.7) :test_works: :test_works:

Build Means that the Yocto Project build using this Mender integration completes without errors and outputs images.

Runtime Means that Mender has been verified to work on the board. For U-Boot-based boards, the integration checklist has been verified.

Getting started

Prerequisites

  • A supported Linux distribution and dependencies installed on your workstation/laptop as described in the Yocto Mega Manual

  • Google repo tool installed and in your PATH.

Configuring the build

Setup Yocto environment

Create a directory for your mender-imx6ul setup to live in and clone the

meta information.

mkdir -p mender-imx6ul && cd mender-imx6ul

Initialize repo manifest:

# Downloading base manifest from NXP site
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-warrior -m imx-4.19.35-1.1.2.xml
# Adding demo manifest from meta-mender-community
wget --directory-prefix .repo/manifests https://raw.githubusercontent.com/mendersoftware/meta-mender-community/warrior/meta-mender-imx/scripts/imx-4.19.35-1.1.2_demo_mender.xml
# Initialising mender demo manifest
repo init -m imx-4.19.35-1.1.2_demo_mender.xml

Fetch layers in manifest:

repo sync

Setup build environment

Initialise the build environment:

  1. For first build:
MACHINE=imx6ulevk DISTRO=fslc-framebuffer source setup-mender-environment build
  1. For subsequent builds:
source setup-mender-environment build

Configure Mender server URL (optional)

This section is not required for a successful build but images that are generated by default are only suitable for usage with the Mender client in Standalone deployments, due to lack of server configuration.

You can edit the conf/local.conf file to provide your Mender server configuration, ensuring the generated images and Mender Artifacts are connecting to the Mender server that you are using. There should already be a commented section in the generated conf/local.conf file and you can simply uncomment the relevant configuration options and assign appropriate values to them.

Build for Hosted Mender:

# - log in to https://hosted.mender.io
# - click your email at the top right and then "My organization"
# - press the "COPY TO CLIPBOARD"
# - assign content of clipboard to MENDER_TENANT_TOKEN
#
MENDER_SERVER_URL = "https://hosted.mender.io"
MENDER_TENANT_TOKEN = "<copy token here>"

Build for Mender demo server:

# https://docs.mender.io/getting-started/create-a-test-environment
#
# Update IP address to match the machine running the Mender demo server
MENDER_DEMO_HOST_IP_ADDRESS = "192.168.0.100"

Building the image

You can now proceed with building an image:

bitbake core-image-base

Replace core-image-base with your desired image target.

Using the build output

After a successful build, the images and build artifacts are placed in tmp/deploy/images/imx6ulevk/.

The disk image (with.sdimg suffix) is used to provision the device storage for devices without Mender running already. Please proceed to the official documentation on provisioning a new device for steps to do this.

On the other hand, if you already have Mender running on your device and want to deploy a rootfs update using this build, you should use the Mender Artifact files, which have .mender suffix. You can either deploy this Artifact in managed mode with the Mender server as described in Deploy a system update demo or by using the Mender client only in Standalone deployments.

References

  1. The official Mender documentation explains how Mender works. This is simply a board-specific complement to the official documentation.

  2. meta-mender-imx6ul from bgnetworks - Complete mender integration for i.MX 6UL (fixed known issues)

  3. i.MX6UltraLite Evaluation Kit - Overview

  4. i.MX Repo Manifest README

Known issues

1 Like

I am getting below errors for compiling.

DEBUG: Executing shell function do_compile
NOTE: make -j 8 HOSTCC=gcc -isystem/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,–enable-new-dtags -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,–allow-shlib-undefined -Wl,–dynamic-linker=/home/keyur/projects/mender-imx6ul/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E zImage CC=arm-fslc-linux-gnueabi-gcc -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0=/usr/src/debug/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0 -fdebug-prefix-map=/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0=/usr/src/debug/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0 -fdebug-prefix-map=/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot= -fdebug-prefix-map=/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/keyur/projects/mender-imx6ul/build/tmp/work-shared/imx6ulevk/kernel-source=/usr/src/kernel LD=arm-fslc-linux-gnueabi-ld.bfd LOADADDR=0x10008000
CHK include/config/kernel.release
GEN ./Makefile
CHK include/generated/uapi/linux/version.h
Using /home/keyur/projects/mender-imx6ul/build/tmp/work-shared/imx6ulevk/kernel-source as source for kernel
CC scripts/mod/empty.o
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
CHK include/generated/utsrelease.h
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/mod/file2alias.o
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL /home/keyur/projects/mender-imx6ul/build/tmp/work-shared/imx6ulevk/kernel-source/scripts/checksyscalls.sh
HOSTLD scripts/mod/modpost
CHK include/generated/compile.h
CHK kernel/config_data.h
Kernel: arch/arm/boot/Image is ready
Kernel: arch/arm/boot/zImage is ready
NOTE: make -j 8 HOSTCC=gcc -isystem/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,–enable-new-dtags -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,–allow-shlib-undefined -Wl,–dynamic-linker=/home/keyur/projects/mender-imx6ul/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E imx6ul-14x14-evk.dtb
CC scripts/mod/empty.o
CC scripts/mod/devicetable-offsets.s
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
NOTE: make -j 8 HOSTCC=gcc -isystem/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,–enable-new-dtags -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,–allow-shlib-undefined -Wl,–dynamic-linker=/home/keyur/projects/mender-imx6ul/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E imx6ul-14x14-evk-btwifi.dtb
NOTE: make -j 8 HOSTCC=gcc -isystem/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,–enable-new-dtags -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,–allow-shlib-undefined -Wl,–dynamic-linker=/home/keyur/projects/mender-imx6ul/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E imx6ul-14x14-evk-btwifi-oob.dtb
NOTE: make -j 8 HOSTCC=gcc -isystem/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,–enable-new-dtags -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,–allow-shlib-undefined -Wl,–dynamic-linker=/home/keyur/projects/mender-imx6ul/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E imx6ul-14x14-evk-csi.dtb
NOTE: make -j 8 HOSTCC=gcc -isystem/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -L/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,–enable-new-dtags -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,–allow-shlib-undefined -Wl,–dynamic-linker=/home/keyur/projects/mender-imx6ul/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc -E imx6ul-14x14-evk-ecspi.dtb
make[3]: *** No rule to make target ‘arch/arm/boot/dts/imx6ul-14x14-evk-ecspi.dtb’. Stop.
arch/arm/Makefile:336: recipe for target ‘imx6ul-14x14-evk-ecspi.dtb’ failed
make[2]: *** [imx6ul-14x14-evk-ecspi.dtb] Error 2
Makefile:150: recipe for target ‘sub-make’ failed
make[1]: *** [sub-make] Error 2
Makefile:24: recipe for target ‘__sub-make’ failed
make: *** [__sub-make] Error 2
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at /home/keyur/projects/mender-imx6ul/build/tmp/work/imx6ulevk-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/temp/log.do_compile.14308)

Hi,

It seems that you’re building older kernel (4.9) I suggest you to try kernel 4.19 by adding the following line in local.conf

PREFERRED_PROVIDER_virtual/kernel = "linux-imx"

If you still encounter this error, kindly post the error log

1 Like

Thank you for the reply. But it still getting error

WARNING: You have included the meta-gnome layer, but 'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-gnome README for details on enabling meta-gnome support.
Parsing recipes: 100% |##################################################################################################################################| Time: 0:07:59
Parsing of 2833 .bb files complete (0 cached, 2833 parsed). 3988 targets, 520 skipped, 3 masked, 0 errors.
Removing 1 recipes from the imx6ulevk sysroot: 100% |####################################################################################################| Time: 0:00:04
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'u-boot-imx'
u-boot-imx was skipped: PREFERRED_PROVIDER_virtual/bootloader set to u-boot-fslc, not u-boot-imx
u-boot-imx was skipped: PREFERRED_PROVIDER_virtual/bootloader set to u-boot-fslc, not u-boot-imx
ERROR: Nothing PROVIDES 'u-boot-fw-utils-mender-auto-provided'
No eligible PROVIDERs exist for 'u-boot-fw-utils-mender-auto-provided'
ERROR: Nothing RPROVIDES 'u-boot-fw-utils-mender-auto-provided-dev' (but /home/keyur/projects/mender-imx6ul/sources/meta-mender/meta-mender-core/recipes-bsp/u-boot/u-boot-fw-utils-mender-auto-provided_1.0.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'u-boot-fw-utils-mender-auto-provided-dev'
NOTE: Runtime target 'u-boot-fw-utils-mender-auto-provided-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['u-boot-fw-utils-mender-auto-provided-dev']
ERROR: Nothing RPROVIDES 'u-boot-fw-utils-mender-auto-provided' (but /home/keyur/projects/mender-imx6ul/sources/meta-mender/meta-mender-core/recipes-bsp/u-boot/u-boot-fw-utils-mender-auto-provided_1.0.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'u-boot-fw-utils-mender-auto-provided'
NOTE: Runtime target 'u-boot-fw-utils-mender-auto-provided' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['u-boot-fw-utils-mender-auto-provided']

Build Configuration:
BB_VERSION           = "1.42.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-fslc-linux-gnueabi"
MACHINE              = "imx6ulevk"
DISTRO               = "fslc-framebuffer"
DISTRO_VERSION       = "2.7"
TUNE_FEATURES        = "arm vfp cortexa7 neon thumb callconvention-hard"
TARGET_FPU           = "hard"
meta                 
meta-poky            = "HEAD:6d2e12e79211b31cdf5ea824fb9a8be54ba9a9eb"
meta-oe              
meta-multimedia      = "HEAD:3bdbf72e3a4bf18a4a2c7afbde4f7ab773aeded9"
meta-freescale       = "HEAD:2142f7ded1b3115ccc21f7575fd83e2376247193"
meta-freescale-3rdparty = "HEAD:da422478d38e744283bcf61123c4a526396c7030"
meta-freescale-distro = "HEAD:d4e77ea682fa10d0d54a723b3d3099c44fc5e95c"
meta-bsp             
meta-sdk             
meta-ml              = "HEAD:fc3130ecfce72ff6d3013f5fa464ed2a72af8b00"
meta-browser         = "HEAD:5f365ef0f842ba4651efe88787cf9c63bc8b6cb3"
meta-rust            = "HEAD:11aed43748d7dd194dc6c06a35a16104400d1090"
meta-gnome           
meta-networking      
meta-python          
meta-filesystems     = "HEAD:3bdbf72e3a4bf18a4a2c7afbde4f7ab773aeded9"
meta-qt5             = "HEAD:dc2dedef9961950b88f4245ba7499538ec4244ab"
meta-mender-imx      = "HEAD:a13035912d915a188c062e848d37c48a3fa2014e"
meta-mender-core     
meta-mender-demo     = "HEAD:f4b093d10639c89d9419a7c8833ee2db225cbc52"

Initialising tasks: 100% |###############################################################################################################################| Time: 0:00:08
Sstate summary: Wanted 634 Found 0 Missed 634 Current 495 (0% match, 43% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: optee-client-imx-git-r0 do_compile: oe_runmake failed
ERROR: optee-client-imx-git-r0 do_compile: Function failed: do_compile (log file is located at /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/temp/log.do_compile.27093)
ERROR: Logfile of failure stored in: /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/temp/log.do_compile.27093
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 -C /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git ARCH=arm
| make: Entering directory '/home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git'
| Building libteec.so
|   CC      src/tee_client_api.c
|   CC      src/teec_trace.c
| In file included from /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/recipe-sysroot/usr/include/bits/libc-header-start.h:33,
|                  from /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/recipe-sysroot/usr/include/stdio.h:27,
|                  from src/teec_trace.c:27:
| /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/recipe-sysroot/usr/include/features.h:382:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
|  #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
|     ^~~~~~~
| In file included from /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/recipe-sysroot/usr/include/errno.h:25,
|                  from src/tee_client_api.c:28:
| /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/recipe-sysroot/usr/include/features.h:382:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
|  #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
|     ^~~~~~~
| cc1: all warnings being treated as errors
| Makefile:56: recipe for target '/home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git/libteec/../out/libteec/teec_trace.o' failed
| make[1]: *** [/home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git/libteec/../out/libteec/teec_trace.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| cc1: all warnings being treated as errors
| Makefile:56: recipe for target '/home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git/libteec/../out/libteec/tee_client_api.o' failed
| make[1]: *** [/home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git/libteec/../out/libteec/tee_client_api.o] Error 1
| Makefile:31: recipe for target 'build-libteec' failed
| make: *** [build-libteec] Error 2
| make: Leaving directory '/home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/git'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/keyur/projects/mender-imx6ul/build/tmp/work/cortexa7t2hf-neon-fslc-linux-gnueabi/optee-client-imx/git-r0/temp/log.do_compile.27093)
ERROR: Task (/home/keyur/projects/mender-imx6ul/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-security/optee-imx/optee-client-imx_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2128 tasks of which 2071 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /home/keyur/projects/mender-imx6ul/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-security/optee-imx/optee-client-imx_git.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 6 ERROR messages shown, returning a non-zero exit code.

It seems like you’ve mixed bootloader provider: Try adding the following in local.conf

PREFERRED_PROVIDER_virtual/bootloader = "u-boot-imx"
# Removing optee from build
DISTRO_FEATURES_remove += " optee"
PACKAGE_EXCLUDE += " optee"
1 Like