Skip to content

Commit 570214c

Browse files
committed
samples: cellular: nrf_cloud_coap_fota: Disable Partition Manager
Add Devicetree partitions and disable partition manager. Signed-off-by: Lucas van der Ploeg <lucas.vanderploeg@nordicsemi.no>
1 parent f236921 commit 570214c

19 files changed

Lines changed: 244 additions & 46 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
config PARTITION_MANAGER
8+
default n
9+
10+
source "share/sysbuild/Kconfig"

samples/cellular/nrf_cloud_coap_fota/boards/nrf9151dk_nrf9151_ns.overlay

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,26 @@
66

77
/ {
88
chosen {
9-
nordic,pm-ext-flash = &gd25wb256;
9+
nordic,fmfu-storage-partition = &fmfu_storage_partition;
1010
};
1111
};
1212

13+
#include <samples/cellular/nrf91_immutable_bootloader_partitions.dtsi>
14+
1315
/* External flash device is disabled by default */
1416
&gd25wb256 {
1517
status = "okay";
18+
19+
partitions {
20+
compatible = "fixed-partitions";
21+
#address-cells = <1>;
22+
#size-cells = <1>;
23+
24+
fmfu_storage_partition: partition@0 {
25+
label = "fmfu_storage";
26+
reg = <0x00000000 0x400000>;
27+
};
28+
};
1629
};
30+
31+
#include <samples/cellular/nrf91_sram_partitions.dtsi>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
chosen {
9+
nordic,fmfu-storage-partition = &fmfu_storage_partition;
10+
};
11+
};
12+
13+
#include <samples/cellular/nrf91_immutable_bootloader_partitions.dtsi>
14+
15+
/* External flash device is disabled by default */
16+
&mx25r64 {
17+
status = "okay";
18+
19+
partitions {
20+
compatible = "fixed-partitions";
21+
#address-cells = <1>;
22+
#size-cells = <1>;
23+
24+
fmfu_storage_partition: partition@0 {
25+
label = "fmfu_storage";
26+
reg = <0x00000000 0x400000>;
27+
};
28+
};
29+
};
30+
31+
#include <samples/cellular/nrf91_sram_partitions.dtsi>

samples/cellular/nrf_cloud_coap_fota/boards/nrf9160dk_nrf9160_ns_0_14_0.overlay

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

samples/cellular/nrf_cloud_coap_fota/boards/nrf9161dk_nrf9161_ns.overlay

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,26 @@
66

77
/ {
88
chosen {
9-
nordic,pm-ext-flash = &gd25wb256;
9+
nordic,fmfu-storage-partition = &fmfu_storage_partition;
1010
};
1111
};
1212

13+
#include <samples/cellular/nrf91_immutable_bootloader_partitions.dtsi>
14+
1315
/* External flash device is disabled by default */
1416
&gd25wb256 {
1517
status = "okay";
18+
19+
partitions {
20+
compatible = "fixed-partitions";
21+
#address-cells = <1>;
22+
#size-cells = <1>;
23+
24+
fmfu_storage_partition: partition@0 {
25+
label = "fmfu_storage";
26+
reg = <0x00000000 0x400000>;
27+
};
28+
};
1629
};
30+
31+
#include <samples/cellular/nrf91_sram_partitions.dtsi>

samples/cellular/nrf_cloud_coap_fota/boards/nrf9161dk_nrf9161_ns_0_7_0.overlay

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

samples/cellular/nrf_cloud_coap_fota/boards/thingy91x_nrf9151_ns.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@
1010

1111
# Enable external flash
1212
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
13-
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
14-
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y

samples/cellular/nrf_cloud_coap_fota/boards/thingy91x_nrf9151_ns.overlay

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
aliases {
99
ext-flash = &flash_ext;
1010
};
11+
12+
chosen {
13+
nordic,fmfu-storage-partition = &fmfu_storage_partition;
14+
};
1115
};

samples/cellular/nrf_cloud_coap_fota/full_modem_fota.conf

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
66

7-
# NOT_SET profile is needed for SHA-256 support for full modem update
8-
# but disable some features to reduce the size TF-M takes.
9-
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
10-
CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE=n
7+
# Decrease buffer to make it work with minimal TF-M.
8+
CONFIG_NRF_CLOUD_FOTA_FULL_MODEM_UPDATE_BUF_SIZE=1024
9+
CONFIG_TFM_LOG_LEVEL_SILENCE=y
1110

1211
# Full Modem FOTA
1312
CONFIG_NRF_CLOUD_FOTA_FULL_MODEM_UPDATE=y
1413
CONFIG_SPI=y
1514
CONFIG_SPI_NOR=y
1615
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
17-
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
1816

1917
# FMFU requires additional heap space.
2018
# If the heap is too small, a boot loop can occur when the full modem image is installed.

samples/cellular/nrf_cloud_coap_fota/prj.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ CONFIG_STREAM_FLASH=y
5151
CONFIG_MCUBOOT_IMG_MANAGER=y
5252
CONFIG_IMG_ERASE_PROGRESSIVELY=y
5353
CONFIG_SECURE_BOOT=y
54-
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=n
5554

5655
# Settings
5756
CONFIG_FLASH=y

0 commit comments

Comments
 (0)