-
Notifications
You must be signed in to change notification settings - Fork 856
fix(bootutil): correct copy size when bootstrapping and swapping with… #2553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix(bootutil): correct copy size when bootstrapping and swapping with… #2553
Conversation
dbe1aa6 to
2cd598b
Compare
boot/bootutil/src/loader.c
Outdated
| } | ||
|
|
||
| #if defined(MCUBOOT_SWAP_USING_MOVE) | ||
| /* When using MCUBOOT_SWAP_USING_MOVE, primary region is larger then the secondary region |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adjust commit title to: boot: bootutil: loader: Fix bootstrap copying in swap move mode
|
and fix commit sign off for CI |
2cd598b to
1b3ed63
Compare
1b3ed63 to
a77cba9
Compare
a77cba9 to
70e243b
Compare
|
@TomLier we rebased to fix a CI change and fixed an incorrect define being used in an attempt to get this into the 2.3 release but it seems your changes break CI due to writing to an unerased page on https://github.com/mcu-tools/mcuboot/actions/runs/20139212331/job/57801476343?pr=2553 can you take a look at fix? |
Previously, the copy size was calculated using the primary region size, which could be larger than the secondary region. This fix ensures that the size of the secondary region (excluding the swap sector) is used, preventing over-copying and related issues during image upgrade or bootstrap operations. Signed-off-by: LIERMAN Tom <[email protected]> Signed-off-by: David Brown <[email protected]> Signed-off-by: Jamie McCrae <[email protected]>
70e243b to
6ab6adb
Compare
… MOVE
Previously, the copy size was calculated using the primary region size, which could be larger than the secondary region. This fix ensures that the size of the secondary region (excluding the swap sector) is used, preventing over-copying and related issues during image upgrade or bootstrap operations.