No mcuboot header when secondary - #728
Open
de-nordic wants to merge 3 commits into
Open
Conversation
de-nordic
force-pushed
the
no-mcuboot-header-when-secondary
branch
2 times, most recently
from
August 13, 2026 10:37
b182c9d to
ded261a
Compare
michalek-no
approved these changes
Aug 13, 2026
tomchy
approved these changes
Aug 18, 2026
de-nordic
force-pushed
the
no-mcuboot-header-when-secondary
branch
from
August 18, 2026 14:37
ded261a to
ea715c4
Compare
Add 'auto' parameter to --header-size that calculates minimal required header size needed to store all information in current header version. --header-size has been made optional and if not provided, 'auto' will be assumed. 'auto' should not be used if there is specific alignment of executable required, when image is automatically padded, or when image is already shifted internally to required alignment and proper header size is needed for MCUboot to know where to jump while booting the image. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
Commit adds NCS_KEEP_MCUBOOT_HEADER_IN_SECONDARY_MCUBOOT Kconfig, default y, that controls whether MCUboot will keep MCUboot image header while moving update to s0/s1 slot. This allows to reduce siez of image in transfer, as smalles possible header can be used without alignment to VTOR, and allows more space for s0/s1 binary image. The option is by default set to y, so users do not have to change anything in existing configurations. Note that setting this option to n will create MCUboot image that can not be used to update secondary MCUboot instances built prior to the option existence and these with the option set to y. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
Use CONFIG_ROM_START_OFFSET to set CONFIG_NCS_MCUBOOT_DISABLE_SELF_RWX_SKIP_SIZE, instead of hardcoding it for nRF54L. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
de-nordic
force-pushed
the
no-mcuboot-header-when-secondary
branch
from
August 21, 2026 13:28
ea715c4 to
79021ce
Compare
|
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.



Add NCS_KEEP_MCUBOOT_HEADER_IN_SECONDARY_MCUBOOT option that allows to control whether MCUboot will copy MCUboot image header with MCUboot image update to s0/s1 slot.
Depends on:
#725
manifest-pr-skip