For context: I want a second mini
/data-style partition which is empty on initial build, and can be flashed separately to the main image. This will contain files specific to each individual device, e.g. certificate/ keys. If you can think of a better way - but without a TPM - then please let me know.
I am developing for a Jetson Xavier NX (eMMC) using Yocto, on Dunfell v2021.10. As an experiment, I took my existing working build, and added this to local.conf:
MENDER_EXTRA_PARTS = "part1" MENDER_EXTRA_PARTS[part1] = "--label=static --fstype=ext4" MENDER_EXTRA_PARTS_SIZES_MB[part1] = "8" MENDER_EXTRA_PARTS_FSTAB[part1] = "ext4 defaults 0 0"
After flashing the image, the device fails to boot, with the following dmesg output appearing a few times:
EXT4-fs (mmcblk0p4): VFS: Can’t find ext4 filesystem
I have a couple of questions around this:
- Should that be code be enough to create a new, functional partition? If so, could someone offer some suggestions on how to resolve it? Otherwise, what is the minimum that’s required to achieve this?
- Assuming p4 is my new partition, does that mean it replaces the default
/datapartition, so I’d have to create two partitions using
I am familiar-ish with Yocto but haven’t had to dig into it that much until now.
Thanks in advance.