Hi everyone!
I’m trying to integrate Mender to a custom board, but without success.
This is the output of bitbake:
| DEBUG: Executing shell function do_provide_mender_defines
| + echo u-boot-imx
| + fgrep mender-auto-provided
| + true
| + expr 1048576 % ( 524288 * 2 )
| + [ 0 -ne 0 ]
| + [ 1048576 -gt 1048576 ]
< | + [ -n ]
| + false
| + get_part_number_from_device /dev/ubi0_0
| + dev_base=unknown
| + printf %d unknown
| + part=0
| + MENDER_ROOTFS_PART_A_NUMBER=
| + bb_exit_handler
| + ret=1
| + echo WARNING: exit code 1 from a shell command.
| WARNING: exit code 1 from a shell command.
| + exit 1
It seems some variables are missing or wrong, but I have no idea which one.
These are the variables I defined. I’m not sure on whether I did all of these correctly as there is little information on the internet about raw flash support; I used thiscolibri-imx7 as a template.
ARTIFACTIMG_FSTYPE = “ubi”
MENDER_BOOT_PART_SIZE_MB ?= “3”
MENDER_DATA_PART_SIZE_MB ?= “200”
MENDER_IMAGE_BOOTLOADER_FILE = “uboot-atk-myimage.bin”
MENDER_MTDIDS ?= “nand0=mxc_nand”
MENDER_MTDPARTS ?= “mxc_nand:512k(SBL1),512k(SBL2),1m(u-boot),1m(u-boot-env),-(ubi),2m(bbt)”
MENDER_NAND_FLASH_PAGE_SIZE ?= “4096”
MENDER_PARTITIONING_OVERHEAD_KB ?= “0”
MENDER_PARTITION_ALIGNMENT ?= “524288”
MENDER_STORAGE_DEVICE ?= “/dev/ubi0”
MENDER_STORAGE_TOTAL_SIZE_MB ?= “2048”
MENDER_UBOOT_ENV_STORAGE_DEVICE_OFFSET ?= “0x200000”
MENDER_UBOOT_STORAGE_DEVICE ?= “0”
MENDER_UBOOT_STORAGE_INTERFACE ?= “ubi”
BOOTENV_SIZE ?= “0x40000”
BOOTENV_RANGE ?= “0x80000”
IMAGE_FSTYPES += “ubi”
Some additional information:
The Yocto version is thud, Mender version 2.2 (as I think this is the default for the thud branch)
It shoud also be noted that a fork of u-boot v15.10 with custom patches to support the processor is used. As the mender patches did not apply to this rather old version of u-boot, I manually applied them.
Maybe someone has a clue what I’m missing? I’d really appreciate some help!