ath79: expand rootfs for DIR-825-B1 with unused space
authorAlan Luck <luckyhome2008@gmail.com>
Fri, 14 Oct 2022 06:26:27 +0000 (17:26 +1100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 6 Nov 2022 00:03:16 +0000 (01:03 +0100)
Expand currently unused flash space to roofs for DIR-825-B1 by using the same
flash space as the old ar71xx big image without moving the caldata.

With some testing this partition is use by the OEM firmware
but if changed is regenerated which allows reverting to OEM firmware

Signed-off-by: Alan Luck <luckyhome2008@gmail.com>
target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts

index 8188027c4c1af54c835ebc6c4b19728e5bb0780d..b701f15421a0e347bac0d407ef93d6cd9d8325f2 100644 (file)
                        };
                };
        };
+
+       virtual_flash {
+               compatible = "mtd-concat";
+               devices = <&fwconcat0 &fwconcat1>;
+
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               compatible = "denx,uimage";
+                               label = "firmware";
+                               reg = <0x0 0x0>;
+                       };
+               };
+       };
 };
 
 &usb1 {
                                read-only;
                        };
 
-                       partition@50000 {
-                               compatible = "denx,uimage";
-                               label = "firmware";
+                       fwconcat0: partition@50000 {
+                               label = "fwconcat0";
                                reg = <0x050000 0x610000>;
                        };
 
                                read-only;
                        };
 
-                       partition@670000 {
-                               label = "unknown";
+                       fwconcat1: partition@670000 {
+                               label = "fwconcat1";
                                reg = <0x670000 0x190000>;
-                               read-only;
                        };
                };
        };