Skip to content

Commit

Permalink
partition_manager: Make tfm storage partions avoid partitioning conflict
Browse files Browse the repository at this point in the history
With the previous method, both tfm_storage partitions (its, ps, etc)
were placed "before: mcuboot_primary". This could lead to a case
where mcuboot was placed after the tfm_storage partitions.
To avoid this, instead place "after" mcuboot or tfm_secure.

Jira: NCSDK-30094

Signed-off-by: Sigurd Hellesvik <[email protected]>
  • Loading branch information
hellesvik-nordic authored and rlubos committed Nov 6, 2024
1 parent 9183164 commit 4182d31
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions subsys/partition_manager/pm.yml.tfm
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,19 @@ tfm_storage:

tfm_ps:
placement:
#ifdef CONFIG_BOOTLOADER_MCUBOOT
before: mcuboot_primary
#else
before: tfm_nonsecure
#endif
after: [mcuboot, tfm_secure]
inside: tfm_storage
size: CONFIG_PM_PARTITION_SIZE_TFM_PROTECTED_STORAGE

tfm_its:
placement:
#ifdef CONFIG_BOOTLOADER_MCUBOOT
before: mcuboot_primary
#else
before: tfm_nonsecure
#endif
after: [mcuboot, tfm_secure]
inside: tfm_storage
size: CONFIG_PM_PARTITION_SIZE_TFM_INTERNAL_TRUSTED_STORAGE

tfm_otp_nv_counters:
placement:
#ifdef CONFIG_BOOTLOADER_MCUBOOT
before: mcuboot_primary
#else
before: tfm_nonsecure
#endif
after: [mcuboot, tfm_secure]
inside: tfm_storage
size: CONFIG_PM_PARTITION_SIZE_TFM_OTP_NV_COUNTERS

Expand Down

0 comments on commit 4182d31

Please sign in to comment.