-
Notifications
You must be signed in to change notification settings - Fork 893
Open
Description
Hey folks, does mcuboot contain the necessary functionality to determine what the most recent swap type was? In particular, is it possible to ask MCUBoot if the type of the previous swap was REVERT or something?
Here is a scenario.
- My microcontroller is booted from firmware image A in the primary slot.
- Firmware image B is downloaded into the secondary slot.
- MCUBoot swaps A and B.
- Firmware image B is now in the primary slot but fails to boot.
- MCUBoot reverts the swap.
- Firmware image A is now in the primary slot and boots just fine (as before).
- Firmware image A is able to query MCUBoot and then goes, "oh, MCUBoot needed to revert, I'm going to report an OTA failure."
Does MCUBoot contain the necessary functionality to enable step 7? Is this something that would need to be implemented at the OS layer?
My question here largely stems from this comment.
Can anybody offer some insight?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels