ramips: mikrotik: use routerbootpart partitions
authorThibaut VARÈNE <hacks@slashdirt.org>
Sat, 21 Mar 2020 21:54:53 +0000 (22:54 +0100)
committerKoen Vandeputte <koen.vandeputte@ncentric.com>
Fri, 8 May 2020 13:17:17 +0000 (15:17 +0200)
Enable routerbootpart partitions on MikroTik devices.

Tested-by: Tobias Schramm <t.schramm@manjaro.org>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts
target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts
target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts

index af0664a4fa59a71a936fcd036e55fed4a3156f72..a075d085565d9451589306c2382b8d9165404bc5 100644 (file)
                                label = "RouterBoot";
                                reg = <0x0 0x40000>;
                                read-only;
-                               compatible = "fixed-partitions";
+                               compatible = "mikrotik,routerboot-partitions";
                                #address-cells = <1>;
                                #size-cells = <1>;
 
                                partition@0 {
                                        label = "bootloader1";
-                                       reg = <0x0 0xf000>;
+                                       reg = <0x0 0x0>;
                                        read-only;
                                };
 
-                               hard_config: partition@f000 {
-                                       label = "hard_config";
-                                       reg = <0xf000 0x1000>;
+                               hard_config: hard_config {
                                        read-only;
                                };
 
                                        read-only;
                                };
 
-                               partition@20000 {
-                                       label = "soft_config";
-                                       reg = <0x20000 0x1000>;
+                               soft_config {
                                };
 
                                partition@30000 {
index bd58aea951fae6f7d6b263f111bee75f23a1c624..128b8a2816a8c3c479cf2241b2f527f74ef09692 100644 (file)
                                label = "RouterBoot";
                                reg = <0x0 0x40000>;
                                read-only;
-                               compatible = "fixed-partitions";
+                               compatible = "mikrotik,routerboot-partitions";
                                #address-cells = <1>;
                                #size-cells = <1>;
 
                                partition@0 {
                                        label = "bootloader1";
-                                       reg = <0x0 0xf000>;
+                                       reg = <0x0 0x0>;
                                        read-only;
                                };
 
-                               hard_config: partition@f000 {
-                                       label = "hard_config";
-                                       reg = <0xf000 0x1000>;
+                               hard_config: hard_config {
                                        read-only;
                                };
 
                                        read-only;
                                };
 
-                               partition@20000 {
-                                       label = "soft_config";
-                                       reg = <0x20000 0x1000>;
+                               soft_config {
                                };
 
                                partition@30000 {
index 19e1a71e993c5aeeee6cb74331948af64b505695..aff2d0e64f4a47815ab674ae72d79c15fcda5094 100644 (file)
                                label = "RouterBoot";
                                reg = <0x0 0x40000>;
                                read-only;
-                               compatible = "fixed-partitions";
+                               compatible = "mikrotik,routerboot-partitions";
                                #address-cells = <1>;
                                #size-cells = <1>;
 
                                partition@0 {
                                        label = "bootloader1";
-                                       reg = <0x0 0xf000>;
+                                       reg = <0x0 0x0>;
                                        read-only;
                                };
 
-                               hard_config: partition@f000 {
-                                       label = "hard_config";
-                                       reg = <0xf000 0x1000>;
+                               hard_config: hard_config {
                                        read-only;
                                };
 
                                        read-only;
                                };
 
-                               partition@20000 {
-                                       label = "soft_config";
-                                       reg = <0x20000 0x1000>;
+                               soft_config {
                                };
 
                                partition@30000 {