aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79
diff options
context:
space:
mode:
authorMichal Cieslakiewicz <michal.cieslakiewicz@wp.pl>2019-11-12 14:02:14 +0100
committerPetr Štetiar <ynezz@true.cz>2019-12-19 22:41:57 +0100
commitad6c6361f9f85f7cf6f53558d109c82de73743a5 (patch)
treee46b0b2fec8bc05d65ca217bbbbbe40b1245ccdf /target/linux/ath79
parent174ff7d754b272cbf6169bfbb245dbd12b392830 (diff)
downloadupstream-ad6c6361f9f85f7cf6f53558d109c82de73743a5.tar.gz
upstream-ad6c6361f9f85f7cf6f53558d109c82de73743a5.tar.bz2
upstream-ad6c6361f9f85f7cf6f53558d109c82de73743a5.zip
ath79: enable all space on Netgear ar9344-based WNDR routers
Netgear WNDR routers (AR9344 models) like WNDR4300 have 128 MiB of flash memory but only first 32 MiB are used now - both by vendor's firmware and OpenWrt. This patch concatenates two regions of flash memory: ubi part of firmware partition and reserved (unused) space beyond 'caldata_backup' while preserving ART backup. No data is wiped or moved away. This increases area for OS ubi volumes from 23 to 119 Megabytes. Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
Diffstat (limited to 'target/linux/ath79')
-rw-r--r--target/linux/ath79/dts/ar9344_netgear_wndr.dtsi25
1 files changed, 20 insertions, 5 deletions
diff --git a/target/linux/ath79/dts/ar9344_netgear_wndr.dtsi b/target/linux/ath79/dts/ar9344_netgear_wndr.dtsi
index 18b9ae1778..38dd052f5f 100644
--- a/target/linux/ath79/dts/ar9344_netgear_wndr.dtsi
+++ b/target/linux/ath79/dts/ar9344_netgear_wndr.dtsi
@@ -96,6 +96,22 @@
linux,default-trigger = "usbport";
};
};
+
+ ubi-concat {
+ compatible = "mtd-concat";
+ devices = <&ubipart0 &ubipart1>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ ubi@8c0000 {
+ label = "ubi";
+ reg = <0x0 0x7700000>;
+ };
+ };
+ };
};
&pinmux {
@@ -154,8 +170,8 @@
reg = <0x6c0000 0x200000>;
};
- ubi@8c0000 {
- label = "ubi";
+ ubipart0: partition@8c0000 {
+ label = "ubipart0";
reg = <0x8c0000 0x1700000>;
};
@@ -171,10 +187,9 @@
read-only;
};
- partition@2000000 {
- label = "reserved";
+ ubipart1: partition@2000000 {
+ label = "ubipart1";
reg = <0x2000000 0x6000000>;
- read-only;
};
};
};