boards: nxp: Switch MCUBoot FW Update mode to Swap & Move

Switch the default MCUBoot FW Update mode from Swap & Scratch
to more preferable Swap & Move for the rest of NXP MCUs.
Other NXP MCU platforms have been already switched.
Delete the scratch partition. Save RAM & ROM.
Slot 0 has one additional sector, for use with
the swap move algorithm.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
This commit is contained in:
Andrej Butok 2023-12-11 13:15:49 +01:00 committed by Carles Cufí
commit a691280b12
15 changed files with 91 additions and 138 deletions

View file

@ -207,17 +207,16 @@ arduino_i2c: &lpi2c1 {};
label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(64)>;
};
/* Note slot 0 has one additional sector,
* this is intended for use with the swap move algorithm
*/
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 DT_SIZE_K(1984)>;
reg = <0x00010000 DT_SIZE_K(2016)>;
};
slot1_partition: partition@200000 {
slot1_partition: partition@208000 {
label = "image-1";
reg = <0x00200000 DT_SIZE_K(1984)>;
};
scratch_partition: partition@3f0000 {
label = "image-scratch";
reg = <0x003f0000 DT_SIZE_K(64)>;
reg = <0x00208000 DT_SIZE_K(2012)>;
};
};
};