[openwrt/openwrt] ath79: combine UniFi AC dual firmware-partitions

LEDE Commits lede-commits at lists.infradead.org
Fri Jan 6 16:33:12 PST 2023


blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e4a76673ff4f655ba0698d9edb9efbacd0f82fff

commit e4a76673ff4f655ba0698d9edb9efbacd0f82fff
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Thu Nov 17 22:53:33 2022 +0100

    ath79: combine UniFi AC dual firmware-partitions
    
    In order to maximize the available space on UniFi AC boards using a
    dual-image partition layout, combine the two OS partitions into a single
    partition.
    
    This allows users to access more usable space for additional packages.
    
    Don't limit the usable image size to the size of a single OS partition.
    The initial installation has to be done with an older version of OpenWrt
    in case the generated image exceeds the space of a single kernel
    partition in the future.
    
    Signed-off-by: David Bauer <mail at david-bauer.net>
---
 target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi | 9 ++-------
 target/linux/ath79/image/generic-ubnt.mk         | 2 +-
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi b/target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi
index 2e407c3486..6704ec983b 100644
--- a/target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi
+++ b/target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi
@@ -69,17 +69,12 @@
 			};
 
 			partition at 70000 {
+				/* Combine kernel0 & kernel1 */
 				label = "firmware";
-				reg = <0x070000 0x790000>;
+				reg = <0x070000 0xf20000>;
 				compatible = "denx,uimage";
 			};
 
-			partition at 800000 {
-				label = "kernel1";
-				reg = <0x800000 0x790000>;
-				read-only;
-			};
-
 			partition at f90000 {
 				label = "bs";
 				reg = <0xf90000 0x020000>;
diff --git a/target/linux/ath79/image/generic-ubnt.mk b/target/linux/ath79/image/generic-ubnt.mk
index bed043c3a7..8eeaa8de3e 100644
--- a/target/linux/ath79/image/generic-ubnt.mk
+++ b/target/linux/ath79/image/generic-ubnt.mk
@@ -229,7 +229,7 @@ TARGET_DEVICES += ubnt_unifi-ap-lr
 define Device/ubnt_unifiac
   DEVICE_VENDOR := Ubiquiti
   SOC := qca9563
-  IMAGE_SIZE := 7744k
+  IMAGE_SIZE := 15488k
   DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
 endef
 




More information about the lede-commits mailing list