Skip to content

[Backport ncs-v3.4-branch] [nrf noup] boot/bootutil/loader: image discovery by ih_load_address#681

Open
NordicBuilder wants to merge 2 commits into
ncs-v3.4-branchfrom
backport-680-to-ncs-v3.4-branch
Open

[Backport ncs-v3.4-branch] [nrf noup] boot/bootutil/loader: image discovery by ih_load_address#681
NordicBuilder wants to merge 2 commits into
ncs-v3.4-branchfrom
backport-680-to-ncs-v3.4-branch

Conversation

@NordicBuilder
Copy link
Copy Markdown

Backport 348bc33~2..348bc33 from #680.

nvlsianpu added 2 commits June 2, 2026 09:42
While reading cortex Vector table, the reset handler addres is
at offest of one 4 bytes word, not two words.

This patch corrects this offset.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
(cherry picked from commit f48e87edd473abdc966c03fadb8a00305e466732)
(cherry picked from commit cb3f8dc)
Align all image's matching exercises to MCUBOOT_CHECK_HEADER_LOAD_ADDRES.
This method uses ih_load_address field of the image header instead
of reset vector address. This allows to match
incoming image to the partition even when it is for instance encrypted,
as the image header is always plain-text.

Firmware need to be signed with
imgtool.py sign --rom-fixed <partition_address> parameter in order to
involve this feature.

ref.: NCSIDB-1173

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
(cherry picked from commit 348bc33)
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 2, 2026

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants