ipq806x: Enlarge R7800 flash - use netgear partition
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 3 Jun 2018 13:33:15 +0000 (16:33 +0300)
committerMathias Kresin <dev@kresin.me>
Wed, 27 Jun 2018 20:10:23 +0000 (22:10 +0200)
Increase the available flash memory size in Netgear R7800
by taking into the use 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

Tested with Openwrt master r7093-4fdc6ca31b and OEM V1.0.2.52

Reference to forum discussion in Netgear R7800 exploration thread:
https://forum.lede-project.org/t/netgear-r7800-exploration-ipq8065-qca9984/285/1118
(messages 1118-1158)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8065-r7800.dts

index fbacc039d6c3895c316a733b70c598205ca2a334..c80f292b72e54bcf47be685719a2c1e45339142e 100644 (file)
 
                                        ubi@1880000 {
                                                label = "ubi";
-                                               reg = <0x1880000 0x1C00000>;
-                                       };
-
-                                       netgear@3480000 {
-                                               label = "netgear";
-                                               reg = <0x3480000 0x4480000>;
-                                               read-only;
+                                               reg = <0x1880000 0x6080000>;
                                        };
 
                                        reserve@7900000 {
 
                                        firmware@1480000 {
                                                label = "firmware";
-                                               reg = <0x1480000 0x2000000>;
+                                               reg = <0x1480000 0x6480000>;
                                        };
                                };
                        };