Hi,
in the .dts file,partitions is
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0xc000>;
};
slot0_partition: partition@c000 {
label = "image-0";
reg = <0x0000C000 0xd000>;
};
slot1_partition: partition@19000 {
label = "image-1";
reg = <0x00019000 0xd000>;
};
scratch_partition: partition@26000 {
label = "image-scratch";
reg = <0x00026000 0x3000>;
};
storage_partition: partition@29000 {
label = "storage";
reg = <0x00029000 0x00007000>;
};
};
Can it be changed to the following?
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
slot0_partition: partition@0 {
label = "image-0";
reg = <0x0000000 0x0d000>;
};
slot1_partition: partition@d000 {
label = "image-1";
reg = <0x0000d000 0xd000>;
};
scratch_partition: partition@1a000 {
label = "image-scratch";
reg = <0x0001a000 0x3000>;
};
storage_partition: partition@1d000 {
label = "storage";
reg = <0x0001d000 0x00007000>;
};
boot_partition: partition@24000 {
label = "mcuboot";
reg = <0x00024000 0xc000>;
};
};
This modification does not compile.
What should be paid attention to when modifying, can you provide a demo?



