From 7a6a3494450c4e3a41dd8cc8f3cadb525d5e966b Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Sun, 3 Oct 2021 00:19:58 +0200 Subject: apm821xx: WNDAP620 + WNDAP660: reorganize partitions for 5.10 Due to 5.10 increased kernel size, the current 4MiB-ish kernel partition got too small. Luckily, netgear's uboot environment is setup to read 0x60000 bytes from the kernel partition location. ... While at it: also do some cleanups in the DTS in there. The original (re-)installation described in commit d82d84694e60 ("apm821xx: add support for the Netgear WNDAP620 and WNDAP660") seemed to be still working for now. What I noticed though is that the bigger initramfs images needed to use a different destination address (1000000) to prevent it overwriting itself during decompression. i.e: # tftp 1000000 openwrt-...-wndap620-initramfs-kernel.bin # bootm However, in case of the WNDAP620+660 the factory.img image can be written directly to the flash through uboot. Signed-off-by: Christian Lamparter --- target/linux/apm821xx/dts/netgear-wndap6x0.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'target/linux/apm821xx/dts') diff --git a/target/linux/apm821xx/dts/netgear-wndap6x0.dtsi b/target/linux/apm821xx/dts/netgear-wndap6x0.dtsi index fc428bca0f..88284d0237 100644 --- a/target/linux/apm821xx/dts/netgear-wndap6x0.dtsi +++ b/target/linux/apm821xx/dts/netgear-wndap6x0.dtsi @@ -61,12 +61,12 @@ * offset (0x110000) for an uImage binary. */ label = "kernel"; - reg = <0x00110000 0x003f0000>; + reg = <0x00110000 0x005f0000>; }; - partition@500000 { + partition@700000 { label = "ubi"; - reg = <0x00500000 0x016d0000>; + reg = <0x00700000 0x014d0000>; }; partition@1bd0000 { @@ -83,13 +83,13 @@ partition@1be0000 { label = "var"; - reg = <0x01be0000 0x0400000>; + reg = <0x01be0000 0x00400000>; read-only; }; partition@1fe0000 { label = "manudata"; - reg = <0x01fe0000 0x20000 >; + reg = <0x01fe0000 0x00020000>; read-only; }; }; -- cgit v1.2.3