Bad ext4 superblock offset after updating i.MX6ULL EVK demo to Zeus

Hi, I’m proceeding to integrate the Mender client into our existing Yocto build for our custom iMX6ULL board. We’re using Zeus, so the first step is to update brianPTL’s iMX6ULL integration to Zeus on the IMX6ULL EVK. I got everything patched and built, but when I boot it up on the EVK, it fails to mount the /data partition. I found that the ext4 superblock is at offset 0x0800400 in /dev/mmcblk1p4 (instead of the expected 0x400).

  sh-5.0# hexdump /dev/mmcblk1p4|more

   0000000 0000 0000 0000 0000 0000 0000 0000 0000
   *
   0800400 8000 0000 0000 0002 1999 0000 d9c1 0001
   0800410 7ff1 0000 0001 0000 0000 0000 0000 0000
   0800420 2000 0000 2000 0000 0800 0000 0000 0000
   0800430 6d05 5ed9 0000 ffff ef53 0000 0001 0000
   0800440 6d02 5ed9 0000 0000 0000 0000 0001 0000
   0800450 0000 0000 000b 0000 0080 0003 003c 0000
   0800460 0242 0000 007b 0000 629a 34ea f95c d848
   0800470 19a7 1eed 669a 5ce9 6164 6174 0000 0000
   0800480 0000 0000 0000 0000 0000 0000 0000 0000

Does anyone have an idea about what could be mis-configured to cause this?

Thanks,

Stu

@drewmoseley Can you point me to the place where the /data partition is formatted?

Thanks,

Stu

Hi @sjuengst

The primary creation of the data image file is here. The general image creation class is here.

Drew