IMX8DXL Mender integration of yocto4.0

I am using IMX8DXL platform , succesfully build the yocto but unable to boot in the board and also below is the log attached we are getting .

Hi @tanushree.chandrashe,

Without knowing the board in question or how the integration looks like, its hard to give advice. Guessing, I would say that the Mender integration needs to be aligned with the specific boot scripts in u-boot.

Greetz,
Josef

Hi
I am trying to integrate mender on IMX8DXL.I have correctly 4 partitions and everything seems to be in place. but result was once it flashed booting is correctly when i powerd off and on then its not booting untill the next flash.
This is the build configuration
BB_VERSION = “2.0.0”
BUILD_SYS = “x86_64-linux”
NATIVELSBSTRING = “universal”
TARGET_SYS = “aarch64-poky-linux”
MACHINE = “imx8dxl-iwg46s”
DISTRO = “fsl-imx-xwayland”
DISTRO_VERSION = “5.15-kirkstone”
TUNE_FEATURES = “aarch64 armv8a crc crypto”

below is the machine configuration file
MENDER_STORAGE_DEVICE_DEFAULT = “/dev/mmcblk0”
MENDER_STORAGE_DEVICE_DEFAULT = “/dev/mmcblk0”
MENDER_STORAGE_DEVICE_BASE = “/dev/mmcblk0p”
MENDER_STORAGE_TOTAL_SIZE_MB = “8192”
MENDER_BOOT_PART_SIZE_MB = “0”
MENDER_DATA_PART_SIZE_MB = “128”
MENDER_ROOTFS_PART_A = “${MENDER_STORAGE_DEVICE_BASE}1”
MENDER_ROOTFS_PART_B = “${MENDER_STORAGE_DEVICE_BASE}2”
MENDER_DATA_PART = “${MENDER_STORAGE_DEVICE_BASE}3”
MENDER_PERSISTENT_CONFIGURATION_VARS = “RootfsPartA RootfsPartB”
MENDER_UBOOT_ENV_STORAGE_DEVICE_OFFSET_1 = “0x2000”

Redundant environment

MENDER_UBOOT_ENV_STORAGE_DEVICE_OFFSET_2 = “0x4000”
BOOTENV_SIZE = “0xE0000”
MENDER_UBOOT_PRE_SETUP_COMMANDS = “setenv kernel_addr_r ${loadaddr}; setenv bootargsconsole=ttyLP0,115200; setenv fdt_addr_r 0x83000000”
MENDER_SERVER_URL = “https://hosted.mender.io

This is the log when i bitbake the u-boot
Applying patch 0003-Integration-of-Mender-boot-code-into-U-Boot.patch
patching file include/env_default.h
Hunk #1 succeeded at 14 with fuzz 2 (offset 4 lines).
Hunk #2 succeeded at 30 (offset 4 lines).
patching file scripts/Makefile.autoconf
Hunk #1 succeeded at 109 (offset 1 line).

Applying patch 0004-Disable-CONFIG_BOOTCOMMAND-and-enable-CONFIG_MENDER_.patch
patching file include/env_default.h
Hunk #1 succeeded at 41 with fuzz 2 (offset 4 lines).

The context lines in the patches can be updated with devtool:

devtool modify u-boot-imx
devtool finish --force-patch-refresh u-boot-imx <layer_path>

Don’t forget to review changes done by devtool!

WARNING: u-boot-imx-2022.04-r0 do_patch: QA Issue: Patch log indicates that patches do not apply cleanly. [patch-fuzz]
WARNING: core-image-minimal-1.0-r0 do_image_sdimg: MENDER_BOOT_PART_SIZE_MB is set to zero, but IMAGE_BOOT_FILES is not empty. The files are being omitted from the image.

REMAINDER!!!
Hi,
I observed above issue is there any specific patch for IMX8DXL i referred mender layer is IMX6ULL .