openwrt/target/linux/ramips
Adrian Schmutzler 1deaf695ec ramips: fix/tidy up 4M tplink-v2-image flash layouts
For the TP-Link 4M devices with tplink-v2-image recipe
(mktplinkfw2.c), there are two different flash layouts based
on the size of the (u)boot partition:

device         uboot    OEM firmware  OpenWrt (incl. config)
tl-wr840n-v5   0x20000  0x3c0000      0x3d0000
tl-wr841n-v14  0x10000  0x3d0000      0x3e0000

In both cases, the 0x10000 config partition is used for the firmware
partition as well due to the limited space available and since it's
recreated by the OEM firmware anyway.

However, the TFTP flashing process will only copy data up to the
size of the initial (OEM) firmware size. Therefore, while we can
use the bigger partition to have additional erase blocks on the
device, we have to limit the image sizes to the TFTP limits.

So far, only one layout definition has been set up in mktplinkfw2.c
for 4M mediatek devices. This adds a second one and assigns them
to the devices so the image sizes are correctly restrained.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-08-03 12:17:08 +02:00
..
base-files/etc treewide: drop shebang from non-executable target files 2020-06-16 14:26:33 +02:00
dts ramips: add support for JS76x8 series DEV boards 2020-07-31 11:40:15 +02:00
files/drivers ramips: add arl_table support for MT7530 2020-07-17 11:00:33 +02:00
image ramips: fix/tidy up 4M tplink-v2-image flash layouts 2020-08-03 12:17:08 +02:00
mt76x8 ramips: add support for JS76x8 series DEV boards 2020-07-31 11:40:15 +02:00
mt7620 ramips: switch MT7620 subtarget to 5.4 2020-07-22 17:20:38 +02:00
mt7621 target: replace remaining occurrences of ifconfig with ip 2020-08-03 10:42:04 +02:00
patches-4.14 kernel: Update kernel 4.14 to version 4.14.187 2020-07-04 21:12:42 +02:00
patches-5.4 kernel: bump 5.4 to 5.4.52 2020-07-17 11:00:33 +02:00
rt288x ramips: remove default switch setup in 02_network 2020-05-19 19:03:02 +08:00
rt305x ramips: improve LED support for D-Link DIR-615 D series 2020-07-21 11:59:17 +02:00
rt3883 treewide: drop shebang from non-executable target files 2020-06-16 14:26:33 +02:00
Makefile ramips: add 5.4 as testing kernel 2020-04-12 22:27:18 +08:00
modules.mk ramips: fix path for dma-ralink and mtk-hsdma 2020-04-05 18:16:17 +08:00