-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for slots with different sector sizes
This adds bootutil support for slots on different flash devices the happen to have different sector sizes. It consists basically in relaxing the `boot_slots_compatible` to allow swaps as long as the sectors that are required to fit both images are able to fit inside scratch and both slot's sectors have sizes that are multiple of each other. This is now tested on the simulator and was tested in a Nordic's pca10056 using slot0 in internal flash, and slot1 in the external QSPI flash, configured with 4K, 8K and 16K sized sectors (the HW is 4KB but Mynewt allows emulating multiples of that!) Signed-off-by: Fabio Utzig <utzig@apache.org>
- Loading branch information
Showing
2 changed files
with
121 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters