Hi,
I need a second partition that should not be touched during update processes. In former projects with TK1 there was a MBR file and it was quite easy to create 2 dedicated ext3 partitions.
What would be the recommended way to achieve this structure with UBIFS/iMX7D?
On raw NAND devices you need to create a new UBI volume for the data partition. The easiest way is to first clear the whole UBI MTD partition to make sure that the update scripts will recreate the UBI volumes:
nand erase.part ubi
Then make sure that the update scripts create a data partition beside the root partition, e.g. by overwriting the prepare_rootfs variable (this creates a 128MB data partition):
run setupdate
setenv prepare_rootfs 'ubi create data 0x8000000 dynamic && ubi create rootfs 0 dynamic'
run update
Then you can mount it from within Linux like this: