Skip to content

Commit d18f152

Browse files
committed
board builds and handles internal better
1 parent 28c5d40 commit d18f152

3 files changed

Lines changed: 294 additions & 138 deletions

File tree

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,6 @@
1-
&flash0 {
2-
partitions {
3-
compatible = "fixed-partitions";
4-
#address-cells = <1>;
5-
#size-cells = <1>;
1+
/* Delete Zephyr-default partitions before redefining them. */
2+
&flash0 { /delete-node/ partitions; };
3+
&flash1 { /delete-node/ partitions; };
4+
&s28hl512t { /delete-node/ partitions; };
65

7-
boot_partition: partition@0 {
8-
label = "mcuboot";
9-
reg = <0x0 DT_SIZE_K(64)>;
10-
};
11-
12-
slot0_partition: partition@10000 {
13-
label = "image-0";
14-
reg = <0x10000 DT_SIZE_K(1920)>;
15-
};
16-
17-
storage_partition: partition@1f0000 {
18-
label = "storage";
19-
reg = <0x1f0000 DT_SIZE_K(32)>;
20-
};
21-
};
22-
};
23-
24-
&s28hl512t {
25-
partitions {
26-
compatible = "fixed-partitions";
27-
#address-cells = <1>;
28-
#size-cells = <1>;
29-
30-
partition@0: partition@0 {
31-
label = "nor";
32-
reg = <0x0 DT_SIZE_M(64)>;
33-
};
34-
};
35-
};
6+
#include "generated/ek_ra8d1.dtsi"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
&flash0 {
2+
partitions {
3+
compatible = "fixed-partitions";
4+
#address-cells = <1>;
5+
#size-cells = <1>;
6+
7+
boot_partition: partition@0 {
8+
label = "mcuboot";
9+
reg = <0x0 DT_SIZE_K(64)>;
10+
};
11+
12+
slot0_partition: partition@10000 {
13+
label = "image-0";
14+
reg = <0x10000 DT_SIZE_K(1792)>;
15+
};
16+
17+
storage_partition: partition@1d0000 {
18+
label = "storage";
19+
reg = <0x1d0000 DT_SIZE_K(160)>;
20+
};
21+
};
22+
};
23+
24+
&s28hl512t {
25+
partitions {
26+
compatible = "fixed-partitions";
27+
#address-cells = <1>;
28+
#size-cells = <1>;
29+
30+
slot1_partition: partition@0 {
31+
label = "image-1";
32+
reg = <0x0 DT_SIZE_M(2)>;
33+
};
34+
35+
circuitpy_partition: partition@200000 {
36+
label = "circuitpy";
37+
reg = <0x200000 DT_SIZE_M(62)>;
38+
};
39+
};
40+
};

0 commit comments

Comments
 (0)