ipq806x: Enlarge D7800 flash - use netgear partition
authorMike Lothian <mike@fireburn.co.uk>
Mon, 17 May 2021 09:15:20 +0000 (10:15 +0100)
committerPetr Štetiar <ynezz@true.cz>
Tue, 8 Feb 2022 11:52:14 +0000 (12:52 +0100)
commita0ad07ea039c125c28b5b3893c6f935cf68dfdd5
tree430111a8c70bb6b4e70861522dd190245363d9e4
parent5406684087815d3f66df9d8318e15db7137148f5
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>
target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-d7800.dts
target/linux/ipq806x/image/generic.mk