i.MX6 Custom Board

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.

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

Errors are as mentioned.


============================================================================
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

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

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

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

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.

Keep in mind that you would need to use,

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.

1 Like

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.

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

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.

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

Please post the contents of

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)

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.

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

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