]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ramips: expand storage space on U6 lite 22316/head
authorFabian Groffen <grobian@bitzolder.nl>
Fri, 6 Mar 2026 15:27:03 +0000 (16:27 +0100)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 7 Jun 2026 09:03:01 +0000 (11:03 +0200)
While still sufficient for the base image, space runs out quickly with
the ~15MiB available in kernel0.  The identical space in kernel1 is
unused, and standard installation instructions flash to both areas so it
isn't an easy fallback to stock either.

Merge the regions for kernel0 and kernel1 so there's more space
available to the user to install packages and some data.

Signed-off-by: Fabian Groffen <grobian@bitzolder.nl>
Link: https://github.com/openwrt/openwrt/pull/22316
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts
target/linux/ramips/image/mt7621.mk
target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version

index fd9f214f68be6e87a3903faed116c542fb769acf..ce21add9a394332bf4a20186175f868481075e73 100644 (file)
                        partition@1d0000 {
                                compatible = "denx,fit";
                                label = "firmware";
-                               reg = <0x1d0000 0xf10000>;
-                       };
-
-                       partition@10e0000 {
-                               label = "kernel1";
-                               reg = <0x10e0000 0xf10000>;
+                               reg = <0x1d0000 0x1e20000>;
+                               /* merge of kernel0 and kernel1, both 0xf10000 in size,
+                                * kernel1 starting at 0x10e0000 */
                        };
                };
        };
index 94e05180ad94c1a56fe69c4a2d9c463183f25923..a80bede3478427e1063e3732a4a5927ea3bcda6b 100644 (file)
@@ -3258,14 +3258,17 @@ endef
 TARGET_DEVICES += ubnt_edgerouter-x-sfp
 
 define Device/ubnt_unifi-6-lite
-  $(Device/dsa-migration)
+  DEVICE_COMPAT_VERSION := 2.0
+  DEVICE_COMPAT_MESSAGE := \
+       Dual kernel paritition merged due to size constraints. \
+       Use sysupgrade -F; image must not exceed 15424KiB (~15MiB).
   DEVICE_VENDOR := Ubiquiti
   DEVICE_MODEL := UniFi U6 Lite
   DEVICE_DTS_CONFIG := config@1
   DEVICE_DTS_LOADADDR := 0x87000000
   DEVICE_PACKAGES += kmod-mt7603 kmod-mt7915-firmware -uboot-envtools
   KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
-  IMAGE_SIZE := 15424k
+  IMAGE_SIZE := 30848k
 endef
 TARGET_DEVICES += ubnt_unifi-6-lite
 
index f3000b83c7fcf15c43496ca20ed48e1810a4f6f0..af9dc9a8157c615107e7a2f9e1b391069c053c0f 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2020 OpenWrt.org
+# Copyright (C) 2020-2026 OpenWrt.org
 #
 
 . /lib/functions.sh
@@ -10,6 +10,7 @@ board_config_update
 case "$(board_name)" in
        ubnt,edgerouter-x|\
        ubnt,edgerouter-x-sfp|\
+       ubnt,unifi-6-lite|\
        iptime,ax2002m|\
        iptime,ax2004m)
                ucidef_set_compat_version "2.0"