From 1e802ec3360f75bbad34f02fb65a81c830ba4749 Mon Sep 17 00:00:00 2001 From: Andrzej Puzdrowski Date: Wed, 15 Apr 2020 15:47:57 +0200 Subject: [PATCH] [nrf noup] subsys/fs: move FS partition to the end In case of the DFU capability enabled: Up to NCS v1.1.0 any storage partition lands at the end of the flash memory. Since v1.2.0 any storage partition lands right after the executable application. So it is impossible to build proper update application out-of-the box. This patch moves storage partitions at the flash end back. User needs only to correct the partition size (via Kconfig) to the same as in previous release for ensure proper upgrade build. Signed-off-by: Andrzej Puzdrowski --- subsys/fs/pm.yml | 2 +- subsys/settings/pm.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/fs/pm.yml b/subsys/fs/pm.yml index 5de7d0c307f..2b9907380a5 100644 --- a/subsys/fs/pm.yml +++ b/subsys/fs/pm.yml @@ -2,6 +2,6 @@ #ifdef CONFIG_FILE_SYSTEM_LITTLEFS littlefs_storage: - placement: {after: [mcuboot_storage, app]} + placement: {before: [end]} size: CONFIG_PM_PARTITION_SIZE_LITTLEFS #endif diff --git a/subsys/settings/pm.yml b/subsys/settings/pm.yml index b814c57da5a..a09cca32d8b 100644 --- a/subsys/settings/pm.yml +++ b/subsys/settings/pm.yml @@ -1,5 +1,5 @@ #include settings_storage: - placement: {after: [mcuboot_storage, app]} + placement: {before: [end]} size: CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE