aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x
diff options
context:
space:
mode:
authorMike Lothian <mike@fireburn.co.uk>2021-05-17 10:15:20 +0100
committerPetr Štetiar <ynezz@true.cz>2022-02-08 12:52:14 +0100
commita0ad07ea039c125c28b5b3893c6f935cf68dfdd5 (patch)
tree430111a8c70bb6b4e70861522dd190245363d9e4 /target/linux/ipq806x
parent5406684087815d3f66df9d8318e15db7137148f5 (diff)
downloadupstream-a0ad07ea039c125c28b5b3893c6f935cf68dfdd5.tar.gz
upstream-a0ad07ea039c125c28b5b3893c6f935cf68dfdd5.tar.bz2
upstream-a0ad07ea039c125c28b5b3893c6f935cf68dfdd5.zip
ipq806x: Enlarge D7800 flash - use netgear partition
Increase the available flash memory size in Netgear R7800 by repurposing the unused "netgear" partition that is located after the firmware partition. Available flash space for kernel+rootfs+overlay increases by 68 MB from 32 MB to 100 MB. In a typical build, overlay space increases from 15 to 85, increasing the package installation possibilities greatly. Reverting to the OEM firmware is still possible, as the OEM firmware contains logic to initialise the "netgear" partition if its contents do not match expectations. In OEM firmware, "netgear" contains 6 UBI sub-partitions that are defined in /etc/netgear.cfg and initialisation is done by /etc/preinit This is based on https://github.com/openwrt/openwrt/commit/fb8a578aa70572b3e56b64d296e22c2931e77b69 Signed-off-by: Mike Lothian <mike@fireburn.co.uk>
Diffstat (limited to 'target/linux/ipq806x')
-rw-r--r--target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts8
-rw-r--r--target/linux/ipq806x/image/generic.mk3
2 files changed, 4 insertions, 7 deletions
diff --git a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts
index b8314a6bd0..2f259150fa 100644
--- a/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts
+++ b/target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts
@@ -312,13 +312,7 @@
ubi@1880000 {
label = "ubi";
- reg = <0x1880000 0x1C00000>;
- };
-
- netgear@3480000 {
- label = "netgear";
- reg = <0x3480000 0x4480000>;
- read-only;
+ reg = <0x1880000 0x6080000>;
};
reserve@7900000 {
diff --git a/target/linux/ipq806x/image/generic.mk b/target/linux/ipq806x/image/generic.mk
index 4fdf656b4b..21b309376f 100644
--- a/target/linux/ipq806x/image/generic.mk
+++ b/target/linux/ipq806x/image/generic.mk
@@ -242,6 +242,9 @@ define Device/netgear_d7800
BOARD_NAME := d7800
SUPPORTED_DEVICES += d7800
DEVICE_PACKAGES := ath10k-firmware-qca99x0-ct
+ DEVICE_COMPAT_VERSION := 2.0
+ DEVICE_COMPAT_MESSAGE := Sysupgrade does not work due to rootfs ubi partition size change. \
+ Use factory image with the TFTP recovery flash routine.
endef
TARGET_DEVICES += netgear_d7800