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