Hi,
I have been for a while trying to integrate Mender with a Variscite VAR-SOM-MX8M-MINI running B2Qt based on : Poky 2.5.3, BSP: NXP Sumo, Linux: NXP [imx_4.14.98_2.0.0_ga].
Before trying to integrate Mender, I was able to produce a bootable B2Qt image. Then, I added meta-mender-community and meta-mender layers both from the Sumo branches and followed the regular integration approach (updating local.conf and bblayers.conf for sdcard image).
Right now, the image compiles with 4 partitions; boot, primary, secondary and data. The boot partition is probably not needed, but it contains the kernel as an ‘Image’ type (also running bitbake -e u-boot | grep ‘^KERNEL_IMAGETYPE=’ gives KERNEL_IMAGETYPE=“Image”). However, the board doesn’t boot. Can you please kindly help me find a solution to this problem. Thank you.
local.conf: (mender section only)
INHERIT += “rm_work”
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 = “”
MENDER_STORAGE_TOTAL_SIZE_MB_imx8mm-var-dart = “13312”
MENDER_IMAGE_BOOTLOADER_FILE_imx8mm-var-dart = “imx-boot-imx8mm-var-dart-sd.bin”
MENDER_IMAGE_BOOTLOADER_BOOTSECTOR_OFFSET_imx8mm-var-dart = “66”
MENDER_BOOT_PART_SIZE_MB_imx8mm-var-dart = “16”
IMAGE_FSTYPES_remove = “tar.gz wic.gz wic.bmap mender.bmap sdimg.bmap sdcard.gz”
MENDER_FEATURES_ENABLE_append = " mender-image-sd"
MENDER_FEATURES_DISABLE_append = " mender-grub mender-image-uefi"
MENDER_STORAGE_DEVICE_imx8mm-var-dart = “/dev/mmcblk1”
MENDER_UBOOT_STORAGE_DEVICE_imx8mm-var-dart= “1”
UBOOT_CONFIG_imx8mm-var-dart = “sd”
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = “kernel-image kernel-devicetree”
IMAGE_POSTPROCESS_COMMAND_remove = “do_qbsp_image;”
KERNEL_IMAGETYPE_mender-uboot = “Image”
#MACHINE_EXTRA_RDEPENDS = “u-boot-fw-utils”
#MENDER_BOOT_PART_SIZE_MB_mender-uboot = “16”
u-boot-variscite.bbappend:
require recipes-bsp/u-boot/u-boot-variscite-mender-common.inc
require recipes-bsp/u-boot/u-boot-mender.inc
DEPENDS_append = " bc-native "
KERNEL_DEVICETREE = " freescale/imx8mm-var-dart.dtb"
make_u_boot_spl_image() {
install -m 644 {B}/{config}/{SPL_BINARY} {DEPLOYDIR}/u-boot-spl-{PV}-{PR}.img
rm -f {DEPLOYDIR}/u-boot-spl.img
ln -sf u-boot-spl-{PV}-{PR}.img {DEPLOYDIR}/u-boot-spl.img
dd if={DEPLOYDIR}/u-boot.img of={DEPLOYDIR}/u-boot-spl-{PV}-{PR}.img bs=1K seek=68 conv=notrunc
}
do_deploy_append_var-som-mx6() {
make_u_boot_spl_image
}
do_deploy_append_imx6ul-var-dart() {
make_u_boot_spl_image
}
bitbake u-boot -e | grep ^MENDER_UBOOT_STORAGE_DEVICE gives:
MENDER_UBOOT_STORAGE_DEVICE=“1”
MENDER_UBOOT_STORAGE_DEVICE_DEFAULT=""
MENDER_UBOOT_STORAGE_DEVICE_DEFAULT_mender-ubi=“dummy”
MENDER_UBOOT_STORAGE_DEVICE_imx8mm-var-dart=“1”