boards: nxp: mimxrt10xx: fix non-optimal sector distribution
- Optimize slot sizes for MCUBoot swap move algorithm for mimxrt1010/15/20/24/40/50/60/64 boards. - Save up to 64 wasted sectors. - Use DT_SIZE_K/M macros for slot sizes. - Fix partition size errors. - Limit mcuboot max size to 128KB (was 256KB). Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
This commit is contained in:
parent
01b0d8736e
commit
03d1eabc32
11 changed files with 102 additions and 98 deletions
|
@ -206,22 +206,24 @@
|
|||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x00000000 DT_SIZE_K(256)>;
|
||||
reg = <0x00000000 DT_SIZE_K(128)>;
|
||||
};
|
||||
slot0_partition: partition@40000 {
|
||||
/* The MCUBoot swap-move algorithm uses the last 14 sectors
|
||||
* of the primary slot0 for swap status and move.
|
||||
*/
|
||||
slot0_partition: partition@20000 {
|
||||
label = "image-0";
|
||||
reg = <0x00040000 DT_SIZE_M(3)>;
|
||||
reg = <0x00020000 (DT_SIZE_M(3) + DT_SIZE_K(56))>;
|
||||
};
|
||||
slot1_partition: partition@340000 {
|
||||
slot1_partition: partition@32E000 {
|
||||
label = "image-1";
|
||||
reg = <0x00340000 DT_SIZE_M(3)>;
|
||||
reg = <0x0032E000 DT_SIZE_M(3)>;
|
||||
};
|
||||
storage_partition: partition@640000 {
|
||||
storage_partition: partition@62E000 {
|
||||
label = "storage";
|
||||
reg = <0x00640000 (DT_SIZE_M(557) + DT_SIZE_K(768))>;
|
||||
reg = <0x0062E000 (DT_SIZE_M(58) - DT_SIZE_K(184))>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue