Replies: 1 comment 2 replies
-
Just an update. I think it is not that easy as for some compatibility checks, the information of each sector is required. This is obtained via the page layout flash api. The page layout implementation is not defined in the device tree but in the driver of the flash memory. Hence this might not be practical. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was wondering if the current state of MCUBoot allows to statically verify that the defined partitions (e.g. slot0, slot1) are compatible.
Currently if a user mistakenly gives less space to a partition, or flash layout is not compatible then MCUBoot will not do upgrades. This can be checked if logging is enabled and sent an image (confirm) over mcumgr.
As far as I understand the dynamic check is done here (swap strategy)
https://github.com/zephyrproject-rtos/mcuboot/blob/fb2cf0ec3da3687b93f28e556ab682bdd4b85223/boot/bootutil/src/swap_move.c#L260
Would it be possible to do the same over cmake or python?
Beta Was this translation helpful? Give feedback.
All reactions