[OpenWrt-Devel] [PATCH] ath79: enable all space on Netgear ar9344-based WNDR routers

Enrico Mioso mrkiko.rs at gmail.com
Tue Nov 12 08:43:20 EST 2019


Wow!! This is applicable also to Netgear R6220!


On Tue, 12 Nov 2019, Michal Cieslakiewicz wrote:

> Date: Tue, 12 Nov 2019 14:02:14
> From: Michal Cieslakiewicz <michal.cieslakiewicz at wp.pl>
> To: "openwrt-devel at lists.openwrt.org" <openwrt-devel at lists.openwrt.org>
> Cc: Adrian Schmutzler <mail at adrianschmutzler.de>
> Subject: [OpenWrt-Devel] [PATCH] 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 at wp.pl>
> ---
> .../linux/ath79/dts/ar9344_netgear_wndr.dtsi  | 25 +++++++++++++++----
> 1 file 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 16a4e3f6e8..d5a699e774 100644
> --- a/target/linux/ath79/dts/ar9344_netgear_wndr.dtsi
> +++ b/target/linux/ath79/dts/ar9344_netgear_wndr.dtsi
> @@ -97,6 +97,22 @@
> 			linux,default-trigger = "usbport";
> 		};
> 	};
> +
> +	ubi-concat {
> +		compatible = "mtd-concat";
> +		devices = <&ubipart0 &ubipart1>;
> +
> +		partitions {
> +			compatible = "fixed-partitions";
> +			#address-cells = <1>;
> +			#size-cells = <1>;
> +
> +			ubi at 8c0000 {
> +				label = "ubi";
> +				reg = <0x0 0x7700000>;
> +			};
> +		};
> +	};
> };
>
> &pinmux {
> @@ -155,8 +171,8 @@
> 			reg = <0x6c0000 0x200000>;
> 		};
>
> -		ubi at 8c0000 {
> -			label = "ubi";
> +		ubipart0: partition at 8c0000 {
> +			label = "ubipart0";
> 			reg = <0x8c0000 0x1700000>;
> 		};
>
> @@ -172,10 +188,9 @@
> 			read-only;
> 		};
>
> -		partition at 2000000 {
> -			label = "reserved";
> +		ubipart1: partition at 2000000 {
> +			label = "ubipart1";
> 			reg = <0x2000000 0x6000000>;
> -			read-only;
> 		};
> 	};
> };
> -- 
> 2.24.0
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list