# i.MX6 Custom Board

**URL:** <https://hub.mender.io/t/i-mx6-custom-board/1015>\
**Category:** General Discussions\
**Tags:** yocto, nxp\
**Created:** [September 13, 2019, 12:37pm UTC](https://hub.mender.io/t/i-mx6-custom-board/1015 "2019-09-13T12:37:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![aagamjain](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@aagamjain](https://hub.mender.io/u/aagamjain)\
**Post date:** [September 13, 2019, 12:37pm UTC](https://hub.mender.io/t/i-mx6-custom-board/1015/1 "2019-09-13T12:37:03Z")

</div>

I am building my custom board based on i.MX6UL NXP Chipset.  
I am trying to integrate with Mender Version 2.1, where I have followed instruction for the board integration as per link [https://docs.mender.io/2.1/devices](https://docs.mender.io/2.1/devices).

I am getting below error while building artifacts, I am not able to build .uefiimg  
.sdimg or .biosimg.

Errors are as mentioned.

```auto

============================================================================
ParseError at /home/trunexa-00008/Nilima/new4.1.15/sources/poky/meta-mender/meta-mender-core/recipes-mender/mender/mender.inc:22: Could not inherit file classes/go.bbclass

ERROR: /home/trunexa-00008/Nilima/new4.1.15/sources/poky/meta-mender/meta-mender-core/recipes-testing/mender-test-dependencies/mender-test-dependencies_1.0.bb: Error executing a python function in <code>:

The stack trace of python calls that resulted in this exception/failure was:

File: '<code>', lineno: 3, function: <module>

     0001: __anon_25__ home_trunexa_00008_Nilima_new4_1_15_sources_poky_meta_conf_machine_include_arm_feature_arm_thumb_inc(d)

     0002: __anon_647__ home_trunexa_00008_Nilima_new4_1_15_sources_poky_meta_classes_base_bbclass(d)

 *** 0003: __anon_256__ home_trunexa_00008_Nilima_new4_1_15_sources_poky_meta_mender_meta_mender_core_classes_mender_setup_bbclass(d)

     0004: __anon_280__ home_trunexa_00008_Nilima_new4_1_15_sources_poky_meta_mender_meta_mender_core_classes_mender_setup_bbclass(d)

     0005: __anon_19__ home_trunexa_00008_Nilima_new4_1_15_sources_poky_meta_mender_meta_mender_core_classes_mender_setup_image_inc(d)

     0006: __anon_157__ home_trunexa_00008_Nilima_new4_1_15_sources_poky_meta_mender_meta_mender_core_classes_mender_setup_image_inc(d)

     0007: __anon_1319__ home_trunexa_00008_Nilima_new4_1_15_sources_poky_meta_classes_insane_bbclass(d)

File: '/home/trunexa-00008/Nilima/new4.1.15/sources/poky/meta-mender/meta-mender-core/classes/mender-setup.bbclass', lineno: 229, function: __anon_256__ home_trunexa_00008_Nilima_new4_1_15_sources_poky_meta_mender_meta_mender_core_classes_mender_setup_bbclass

     0225: 'mender-partuuid',

     0226: }

     0227:

     0228: mfe = d.getVar('MENDER_FEATURES_ENABLE')

 *** 0229: mfe = mfe.split() if mfe is not None else []

     0230: mfd = d.getVar('MENDER_FEATURES_DISABLE')

     0231: mfd = mfd.split() if mfd is not None else []

     0232: for feature in mfe + mfd:

     0233: if not feature.startswith('mender-'):

Exception: TypeError: getVar() takes at least 3 arguments (2 given)
================================================================

```

Edit: @mirzak: formatting

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [September 13, 2019, 12:40pm UTC](https://hub.mender.io/t/i-mx6-custom-board/1015/2 "2019-09-13T12:40:14Z")

</div>

Which version of Yocto are using and which branch of `meta-mender`?

This indicates that you are missing `go` support in your Yocto environment,

```auto
ParseError at /home/trunexa-00008/Nilima/new4.1.15/sources/poky/meta-mender/meta-mender-core/recipes-mender/mender/mender.inc:22: Could not inherit file classes/go.bbclass

```

---

<div class="post-metadata">

**Author:** ![aagamjain](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@aagamjain](https://hub.mender.io/u/aagamjain)\
**Post date:** [September 13, 2019, 12:45pm UTC](https://hub.mender.io/t/i-mx6-custom-board/1015/3 "2019-09-13T12:45:41Z")

</div>

I am using git://github.com/mendersoftware/meta-mender for meta-mender and git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-4.1-krogoth -m imx-  
4.1.15-2.0.3.xml for Yacto build.

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [September 13, 2019, 12:49pm UTC](https://hub.mender.io/t/i-mx6-custom-board/1015/4 "2019-09-13T12:49:40Z")

</div>

Keep in mind that you would need to use,

```auto
git clone https://github.com/mendersoftware/meta-mender.git -b krogoth

```

You also need to go back and use the 1.0 version of our documentation,

```
https://docs.mender.io/1.0/artifacts/building-mender-yocto-image

```

Keep in mind that `krogoth` is a very old Yocto release which is not maintained and same with `meta-mender` when it comes to these older branches.

---

<div class="post-metadata">

**Author:** ![aagamjain](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@aagamjain](https://hub.mender.io/u/aagamjain)\
**Post date:** [September 16, 2019, 11:58am UTC](https://hub.mender.io/t/i-mx6-custom-board/1015/5 "2019-09-16T11:58:20Z")

</div>

The error was resolved after changing the setup. But with new setup I am still not able to build my img.  
I am getting following errors.

```
> ERROR: /home/trunexa-00008/Nilima/new4.1.15/sources/meta-fsl-arm/recipes-fsl/images/fsl-image-mfgtool-initramfs.bb: No IMAGE_CMD defined for IMAGE_FSTYPES entry 'mender' - possibly invalid type name or missing support class
> ERROR: Failed to parse recipe: /home/trunexa-00008/Nilima/new4.1.15/sources/meta-fsl-arm/recipes-fsl/images/fsl-image-mfgtool-initramfs.bb

```

This is related to INHERIT += “mender-full” in conf file. If I comment the same, I am able to build my binaries but it does not have anything for mender.

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [September 16, 2019, 1:31pm UTC](https://hub.mender.io/t/i-mx6-custom-board/1015/6 "2019-09-16T13:31:04Z")

</div>

Yeah, this relates to an on-going PR actually,

[https://github.com/mendersoftware/meta-mender/pull/803/commits/5d676a7efd2f7bfc72ff5da2176609f2b0ee5ce4](https://github.com/mendersoftware/meta-mender/pull/803/commits/5d676a7efd2f7bfc72ff5da2176609f2b0ee5ce4)

But the fix is to ensure that `mender` entry is removed from `IMAGE_FSTYPES` for `fsl-image-mfgtool-initramfs.bb`, which you can do with a `fsl-image-mfgtool-initramfs.bbappend`.

---

<div class="post-metadata">

**Author:** ![nilima.chandratre](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@nilima.chandratre](https://hub.mender.io/u/nilima.chandratre)\
**Post date:** [September 18, 2019, 7:27am UTC](https://hub.mender.io/t/i-mx6-custom-board/1015/7 "2019-09-18T07:27:23Z")

</div>

Hi,  
Now again next error is as below.  
WARNING: Duplicate inclusion for /home/trunexa-00008/Nilima/new4.1.15/sources/poky/meta-mender/meta-mender-core/recipes-bsp/u-boot/u-boot-fw-utils-mender.inc in /home/trunexa-00008/Nilima/new4.1.15/sources/poky/meta-mender/meta-mender-core/recipes-bsp/u-boot/u-boot-fw-utils\_%.bbappend  
ERROR: u-boot-fw-utils-v2016.03+gitAUTOINC+df61a74e68-r0 do\_compile: oe\_runmake failed  
ERROR: u-boot-fw-utils-v2016.03+gitAUTOINC+df61a74e68-r0 do\_compile: Function failed: do\_compile (log file is located at /home/trunexa-00008/Nilima/new4.1.15/build/tmp/work/imx6\_i-poky-linux-gnueabi/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/temp/log.do\_compile.27404)  
ERROR: Logfile of failure stored in: /home/trunexa-00008/Nilima/new4.1.15/build/tmp/work/imx6\_i-poky-linux-gnueabi/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/temp/log.do\_compile.27404

---

<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 18, 2019, 5:42pm UTC](https://hub.mender.io/t/i-mx6-custom-board/1015/8 "2019-09-18T17:42:30Z")

</div>

Please post the contents of

> [@nilima.chandratre](#):
>
> /home/trunexa-00008/Nilima/new4.1.15/build/tmp/work/imx6\_i-poky-linux-gnueabi/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/temp/log.do\_compile.27404

---

<div class="post-metadata">

**Author:** ![nilima.chandratre](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@nilima.chandratre](https://hub.mender.io/u/nilima.chandratre)\
**Post date:** [September 19, 2019, 6:46am UTC](https://hub.mender.io/t/i-mx6-custom-board/1015/9 "2019-09-19T06:46:13Z")

</div>

DEBUG: Executing shell function do\_compile  
NOTE: make -j 4 CROSS\_COMPILE=arm-poky-linux-gnueabi- CC=arm-poky-linux-gnueabi-gcc -march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/trunexa-00008/Nilima/new4.1.15/build/tmp/sysroots/imx6-i -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/trunexa-00008/Nilima/new4.1.15/build\_i/tmp/work/imx6\_i-poky-linux-gnueabi/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0=/usr/src/debug/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0 -fdebug-prefix-map=/home/trunexa-00008/Nilima/new4.1.15/build\_i/tmp/sysroots/x86\_64-linux= -fdebug-prefix-map=/home/trunexa-00008/Nilima/new4.1.15/build\_i/tmp/sysroots/imx6-i= -Wl,-O1 -Wl,–hash-style=gnu -Wl,–as-needed V=1 mx6\_iwg18m\_sm\_defconfig  
make -f ./scripts/Makefile.build obj=scripts/basic  
rm -f .tmp\_quiet\_recordmcount  
make -f ./scripts/Makefile.build obj=scripts/kconfig mx6\_iwg18m\_sm\_defconfig  
scripts/kconfig/conf --defconfig=arch/…/configs/mx6\_iwg18m\_sm\_defconfig Kconfig

* * *

\*\*\* Can’t find default configuration “arch/…/configs/mx6\_iwg18m\_sm\_defconfig”!

* * *

make[1]: \*\*\* [mx6\_iwg18m\_sm\_defconfig] Error 1  
make: \*\*\* [mx6\_iwg18m\_sm\_defconfig] Error 2  
ERROR: oe\_runmake failed  
ERROR: Function failed: do\_compile (log file is located at /home/trunexa-00008/Nilima/new4.1.15/build\_i/tmp/work/imx6\_i-poky-linux-gnueabi/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/temp/log.do\_compile.27404)

---

<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 19, 2019, 2:26pm UTC](https://hub.mender.io/t/i-mx6-custom-board/1015/10 "2019-09-19T14:26:47Z")

</div>

It seems that something is wrong with your BSP machine configuration. Somewhere it is specifying UBOOT\_MACHINE=“mx6\_iwg18m\_sm\_defconfig” or something similar and that defconfig doesn’t exist in the version of UBoot being used. Either the name of the defconfig needs to be updated or a different version/branch of UBoot should be used.

---

<div class="post-metadata">

**Author:** ![aagamjain](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@aagamjain](https://hub.mender.io/u/aagamjain)\
**Post date:** [September 20, 2019, 8:51am UTC](https://hub.mender.io/t/i-mx6-custom-board/1015/11 "2019-09-20T08:51:12Z")

</div>

> [@drewmoseley](#):
>
> UBOOT\_MACHINE

Any possibilities if we can disable the uboot as of now ? How we can do so ?

---

<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 20, 2019, 2:36pm UTC](https://hub.mender.io/t/i-mx6-custom-board/1015/12 "2019-09-20T14:36:09Z")

</div>

To what end? You won’t have a bootable image without building Uboot.
