Repository navigation
boot: bootutil: loader: Fix issue with stuck revert - #2199
Merged
Merged
Conversation
nordicjm
commented
Feb 10, 2025
Collaborator
Fixes an issue (only for swap using move, unsure if it affects other modes) whereby a device can get into a state that there is a valid primary image, no secondary image but the primary image flag is still set to revert, which then makes loading a firmware update from the application impossible due to it assuming that a revert will happen upon device reboot Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Adds a note on this fix Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
de-nordic
approved these changes
Feb 11, 2025
de-nordic
reviewed
Feb 11, 2025
| boot_swap_type_multi(BOOT_CURR_IMG(state)) == BOOT_SWAP_TYPE_REVERT) { | ||
| const struct flash_area *fap_pri; | ||
|
|
||
| rc = flash_area_open(flash_area_id_from_multi_image_slot(BOOT_CURR_IMG(state), |
Collaborator
There was a problem hiding this comment.
I guess that flash_area_id_from_multi_image_slot returning -1 never happens here.
Collaborator
Author
There was a problem hiding this comment.
would be a very interesting flash setup heh
neilberkman
added a commit
to neilberkman/mcuboot
that referenced
this pull request
Mar 13, 2026
Add a post-merge CI workflow that builds MCUboot in one representative swap-using-move configuration and runs a tardigrade fault-injection sweep across the upgrade path. Catches regressions in the mcu-tools#2100/mcu-tools#2199 class where a power cut during swap leaves the device bricked or booting the wrong image. Signed-off-by: Neil Berkman <neil@xuku.com>
neilberkman
added a commit
to neilberkman/mcuboot
that referenced
this pull request
Jul 17, 2026
Two tardigrade sweeps on nrf52840dk/nrf52840 with Zephyr pinned to v3.7.0: power loss across the v1->v2 swap-move upgrade, and power loss across the revert of a completed-but-unconfirmed upgrade, the failure class of issue mcu-tools#1966 (PR mcu-tools#2100) and PR mcu-tools#2199. The tardigrade action is pinned by full commit SHA; that revision pins Renode to a versioned release archive verified by SHA-256 before extraction, runs with strict profile validation, and resolves profile assets only inside the caller workspace. The platform description is fetched from the same pinned revision. Signed-off-by: Neil Berkman <neil@xuku.com>
neilberkman
added a commit
to neilberkman/mcuboot
that referenced
this pull request
Jul 17, 2026
Two tardigrade sweeps on nrf52840dk/nrf52840 with Zephyr pinned to v3.7.0: power loss across the v1->v2 swap-move upgrade, and power loss across the revert of a completed-but-unconfirmed upgrade, the failure class of issue mcu-tools#1966 (PR mcu-tools#2100) and PR mcu-tools#2199. The tardigrade action is pinned by full commit SHA; that revision pins Renode to a versioned release archive verified by SHA-256 before extraction, runs with strict profile validation, and resolves profile assets only inside the caller workspace. The platform description is fetched from the same pinned revision. Signed-off-by: Neil Berkman <neil@xuku.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.