ramips: fix partition node for jcg q20

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 3f3f8f2ff5)
This commit is contained in:
Tianling Shen 2023-06-04 13:52:29 +08:00
parent 70a362a822
commit 3714dcc944
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
3 changed files with 91 additions and 102 deletions

View File

@ -7,12 +7,7 @@
model = "JCG Q20 (pb-boot)"; model = "JCG Q20 (pb-boot)";
}; };
&nand { &partitions {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 { partition@0 {
label = "Bootloader"; label = "Bootloader";
reg = <0x0 0x80000>; reg = <0x0 0x80000>;
@ -30,12 +25,6 @@
read-only; read-only;
}; };
factory: partition@100000 {
label = "Factory";
reg = <0x100000 0x80000>;
read-only;
};
partition@180000 { partition@180000 {
label = "crash"; label = "crash";
reg = <0x180000 0x40000>; reg = <0x180000 0x40000>;
@ -58,4 +47,3 @@
reg = <0x600000 0x7980000>; reg = <0x600000 0x7980000>;
}; };
}; };
};

View File

@ -23,12 +23,7 @@
}; };
}; };
&nand { &partitions {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 { partition@0 {
label = "Bootloader"; label = "Bootloader";
reg = <0x0 0x80000>; reg = <0x0 0x80000>;
@ -40,12 +35,6 @@
reg = <0x80000 0x80000>; reg = <0x80000 0x80000>;
}; };
factory: partition@100000 {
label = "Factory";
reg = <0x100000 0x80000>;
read-only;
};
partition@180000 { partition@180000 {
label = "kernel"; label = "kernel";
reg = <0x180000 0x400000>; reg = <0x180000 0x400000>;
@ -82,4 +71,3 @@
* last 512 KiB are for the bad block table * last 512 KiB are for the bad block table
*/ */
}; };
};

View File

@ -51,6 +51,19 @@
&nand { &nand {
status = "okay"; status = "okay";
partitions: partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
factory: partition@100000 {
label = "Factory";
reg = <0x100000 0x80000>;
read-only;
};
};
}; };
&pcie { &pcie {