Skip to content

Commit e52c51f

Browse files
committed
samples/dfu/smp_svr_mini_boot: No Partition manager
Disabled partition manager in the single slot sample, added overlays needed for nRF54L15 and nRF54LS05B with no partition manager. Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
1 parent 60d8ac4 commit e52c51f

8 files changed

Lines changed: 119 additions & 92 deletions

samples/dfu/smp_svr_mini_boot/Kconfig.sysbuild

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,7 @@ config NETCORE_IPC_RADIO_BT_HCI_IPC
3131
config MCUBOOT_IMAGES_ROM_END_OFFSET_AUTO
3232
default "ipc_radio;ipc_radio_secondary_app" if MCUBOOT_SIGN_MERGED_BINARY
3333

34+
config PARTITION_MANAGER
35+
default n
36+
3437
source "share/sysbuild/Kconfig"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/delete-node/ &boot_partition;
8+
/delete-node/ &slot0_partition;
9+
/delete-node/ &slot1_partition;
10+
/delete-node/ &storage_partition;
11+
12+
&cpuapp_rram {
13+
partitions {
14+
boot_partition: partition@0 {
15+
compatible = "zephyr,mapped-partition";
16+
label = "mcuboot";
17+
reg = <0x0 0x8000>;
18+
};
19+
20+
slot0_partition: partition@8000 {
21+
compatible = "zephyr,mapped-partition";
22+
label = "image-0";
23+
reg = <0x8000 0x5a800>;
24+
};
25+
26+
littlefs_storage: partition@62800 {
27+
compatible = "zephyr,mapped-partition";
28+
label = "littlefs-storage";
29+
reg = <0x62800 0x6000>;
30+
};
31+
32+
slot1_partition: partition@68800 {
33+
compatible = "zephyr,mapped-partition";
34+
label = "image-1";
35+
reg = <0x68800 0x60800>;
36+
};
37+
38+
storage_partition: partition@c9000 {
39+
compatible = "zephyr,mapped-partition";
40+
label = "storage";
41+
reg = <0xc9000 0x4000>;
42+
};
43+
44+
unallocated: partition@cd000 {
45+
compatible = "zephyr,mapped-partition";
46+
label = "unallocated";
47+
reg = <0xcd000 0xb0000>;
48+
};
49+
};
50+
};
51+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/delete-node/ &boot_partition;
8+
/delete-node/ &slot0_partition;
9+
/delete-node/ &slot1_partition;
10+
/delete-node/ &storage_partition;
11+
12+
&cpuapp_rram {
13+
partitions {
14+
boot_partition: partition@0 {
15+
compatible = "zephyr,mapped-partition";
16+
label = "mcuboot";
17+
reg = <0x0 0x10000>;
18+
};
19+
20+
slot0_partition: partition@10000 {
21+
compatible = "zephyr,mapped-partition";
22+
label = "image-0";
23+
reg = <0x10000 0x36800>;
24+
};
25+
26+
slot1_partition: partition@46800 {
27+
compatible = "zephyr,mapped-partition";
28+
label = "image-1";
29+
reg = <0x46800 0x36800>;
30+
};
31+
32+
empty: partition@7d000 {
33+
compatible = "zephyr,mapped-partition";
34+
label = "empty";
35+
reg = <0x7d000 0x2000>;
36+
};
37+
};
38+
};
39+

samples/dfu/smp_svr_mini_boot/pm_static.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

samples/dfu/smp_svr_mini_boot/pm_static_nrf54ls05dk_nrf54ls05b_cpuapp.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "../../../boards/nrf54l15dk_nrf54l15_cpuapp.overlay"
8+
9+
/ {
10+
chosen {
11+
zephyr,code-partition = &boot_partition;
12+
};
13+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "../../../boards/nrf54ls05dk_nrf54ls05b_cpuapp.overlay"
8+
9+
/ {
10+
chosen {
11+
zephyr,code-partition = &boot_partition;
12+
};
13+
};

samples/dfu/smp_svr_mini_boot/sysbuild/mcuboot/prj.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ CONFIG_SIZE_OPTIMIZATIONS=y
88
CONFIG_HW_STACK_PROTECTION=y
99

1010
CONFIG_MAIN_STACK_SIZE=10240
11-
CONFIG_BOOT_MAX_IMG_SECTORS=256
1211
CONFIG_BOOT_BOOTSTRAP=n
1312

1413
CONFIG_BOOT_VERSION_CMP_USE_BUILD_NUMBER=y

0 commit comments

Comments
 (0)