Skip to content

Conversation

@TomLier
Copy link

@TomLier TomLier commented Nov 19, 2025

… 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.

… 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.

Signed-off-by: LIERMAN Tom<[email protected]>
@TomLier TomLier force-pushed the bugfix/incorrect_copy_size_when_bootstrapping_and_swap_using_move branch from dbe1aa6 to 2cd598b Compare November 19, 2025 13:10
}

#if defined(MCUBOOT_SWAP_USING_MOVE)
/* When using MCUBOOT_SWAP_USING_MOVE, primary region is larger then the secondary region
Copy link
Collaborator

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

@nordicjm
Copy link
Collaborator

and fix commit sign off for CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants