# Mender on iMx6ULL Toradex for product line

**URL:** https://hub.mender.io/t/mender-on-imx6ull-toradex-for-product-line/2441
**Category:** General Discussions
**Tags:** yocto, nxp, thud
**Created:** [September 14, 2020, 5:40am UTC](https://hub.mender.io/t/mender-on-imx6ull-toradex-for-product-line/2441 "2020-09-14T05:40:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![avrobot](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@avrobot](https://hub.mender.io/u/avrobot)
#### Post date: [September 14, 2020, 5:40am UTC](https://hub.mender.io/t/mender-on-imx6ull-toradex-for-product-line/2441/1 "2020-09-14T05:40:46Z")

</div>

Hi, hopefully someone can help for our new product for us to consider Mender.  
There are two examples for Toradex and Mender and neither of them build for iMX6ULL.  
We would like to use Toradex BSP3.0 LTS Poky based thud 2.6 as the yocto base.

1. [Toradex Colibri iMX7 Dual 512MB / Colibri iMX7 Solo 256MB](https://hub.mender.io/t/toradex-colibri-imx7-dual-512mb-colibri-imx7-solo-256mb/81)

We modify the local.conf for MACHINE colibri\_imx6ull and change all cases of imx7 text in the file to imx6ull.  
_ERROR: u-boot-toradex-2016.11+gitAUTOINC+5c2d46b325-r0 do\_compile: oe\_runmake failed_

1. [https://mender.io/resources/guides-and-how-tos/\_resources/mender-on-toradex](https://mender.io/resources/guides-and-how-tos/_resources/mender-on-toradex)

We clone mender meta’s and add to bb\_layers.conf then build.  
_ERROR: Multiple versions of u-boot-toradex are due to be built (/home/ax1234/yocto/build/…/layers/meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-toradex\_2016.11.bb /home/ax1234/yocto/build/…/layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex\_2019.07.bb)_

Please advise. Thanks.

---

<div class="post-metadata">

### Author: ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)
#### Post date: [September 14, 2020, 1:53pm UTC](https://hub.mender.io/t/mender-on-imx6ull-toradex-for-product-line/2441/2 "2020-09-14T13:53:37Z")

</div>

I think we need something more to go on.  
Can you post ur `local.conf`, and `bblayers.conf` files?  
As well as the versions of each source? (ie, poky, meta-mender?)

---

<div class="post-metadata">

### Author: ![avrobot](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@avrobot](https://hub.mender.io/u/avrobot)
#### Post date: [September 14, 2020, 7:31pm UTC](https://hub.mender.io/t/mender-on-imx6ull-toradex-for-product-line/2441/3 "2020-09-14T19:31:07Z")

</div>

Im using Toradex’s Poky based BSPv3 (based on thud yocto 2.6).  
I’ve added meta-mender layers from rocko into the /layers/ folder.  
Listing of conf files is below.  
And the full error message from “bitbake -k console-tdx-image” is pasted below.

**local.conf**  
BB\_NUMBER\_THREADS ?= “{@oe.utils.cpu\_count()}" PARALLEL\_MAKE ?= "-j {@oe.utils.cpu\_count()}”  
MACHINE ?= “colibri-imx6ull”  
ACCEPT\_FSL\_EULA = “1”  
IMAGE\_INSTALL\_append = " mosquitto paho-mqtt-c nginx"  
#Add For Mender Build…  
INHERIT += “mender-full-ubi”  
DISTRO\_FEATURES\_append = " systemd"  
VIRTUAL-RUNTIME\_init\_manager = “systemd”  
DISTRO\_FEATURES\_BACKFILL\_CONSIDERED = “sysvinit”  
VIRTUAL-RUNTIME\_initscripts = “”  
DL\_DIR ?= “{TOPDIR}/../downloads" UNINATIVE\_DLDIR = "{TMPDIR}/uninative/”  
SSTATE\_DIR ?= “{TOPDIR}/../sstate-cache" DEPLOY\_DIR = "{TOPDIR}/deploy”  
PACKAGE\_CLASSES ?= “package\_ipk”  
EXTRA\_IMAGE\_FEATURES = “debug-tweaks package-management”  
USER\_CLASSES ?= “buildstats image-mklibs image-prelink”  
PATCHRESOLVE = “noop”  
BB\_DISKMON\_DIRS = "  
STOPTASKS,{TMPDIR},1G,100K \ STOPTASKS,{DL\_DIR},1G,100K   
STOPTASKS,{SSTATE\_DIR},1G,100K \ ABORT,{TMPDIR},100M,1K   
ABORT,{DL\_DIR},100M,1K \ ABORT,{SSTATE\_DIR},100M,1K"  
PACKAGECONFIG\_pn-qemu-native = “sdl”  
ASSUME\_PROVIDED += “libsdl-native”  
CONF\_VERSION = “1”  
INHERIT += “rm\_work”  
INHERIT += “toradex-mirrors”  
DISTRO = “tdx-x11”  
DISTRO\_mx8 = “tdx-xwayland”  
include conf/machine/include/${MACHINE}.inc

**bblayers.conf**  
LCONF\_VERSION = “7”  
BBPATH = "{TOPDIR}" BBFILES ?= "" BBLAYERS ?= " \ {TOPDIR}/…/layers/meta-toradex-nxp   
{TOPDIR}/../layers/meta-freescale \ {TOPDIR}/…/layers/meta-freescale-3rdparty   
{TOPDIR}/../layers/meta-toradex-tegra \ {TOPDIR}/…/layers/meta-toradex-bsp-common   
{TOPDIR}/../layers/meta-openembedded/meta-oe \ {TOPDIR}/…/layers/meta-openembedded/meta-filesystems   
{TOPDIR}/../layers/meta-openembedded/meta-gnome \ {TOPDIR}/…/layers/meta-openembedded/meta-xfce   
{TOPDIR}/../layers/meta-openembedded/meta-initramfs \ {TOPDIR}/…/layers/meta-openembedded/meta-networking   
{TOPDIR}/../layers/meta-openembedded/meta-multimedia \ {TOPDIR}/…/layers/meta-openembedded/meta-python   
{TOPDIR}/../layers/meta-openembedded/meta-webserver \ {TOPDIR}/…/layers/meta-lxde   
{TOPDIR}/../layers/meta-browser \ {TOPDIR}/…/layers/meta-qt5   
{TOPDIR}/../layers/meta-qt5-extra \ {TOPDIR}/…/layers/meta-rust   
{TOPDIR}/../layers/meta-freescale-distro \ {TOPDIR}/…/layers/meta-toradex-demos   
{TOPDIR}/../layers/meta-toradex-distro \ {TOPDIR}/…/layers/meta-yocto/meta-poky   
{TOPDIR}/../layers/openembedded-core/meta \ {TOPDIR}/…/layers/meta-mender/meta-mender-core   
{TOPDIR}/../layers/meta-mender/meta-mender-demo \ {TOPDIR}/…/layers/meta-mender/meta-mender-toradex-nxp \

**ERROR:** Multiple versions of u-boot-toradex are due to be built (/home/ubuntu/yocto/build/…/layers/meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-toradex\_2016.11.bb /home/ubuntu/yocto/build/…/layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex\_2019.07.bb). Only one version of a given PN should be built in any given build. You likely need to set PREFERRED\_VERSION\_u-boot-toradex to select the correct version or don’t depend on multiple versions.

---

<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 14, 2020, 9:06pm UTC](https://hub.mender.io/t/mender-on-imx6ull-toradex-for-product-line/2441/4 "2020-09-14T21:06:19Z")

</div>

Just copying the meta-mender layers from rocko is not likely going to work. You’ll need to do a standard integration with this particular BSP/branch. I don’t think any of us have the iMX6ULL Toradex boards so we have not tested this combination.

Drew

---

<div class="post-metadata">

### Author: ![avrobot](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@avrobot](https://hub.mender.io/u/avrobot)
#### Post date: [September 15, 2020, 10:57am UTC](https://hub.mender.io/t/mender-on-imx6ull-toradex-for-product-line/2441/5 "2020-09-15T10:57:17Z")

</div>

Thanks Drew, Can you give any specific pointers on where to start on this integration?  
Not being yocto experts we are a little intimidated by the potential pitfalls here…

Or… Not sure if its an option for us to loan you a Colibri Imx6ULL module if you think that will help?

---

<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 15, 2020, 1:59pm UTC](https://hub.mender.io/t/mender-on-imx6ull-toradex-for-product-line/2441/6 "2020-09-15T13:59:25Z")

</div>

Hi @avrobot our [docs on Yocto integration](https://docs.mender.io/system-updates-yocto-project) are the best place to start.

We do offer [consulting services for custom board integration](https://mender.io/support-and-services/board-integration) if you are interested.

Drew
