Skip to content

Commit a241352

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 72322b0 commit a241352

14 files changed

Lines changed: 197 additions & 22 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: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@
77
/ {
88
chosen {
99
nordic,pm-ext-flash = &gd25wb256;
10+
fmfu_storage = &fmfu_storage_partition;
1011
};
1112
};
1213

13-
/* External flash device is disabled by default */
14+
#include <samples/cellular/nrf91_updatable_bootloader_partitions.dtsi>
15+
1416
&gd25wb256 {
17+
/* External flash device is disabled by default */
1518
status = "okay";
19+
20+
#include <samples/cellular/nrf91_updatable_bootloader_external_partitions.dtsi>
1621
};
22+
23+
#include <samples/cellular/nrf91_sram_partitions.dtsi>

samples/cellular/nrf_cloud_coap_fota/boards/nrf9160dk_nrf9160_ns_0_14_0.overlay renamed to samples/cellular/nrf_cloud_coap_fota/boards/nrf9160dk_nrf9160_ns.overlay

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@
77
/ {
88
chosen {
99
nordic,pm-ext-flash = &mx25r64;
10+
fmfu_storage = &fmfu_storage_partition;
1011
};
1112
};
1213

14+
#include <samples/cellular/nrf91_updatable_bootloader_partitions.dtsi>
15+
1316
/* External flash device is disabled by default */
1417
&mx25r64 {
1518
status = "okay";
19+
20+
#include <samples/cellular/nrf91_updatable_bootloader_external_partitions.dtsi>
1621
};
22+
23+
#include <samples/cellular/nrf91_sram_partitions.dtsi>

samples/cellular/nrf_cloud_coap_fota/boards/nrf9161dk_nrf9161_ns.overlay

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@
77
/ {
88
chosen {
99
nordic,pm-ext-flash = &gd25wb256;
10+
fmfu_storage = &fmfu_storage_partition;
1011
};
1112
};
1213

14+
#include <samples/cellular/nrf91_updatable_bootloader_partitions.dtsi>
15+
1316
/* External flash device is disabled by default */
1417
&gd25wb256 {
1518
status = "okay";
19+
20+
#include <samples/cellular/nrf91_updatable_bootloader_external_partitions.dtsi>
1621
};
22+
23+
#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/full_modem_fota.conf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
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
117

128
# Full Modem FOTA
139
CONFIG_NRF_CLOUD_FOTA_FULL_MODEM_UPDATE=y
10+
# Decrease buffer to make it work with minimal TF-M.
11+
CONFIG_NRF_CLOUD_FOTA_FULL_MODEM_UPDATE_BUF_SIZE=1024
1412
CONFIG_SPI=y
1513
CONFIG_SPI_NOR=y
1614
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "../../../boards/nrf9151dk_nrf9151_ns.overlay"
8+
9+
&sram0_s {
10+
reg = <0x0 0x40000>;
11+
};
12+
13+
/ {
14+
chosen {
15+
zephyr,code-partition = &b0_partition;
16+
};
17+
};
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "../../../boards/nrf9160dk_nrf9160_ns.overlay"
8+
9+
&sram0_s {
10+
reg = <0x0 0x40000>;
11+
};
12+
13+
/ {
14+
chosen {
15+
zephyr,code-partition = &b0_partition;
16+
};
17+
};
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2026 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include "../../../boards/nrf9161dk_nrf9161_ns.overlay"
8+
9+
&sram0_s {
10+
reg = <0x0 0x40000>;
11+
};
12+
13+
/ {
14+
chosen {
15+
zephyr,code-partition = &b0_partition;
16+
};
17+
};
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#
2+
# Copyright (c) 2024 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# b0 defaults from /samples/bootloader/prj.conf
8+
CONFIG_IS_SECURE_BOOTLOADER=y
9+
CONFIG_MULTITHREADING=n
10+
CONFIG_GPIO=n
11+
CONFIG_ARM_MPU=n
12+
CONFIG_TICKLESS_KERNEL=n
13+
CONFIG_ERRNO=n
14+
CONFIG_FPROTECT=y
15+
CONFIG_SECURE_BOOT_CRYPTO=y
16+
CONFIG_SECURE_BOOT_VALIDATION=y
17+
CONFIG_SECURE_BOOT_STORAGE=y
18+
CONFIG_BL_ROT_VERIFY_EXT_API_ENABLED=y
19+
CONFIG_BL_SHA256_EXT_API_ENABLED=y
20+
CONFIG_BL_SECP256R1_EXT_API_ENABLED=y
21+
CONFIG_BL_VALIDATE_FW_EXT_API_ENABLED=y
22+
CONFIG_EXT_API_PROVIDE_EXT_API_ENABLED=y
23+
CONFIG_NRFX_NVMC=y
24+
CONFIG_MAIN_STACK_SIZE=2048
25+
CONFIG_TIMEOUT_64BIT=n
26+
27+
# Disable asserts because of false positive when writing to OTP.
28+
CONFIG_ASSERT=n
29+
30+
# Avoid triggering IRQs from the RTC
31+
CONFIG_NRF_RTC_TIMER=n
32+
33+
# Serial Modem specific changes:
34+
# Disable logging so that Ready-message is the first one in startup.
35+
CONFIG_LOG=n
36+
CONFIG_CONSOLE=n
37+
CONFIG_UART_CONSOLE=n

0 commit comments

Comments
 (0)