forked from nrfconnect/sdk-mcuboot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf noup] zephyr: introduce partition manager
Partition Manager is a component which uses yaml files to resolve flash placement with a wholistic view of the device Signed-off-by: Håkon Øye Amundsen <[email protected]>
- Loading branch information
1 parent
d62e189
commit b6d3687
Showing
4 changed files
with
144 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# The size of this partition is defined by the kconfig symbol | ||
# CONFIG_PM_PARTITION_SIZE_MCUBOOT | ||
mcuboot: | ||
placement: | ||
# MCUboot must be placed in front of 'mcuboot_pad'. | ||
before: [mcuboot_pad] | ||
|
||
mcuboot_partitions: | ||
# Define a set of sub-partitions which spans over 'mcuboot_pad', 'spm' and | ||
# 'app' if both are present. If only 'app' is present, then these partitions | ||
# will only span across that partition. | ||
# The sub partitions share the size of the parent partition(s) equally. | ||
sub_partitions: [primary, secondary] | ||
span: [mcuboot_pad, spm, app] | ||
|
||
# The size of this partition is defined by the kconfig symbol | ||
# CONFIG_PM_PARTITION_SIZE_MCUBOOT_SCRATCH | ||
mcuboot_scratch: | ||
placement: | ||
after: [app] | ||
|
||
# The size of this partition is defined by the kconfig symbol | ||
# CONFIG_PM_PARTITION_SIZE_MCUBOOT_STORAGE | ||
mcuboot_storage: | ||
placement: | ||
after: [mcuboot_scratch] | ||
|
||
# Padding placed before image to boot | ||
mcuboot_pad: | ||
# MCUboot pad must be placed before the 'spm' partition if that is present. | ||
# If 'spm' partition is not present, it must be placed before the 'app'. | ||
placement: | ||
before: [spm, app] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters