Hello,
I have an image based on the latest Toradex BSP (3.0b3) which uses Poky and Yocto Thud which is installed using the Toradex Easy Installer. This image worked fine so I moved on integrating Mender 2.3 into it.
There is an example board integration for the Toradex iMX7 so I based mine off that, adding the following to my local.conf:
INHERIT_append = " mender-full-ubi "
INHERIT_append_colibri-imx6ull += " toradex_image_json "
MENDER_MTDIDS = "nand0=gpmi-nand"
MENDER_MTDPARTS = "gpmi-nand:512k(mx6ull-bcb),1536k(u-boot1)ro,1536k(u-boot2)ro,512k(u-boot-env),-(ubi)"
MENDER_ARTIFACT_NAME = "xpac-mender"
IMAGE_FSTYPES_remove = "mtdimg"
BOOTENV_SIZE_colibri-imx6ull ?= "0x18000"
BOOTENV_RANGE_colibri-imx6ull ?= "0x40000"
MENDER_STORAGE_PEB_SIZE_colibri-imx6ull = "131072"
MENDER_STORAGE_TOTAL_SIZE_MB_colibri-imx6ull = "512"
IMAGE_ROOTFS_MAXSIZE_colibri-imx6ull = "307200"
Because Toradex uses their own fork of u-boot and Linux, I set MENDER_UBOOT_AUTO_CONFIGURE = ā0ā and manually applied the patches as well.
The build finished successfully and resulted in a .ubimg file. I flashed this using the Toradex Easy Installer, which I believe normally mounts the ubifs volumes and intelligently copies the data, but the iMX7 example did it this way so I did the same:
"mtddevs": [
{
"name": "u-boot1",
"content": {
"rawfile": {
"filename": "u-boot-nand.imx",
"size": 1
}
}
},
{
"name": "u-boot2",
"content": {
"rawfile": {
"filename": "u-boot-nand.imx",
"size": 1
}
}
},
{
"name": "u-boot-env",
"content": {
"rawfile": {
"filename": "uboot.env",
"size": 1
}
}
},
{
"name": "ubi",
"content": {
"rawfile": {
"filename": "XPAC-Image-colibri-imx6ull.ubimg",
"size": "196"
}
}
}
]
After it flashes successfully I reset the device and it appears to boot fine at first, but then will constantly start complaining about ECC errors: https://gist.github.com/Goz3rr/3999148383d5aa9ed608316b1cc3b98a
If I then reset the module once more, it refuses to boot completely and gets stuck in uboot: https://gist.github.com/Goz3rr/97c4fbf69991e4a8c1c8a3ee5bd96118
The only thing that stands out to me is that the ubifs max/mean erase counters were reset to 0, where they were 100+ before and retained after flashing an image using TEZI. Iām assuming the flash itself is fine because if I flash the old image without mender back everything works again, so Iām not sure what Iām doing wrong