Apalis i.mx8 builds but no working OS

Issues with meta-mender Integration on Yocto (Toradex Apalis-i.mx8)
Hello,

I’m trying to add meta-mender to my Yocto project using the Toradex Apalis-i.mx8. Initially, I encountered many issues related to patches failing during the build process. To work around these, I downgraded to BSP 6.2.0—which aligns with the latest branch for meta-mender-toradex-nxp.

Problem Description
After building the image and flashing it, I consistently get a black screen. There was one instance where the board booted successfully, but it has failed every time since. I suspect it might be stuck in a permanent reboot cycle, but I’m not certain what I’m doing wrong.

The one or two times were it worked i found that all the mender settings were fine.

Configuration Details
Below is the relevant section from my local.conf:

TORADEX_BSP_VERSION = “toradex-bsp-6.2.0”
MENDER_ARTIFACT_NAME = “release-1”
INHERIT += “mender-full”
DISTRO_FEATURES:append = " systemd"
VIRTUAL-RUNTIME_init_manager = “systemd”
DISTRO_FEATURES_BACKFILL_CONSIDERED = “sysvinit”
VIRTUAL-RUNTIME_initscripts = “”

INHERIT += “mender-toradex”

MENDER_FEATURES_ENABLE:append = " mender-uboot mender-image-sd"
MENDER_FEATURES_DISABLE:append = " mender-grub mender-image-uefi"

IMAGE_CLASSES += “image_type_mender_tezi”
IMAGE_FSTYPES:append = " mender_tezi"
IMAGE_FSTYPES:remove = " teziimg"
KERNEL_IMAGETYPE:aarch64:mender-grub = “Image”
IMAGE_BOOT_FILES:remove:mender-grub = “boot.scr-verdin-imx8mm;boot.scr”
IMAGE_BOOT_FILES:remove:mender-uboot = “zImage ${KERNEL_DEVICETREE} overlays.txt overlays/*;overlays/”

Settings for apalis-imx8

MENDER_IMAGE_BOOTLOADER_BOOTSECTOR_OFFSET:apalis-imx8 = “0”
MENDER_BOOT_PART_SIZE_MB:apalis-imx8 = “32”
OFFSET_SPL_PAYLOAD:apalis-imx8 = “”
MENDER_STORAGE_DEVICE:apalis-imx8 = “/dev/mmcblk0”
MENDER_STORAGE_TOTAL_SIZE_MB:apalis-imx8 = “4096”
#KERNEL_DEVICETREE:apalis-imx8 = “freescale/imx8qm-apalis-v1.1-ixora-v1.2.dtb”

MENDER_UBOOT_POST_SETUP_COMMANDS:append = " ; setenv tdxargs ${tdxargs} ${bootargs}; "
MENDER_UBOOT_POST_SETUP_COMMANDS:append = " ; setenv overlays_file /boot/overlays.txt ; setenv overlays_prefix boot/overlays/ "

#IMAGE_INSTALL:append = " mender-client"

I also have some configuration in my .bb that I’m bitbaking, but I don’t believe it is affecting the Mender behavior.

Any help or guidance would be greatly appreciated.

Thank you!