Commit 5ddb364
committed
single_slot: Remove default overlay
The default overlay for FW loader sets code-partition to
slot1_partition, which stays with direct conflict with the merged slot
approach:
- slot1_partition must point to the merged partition to allow SMP logic
to parse the FW loader magic & version
- if FW loader indeed uses slot1_partition with ROM_START_OFFSET, than
it is impossible to correctly boot the radio core FW, since it cannot
use the same value of the ROM_START_OFFSET (2kB NVM waste) and there
is no way to tell the FW loader code in soc.c to boot the radio with
a different value of ROM_START_OFFSET.
- the size of the code-partition must be different from the size of the
partition parsed by the SMP, so there is a protection against
potential code partition overflow and the flash area API can reach
past the code partition area.
One solution would be to change the contents of the
FIRMWARE_LOADER_image_default.overlay, but since it would force every
user of the FW loader within Zephyr to add a new partition alias, it is
far less intrusive to remove this overlay from sysbuild.cmake script in
those samples, that use merged slot approach.
Ref: NCSDK-36779
Signed-off-by: Tomasz Chyrowicz <[email protected]>1 parent 0590959 commit 5ddb364
File tree
3 files changed
+31
-10
lines changed- samples/dfu/single_slot
- sysbuild
- ble_mcumgr/boards
3 files changed
+31
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments