Skip to content

Conversation

tomchy
Copy link
Contributor

@tomchy tomchy commented Sep 25, 2025

manifest-pr-skip

@tomchy tomchy changed the title Bugfix/mcuboot/ncsdk 35612 fix merged slot offsets NCSDK-35612: Fix offsets in the merged slot builds Sep 25, 2025
@tomchy tomchy force-pushed the bugfix/mcuboot/NCSDK-35612_Fix_merged_slot_offsets branch 9 times, most recently from 81f4259 to 6f16451 Compare October 2, 2025 15:18
@tomchy tomchy marked this pull request as ready for review October 2, 2025 15:30
@tomchy tomchy force-pushed the bugfix/mcuboot/NCSDK-35612_Fix_merged_slot_offsets branch 3 times, most recently from f9e008c to 589148c Compare October 10, 2025 07:19
@tomchy tomchy force-pushed the bugfix/mcuboot/NCSDK-35612_Fix_merged_slot_offsets branch from 589148c to 1d07eb6 Compare October 10, 2025 17:02
@tomchy tomchy force-pushed the bugfix/mcuboot/NCSDK-35612_Fix_merged_slot_offsets branch 2 times, most recently from 672f25c to 52fb986 Compare October 16, 2025 09:18
tomchy and others added 8 commits October 17, 2025 12:45
The DT_MTD_FROM_FIXED_SUBPARTITION must go one level more than the
DT_MTD_FROM_FIXED_PARTITION counterpart.

Signed-off-by: Tomasz Chyrowicz <[email protected]>
(cherry picked from commit e4ecd4b290f98f5fde68f0ce6fea4a61a74ecf2d)
Currently the DT_FIXED_PARTITION_ADDR as well as
DT_FIXED_SUBPARTITION_ADDR works only for partitions under the
soc,nv-flash -compatible nodes.

Signed-off-by: Tomasz Chyrowicz <[email protected]>
(cherry picked from commit 5c010ed9a31dc99ba5f955c989ee00136b89a921)
Allow to use both partition and subpartition names when suing the
flash_map API.
That way it is possible to introduce a hierarchy within DTS in a
backward compatible way.

Signed-off-by: Tomasz Chyrowicz <[email protected]>
(cherry picked from commit 3ae8a4366785f8cedf794dbae1cb889ee4830ff3)
…ion"

This reverts commit 28efd42.

Signed-off-by: Tomasz Chyrowicz <[email protected]>
Use cpuapp_slot_partition instead of slot0_partition, so it is possible
to add MCUboot header through --pad-header option.
In such cases, the FLASH_LOAD_OFFSET does not point to the begining of
the slot, but to the beginning of the executable area, thus the check
for the active slot should use ranges instead of exact values.

Signed-off-by: Tomasz Chyrowicz <[email protected]>
(cherry picked from commit 14af165)
It is possible to add MCUboot header through --pad-header option.
In such cases, the FLASH_LOAD_OFFSET does not point to the beginning of
the slot, but to the beginning of the executable area, thus the check
for the active slot should use ranges instead of exact values.

Signed-off-by: Tomasz Chyrowicz <[email protected]>
(cherry picked from commit 3261569)
The "zephyr-code-partition" chosen DTS node cannot be used when build
uses Partition Manager. In that case, mcumgr must rely on the
definitions provided by the Partition Manager.

Jira: NCSDK-21381

Signed-off-by: Marek Pieta <[email protected]>
Signed-off-by: Dominik Ermel <[email protected]>
Signed-off-by: Tomasz Chyrowicz <[email protected]>
(cherry picked from commit 6b04cee)
In the merged slot approach, the memory reservation for the MCUboot
header is done in CMake, as it is not obvious, which image includes the
(merged) MCUboot header.
This change will remove the unnecessary gap between images.

Ref: NCSDK-35612

Signed-off-by: Tomasz Chyrowicz <[email protected]>
@tomchy tomchy force-pushed the bugfix/mcuboot/NCSDK-35612_Fix_merged_slot_offsets branch from 52fb986 to 66b1e48 Compare October 17, 2025 10:51
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.

4 participants