# Toradex Colibri i.MX6ULL

**URL:** <https://hub.mender.io/t/toradex-colibri-i-mx6ull/4102>\
**Category:** Yocto Project\
**Tags:** nxp, toradex\
**Created:** [September 21, 2021, 3:17pm UTC](https://hub.mender.io/t/toradex-colibri-i-mx6ull/4102 "2021-09-21T15:17:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [September 21, 2021, 3:17pm UTC](https://hub.mender.io/t/toradex-colibri-i-mx6ull/4102/1 "2021-09-21T15:17:51Z")

</div>

The official [Mender documentation](https://docs.mender.io/) explains how Mender works. This is simply a board-specific complement to the official documentation.

# Board description

The Colibri i.MX6ULL is a System on Module based on the NXP® i.MX 6ULL family of embedded System on Chips (SoCs). The i.MX 6ULL is a power efficient and cost-optimized applications processor family featuring an advanced implementation of a single Arm Cortex-A7 core, which operates at speeds up to 900 MHz. The i.MX 6ULL applications processor includes an integrated power management module that reduces the complexity of an external power supply and simplifies power sequencing. Each processor in this family provides various memory interfaces, including 16-bit LPDDR2, DDR3, DDR3L, raw and managed NAND flash, NOR flash, eMMC, Quad SPI and a wide range of other interfaces for connecting peripherals such as WLAN, Bluetooth®, GPS, displays and camera sensors.

![](https://docs.toradex.com/107799-colibri-imx6ull-front-view.png?h=250)

URL: [https://www.toradex.com/computer-on-modules/colibri-arm-family/nxp-imx6ull](https://www.toradex.com/computer-on-modules/colibri-arm-family/nxp-imx6ull)  
Wiki: [Colibri iMX6ULL | Toradex Developer Center](https://developer.toradex.com/products/colibri-som-family/modules/colibri-imx6ull)

# 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](https://wiki.yoctoproject.org/wiki/Releases?target=_blank):

| Yocto Project | Build | Runtime |
| --- | --- | --- |
| dunfell (Yocto 3.1 / Toradex BSP 5.3.0) | :test_works: | :test_works: |
| dunfell (Yocto 3.1 / Toradex BSP 5.4.0) | :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](https://docs.mender.io/devices/integrating-with-u-boot/integration-checklist?target=_blank) has been verified.

# Getting started

## Prerequisites

- A supported Linux distribution and dependencies installed on your workstation/laptop as described in the [Yocto Mega Manual](https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#detailed-supported-distros)
  - NOTE. Instructions depend on which Yocto version you intend to use.

- Google repo tool [installed](https://hub.mender.io/t/google-repo/58/2) and in your `PATH` .

## Configuring the build

### Setup Yocto environment

Set the Yocto Project branch you are building for:

Create a directory for your `mender-toradex` setup to live in and clone the  
meta information.

```auto
mkdir mender-toradex && cd mender-toradex

```

Select the appropriate Toradex BSP version:

```auto
export TORADEX_BSP_VERSION=5.3.0

```

```auto
export TORADEX_BSP_VERSION=5.4.0

```

Initialize repo manifest:

```auto
repo init -u https://git.toradex.com/toradex-manifest.git \
    -b refs/tags/${TORADEX_BSP_VERSION} \
    -m tdxref/default.xml

```

Download mender manifest:

```auto
wget --directory-prefix .repo/local_manifests \
    https://raw.githubusercontent.com/mendersoftware/meta-mender-community/dunfell/scripts/mender-no-setup-layers.xml

```

Fetch layers in manifest:

```auto
repo sync -j$(nproc)
cd .repo/local_manifests/
ln -sf ../../layers/meta-mender-community/scripts/mender-no-setup-layers.xml .
cd ../..

```

## Setup build environment

Initialize the build environment:

```auto
. export

```

Add Mender layers:

```auto
bitbake-layers add-layer $(pwd)/../layers/meta-mender/meta-mender-core/
bitbake-layers add-layer $(pwd)/../layers/meta-mender-community/meta-mender-toradex-nxp/

```

Add optional Mender demo layer:

```auto
# Omit this, if you intend to use this build in production
bitbake-layers add-layer $(pwd)/../layers/meta-mender/meta-mender-demo/

```

Apply Mender configuration to build environment:

```auto
cat ../layers/meta-mender-community/templates/local.conf.append >> conf/local.conf
cat ../layers/meta-mender-community/meta-mender-toradex-nxp/templates/local.conf.append >> conf/local.conf
echo "TORADEX_BSP_VERSION = \"toradex-bsp-${TORADEX_BSP_VERSION}\"" >> conf/local.conf

```

**NOTE!** You need to accept the Freescale EULA at ‘../sources/meta-freescale/EULA’. Please read it and in case you accept it, add:

```auto
ACCEPT_FSL_EULA = "1" 

```

in your local.conf.

### 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](https://docs.mender.io/architecture/standalone-deployments?target=_blank), 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:

```auto
# To get your tenant token:
# - 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>"

```

### Building the image

You can now proceed with building an image:

```auto
MACHINE=colibri-imx6ull bitbake tdx-reference-minimal-image

```

Replace `tdx-reference-minimal-image` with your desired image target.

### Using the build output

After a successful build, the images and build artifacts are:

- `deploy/images/colibri-imx6ull/Colibri-iMX6ULL_Reference-Minimal-Image.mender`
- `deploy/images/colibri-imx6ull/Colibri-iMX6ULL_Reference-Minimal-Image.mender_tezi.tar`

The `.mender_tezi.tar` is used to provision the device storage for devices without Mender running already, and is compatible with the [Toradex Easy Installer](https://developer.toradex.com/software/toradex-easy-installer).

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](https://docs.mender.io/architecture/mender-artifacts?target=_blank) files, which have `.mender` suffix. You can either deploy this Artifact in managed mode with the Mender server (upload it under Releases in the server UI) or by using the Mender client only in [Standalone deployments](https://docs.mender.io/architecture/standalone-deployments?target=_blank).

#### Flash instructions

Refer to the [Toradex Easy Installer](https://developer.toradex.com/software/toradex-easy-installer) instructions for more details.

* * *

_If this post was useful to you, please press like, or leave a thank you note to the contributor who put valuable time into this and made it available to you. It will be much appreciated!_

---

<div class="post-metadata">

**Author:** ![Lars](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@Lars](https://hub.mender.io/u/Lars)\
**Post date:** [June 23, 2022, 1:00pm UTC](https://hub.mender.io/t/toradex-colibri-i-mx6ull/4102/2 "2022-06-23T13:00:34Z")

</div>

Thank you for the description, i tried step by step but get a few errors on bitbake tdx-reference-minimal-image.

WARNING: pseudo-native-1.9.0+gitAUTOINC+b988b0a6b8-r0 do\_fetch: Failed to fetch URL git://git.yoctoproject.org/pseudo;branch=oe-core, attempting MIRRORS if available  
WARNING: libnsl2-native-1.2.0+gitAUTOINC+4a062cf418-r0 do\_fetch: Failed to fetch URL git://github.com/thkukuk/libnsl, attempting MIRRORS if available

ERROR: libnsl2-native-1.2.0+gitAUTOINC+4a062cf418-r0 do\_fetch: Fetcher failure: Fetch command export PSEUDO\_DISABLED=1; export DBUS\_SESSION\_BUS\_ADDRESS=“unix:path=/run/user/1000/bus”; export SSH\_AGENT\_PID=“5306”; export SSH\_AUTH\_SOCK=“/run/user/1000/keyring/ssh”; export  
.  
.  
.  
mender-toradex/build/tmp/hosttools/git", line 26, in   
os.execv(real\_git, sys.argv)  
TypeError: execv: path should be string, bytes or os.PathLike, not NoneType  
ERROR: libnsl2-native-1.2.0+gitAUTOINC+4a062cf418-r0 do\_fetch: Fetcher failure for URL: ‘git://github.com/thkukuk/libnsl’. Unable to fetch URL from any source.  
ERROR: Logfile of failure stored in: /home/lars/git/mender-toradex/build/tmp/work/x86\_64-linux/libnsl2-native/1.2.0+gitAUTOINC+4a062cf418-r0/temp/log.do\_fetch.3335127  
ERROR: Task (virtual:native:/home/XXXX/git/mender-toradex/build/…/layers/openembedded-core/meta/recipes-extended/libnsl/libnsl2\_git.bb:do\_fetch) failed with exit code ‘1’

Do you have any idea what i did wrong ore how to fix it?

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [June 24, 2022, 12:06pm UTC](https://hub.mender.io/t/toradex-colibri-i-mx6ull/4102/3 "2022-06-24T12:06:58Z")

</div>

My best guess is a local networking glitch. I am able to see that github page in my browser so it should be downloadable for you.

Drew
