-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boot: add new copy with revert algorithm
This algorithm uses three flash partitions to copy images to primary slot without swap mechanism. This way much faster update process can be achieved but more space on flash has to be allocated. This is basically trade off between update speed and flash space taken for boot process. The algorithm always keeps recovery image in either secondary or tertiary slot and lets the user upload update image to the other one. Once image is updated and confirmed, update slot is marked as recovery (the image is already there uploaded by the user) and old recovery is marked as new update -> user will upload new image there. This means there are no writes to ota1 and ota2 partitions during boot process except and therefore there is no speed limitation if usually slower (compared to embedded flash) external NOR flash is used for these partitions. The only exception is first update process where bootloader has to create recovery image. Overall, this algorithm allows to achieve the speed of overwrite only algorithm while retaining the revert/recovery option. It is especially useful for devices with larger images and a lot of free space on external flash. Signed-off-by: Michal Lenc <[email protected]>
- Loading branch information
1 parent
460bea2
commit f8ec621
Showing
9 changed files
with
785 additions
and
19 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
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
Oops, something went wrong.