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)";
};
&nand {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
&partitions {
partition@0 {
label = "Bootloader";
reg = <0x0 0x80000>;
@ -30,12 +25,6 @@
read-only;
};
factory: partition@100000 {
label = "Factory";
reg = <0x100000 0x80000>;
read-only;
};
partition@180000 {
label = "crash";
reg = <0x180000 0x40000>;
@ -57,5 +46,4 @@
label = "ubi";
reg = <0x600000 0x7980000>;
};
};
};

View File

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

View File

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