I’ve tried several branched with the same result [ Rocko, Rocko-Next as well as Thud-next “LinuxImage3.0-next” ]
I’ve done the following changes to the default layer I’ve added Meta-Mender from menders own git into the layers directory
[ local.conf ]
Changed the machine to my current card
MACHINE ?= "colibri-imx6ull"
Made the project inherit mender-full-ubi which is required for flash storage devices.
INHERIT += " mender-full"
INHERIT += " mender-full-ubi"
Accepts EULA
ACCEPT_FSL_EULA = "1"
Sets required mender features, it compiles fine with grub but gets the above mentioned failure
when enabling -uboot and -ubi
MENDER_FEATURES_ENABLE_append = " mender-uboot mender-image-ubi"
MENDER_FEATURES_DISABLE_append = " mender-grub mender-image-sd mender-image-uefi"
Sets artifact name
MENDER_ARTIFACT_NAME = "mender1"
Sets storage device, mtd requires -ubi as I want to use the internal flash as storage device.
MENDER_STORAGE_DEVICE = "/dev/mtd"
MENDER_STORAGE_TOTAL_SIZE_MB = "512"
I’ve just followed the tutorial on this point.
MENDER_BOOT_PART_SIZE_MB ?= "16"
MENDER_DATA_PART_SIZE_MB ?= "64"
IMAGE_FSTYPES_append = " dataimg"
This is required for -ubi mode but not sure if this is correct.
MENDER_MTDIDS = "nand0=gpmi-nand.flash"
Prefered provider u-boot-toradex
PREFERRED_PROVIDER_u-boot-fw-utils = "u-boot-toradex-fsl-fw-utils"
PREFERRED_RPROVIDER_u-boot-fw-utils = "u-boot-toradex-fsl-fw-utils"
[ bblayer.conf ]
I have also added this line to apply mender-core
${TOPDIR}/../layers/meta-mender/meta-mender-core \
[ bitbake ]
I have tried for trying out purposes, I also have my custom layer but it’s based on the console-tdx-image
MACHINE=colibri-imx6ull bitbake console-tdx-image
bitbake console-tdx-image
If there is anything more you need I’ll gladly provide you with more information!
With best regards
Martin Sjödin Jonsson