Skip to content

Commit 273b6c9

Browse files
grobianjonasjelonek
authored andcommitted
ramips: expand storage space on U6 lite
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: openwrt/openwrt#22316 Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
1 parent 8aaa8d4 commit 273b6c9

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

target/linux/ramips/dts/mt7621_ubnt_unifi-6-lite.dts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,9 @@
9696
partition@1d0000 {
9797
compatible = "denx,fit";
9898
label = "firmware";
99-
reg = <0x1d0000 0xf10000>;
100-
};
101-
102-
partition@10e0000 {
103-
label = "kernel1";
104-
reg = <0x10e0000 0xf10000>;
99+
reg = <0x1d0000 0x1e20000>;
100+
/* merge of kernel0 and kernel1, both 0xf10000 in size,
101+
* kernel1 starting at 0x10e0000 */
105102
};
106103
};
107104
};

target/linux/ramips/image/mt7621.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3258,14 +3258,17 @@ endef
32583258
TARGET_DEVICES += ubnt_edgerouter-x-sfp
32593259

32603260
define Device/ubnt_unifi-6-lite
3261-
$(Device/dsa-migration)
3261+
DEVICE_COMPAT_VERSION := 2.0
3262+
DEVICE_COMPAT_MESSAGE := \
3263+
Dual kernel paritition merged due to size constraints. \
3264+
Use sysupgrade -F; image must not exceed 15424KiB (~15MiB).
32623265
DEVICE_VENDOR := Ubiquiti
32633266
DEVICE_MODEL := UniFi U6 Lite
32643267
DEVICE_DTS_CONFIG := config@1
32653268
DEVICE_DTS_LOADADDR := 0x87000000
32663269
DEVICE_PACKAGES += kmod-mt7603 kmod-mt7915-firmware -uboot-envtools
32673270
KERNEL := kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
3268-
IMAGE_SIZE := 15424k
3271+
IMAGE_SIZE := 30848k
32693272
endef
32703273
TARGET_DEVICES += ubnt_unifi-6-lite
32713274

target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2020 OpenWrt.org
2+
# Copyright (C) 2020-2026 OpenWrt.org
33
#
44

55
. /lib/functions.sh
@@ -10,6 +10,7 @@ board_config_update
1010
case "$(board_name)" in
1111
ubnt,edgerouter-x|\
1212
ubnt,edgerouter-x-sfp|\
13+
ubnt,unifi-6-lite|\
1314
iptime,ax2002m|\
1415
iptime,ax2004m)
1516
ucidef_set_compat_version "2.0"

0 commit comments

Comments
 (0)