immortalwrt/tools/firmware-utils/src
Adrian Schmutzler 8aff25ad16
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 21:00:46 +08:00
..
add_header.c update source 2017-09-06 19:19:45 +08:00
addpattern.c update source 2017-09-06 19:19:45 +08:00
asustrx.c update source 2017-09-06 19:19:45 +08:00
bcm_tag.h update source 2017-09-06 19:19:45 +08:00
bcmalgo.c update source 2017-09-06 19:19:45 +08:00
bcmalgo.h update source 2017-09-06 19:19:45 +08:00
buffalo-enc.c update source 2017-09-06 19:19:45 +08:00
buffalo-lib.c update source 2017-09-06 19:19:45 +08:00
buffalo-lib.h update source 2017-09-06 19:19:45 +08:00
buffalo-tag.c update source 2017-09-06 19:19:45 +08:00
buffalo-tftp.c update source 2017-09-06 19:19:45 +08:00
csysimg.h update source 2017-09-06 19:19:45 +08:00
cyg_crc16.c update source 2017-09-06 19:19:45 +08:00
cyg_crc32.c update source 2017-09-06 19:19:45 +08:00
cyg_crc.h update source 2017-09-06 19:19:45 +08:00
dgfirmware.c firmware-utils/mksenaofw: fix possible memory leak 2020-01-21 14:33:54 +08:00
dgn3500sum.c update source 2017-09-06 19:19:45 +08:00
dns313-header.c firmware-utils/mksenaofw: fix possible memory leak 2020-01-21 14:33:54 +08:00
edimax_fw_header.c update source 2017-09-06 19:19:45 +08:00
encode_crc.c update source 2017-09-06 19:19:45 +08:00
fix-u-media-header.c update source 2017-09-06 19:19:45 +08:00
fw.h firmware-utils: mkfwimage: fix memcpy and strncpy usage 2020-07-12 11:57:40 +08:00
hcsmakeimage.c firmware-utils/hcsmakeimage: fix possible memory leak and resource leaks 2020-07-09 12:04:37 +08:00
imagetag_cmdline.c update source 2017-09-06 19:19:45 +08:00
imagetag_cmdline.h update source 2017-09-06 19:19:45 +08:00
imagetag.c update source 2017-09-06 19:19:45 +08:00
imagetag.ggo update source 2017-09-06 19:19:45 +08:00
jcgimage.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
lxlfw.c mkrasimage: fix segmentation fault 2020-03-02 17:53:40 +08:00
lzma2eva.c update source 2017-09-06 19:19:45 +08:00
makeamitbin.c update source 2017-09-06 19:19:45 +08:00
md5.c update source 2017-09-06 19:19:45 +08:00
md5.h update source 2017-09-06 19:19:45 +08:00
mkbrncmdline.c update source 2017-09-06 19:19:45 +08:00
mkbrnimg.c update source 2017-09-06 19:19:45 +08:00
mkbuffaloimg.c update source 2017-09-06 19:19:45 +08:00
mkcameofw.c update source 2017-09-06 19:19:45 +08:00
mkcasfw.c update source 2017-09-06 19:19:45 +08:00
mkchkimg.c mkchkimg: use higher version code 2020-06-11 11:58:42 +08:00
mkcsysimg.c update source 2017-09-06 19:19:45 +08:00
mkdapimg2.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
mkdapimg.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
mkdhpimg.c update source 2017-09-06 19:19:45 +08:00
mkdlinkfw-lib.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
mkdlinkfw-lib.h ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
mkdlinkfw.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
mkdniimg.c update source 2017-09-06 19:19:45 +08:00
mkedimaximg.c Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
mkfwimage2.c firmware-utils/mksenaofw: fix possible memory leak 2020-01-21 14:33:54 +08:00
mkfwimage.c firmware-utils: mkfwimage: fix memcpy and strncpy usage 2020-07-12 11:57:40 +08:00
mkheader_gemtek.c update source 2017-09-06 19:19:45 +08:00
mkhilinkfw.c update source 2017-09-06 19:19:45 +08:00
mkmerakifw-old.c update source 2017-09-06 19:19:45 +08:00
mkmerakifw.c update source 2017-09-06 19:19:45 +08:00
mkmylofw.c update source 2017-09-06 19:19:45 +08:00
mkplanexfw.c update source 2017-09-06 19:19:45 +08:00
mkporayfw.c update source 2017-09-06 19:19:45 +08:00
mkrasimage.c mkrasimage: fix segmentation fault 2020-03-02 17:53:40 +08:00
mkrtn56uimg.c update source 2017-09-06 19:19:45 +08:00
mksenaofw.c firmware-utils/mksenaofw: fix possible memory leak 2020-01-21 14:33:54 +08:00
mksercommfw.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
mktitanimg.c firmware-utils/mksenaofw: fix possible memory leak 2020-01-21 14:33:54 +08:00
mktitanimg.h update source 2017-09-06 19:19:45 +08:00
mktplinkfw2.c ramips: fix/tidy up 4M tplink-v2-image flash layouts 2020-08-03 21:00:46 +08:00
mktplinkfw-lib.c Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
mktplinkfw-lib.h Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
mktplinkfw.c firmware-utils/mksenaofw: fix possible memory leak 2020-01-21 14:33:54 +08:00
mkwrggimg.c update source 2017-09-06 19:19:45 +08:00
mkwrgimg.c update source 2017-09-06 19:19:45 +08:00
mkzcfw.c update source 2017-09-06 19:19:45 +08:00
mkzynfw.c update source 2017-09-06 19:19:45 +08:00
motorola-bin.c update source 2017-09-06 19:19:45 +08:00
myloader.h update source 2017-09-06 19:19:45 +08:00
nand_ecc.c update source 2017-09-06 19:19:45 +08:00
nec-enc.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
osbridge-crc.c update source 2017-09-06 19:19:45 +08:00
oseama.c update source 2017-09-06 19:19:45 +08:00
otrx.c Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
pc1crypt.c update source 2017-09-06 19:19:45 +08:00
ptgen.c firmware-utils: sync with upstream source 2020-07-23 01:14:02 +08:00
seama.c update source 2017-09-06 19:19:45 +08:00
seama.h update source 2017-09-06 19:19:45 +08:00
sha1.c update source 2017-09-06 19:19:45 +08:00
sha1.h update source 2017-09-06 19:19:45 +08:00
spw303v.c update source 2017-09-06 19:19:45 +08:00
srec2bin.c update source 2017-09-06 19:19:45 +08:00
tplink-safeloader.c firmware-utils: sync with upstream source 2020-07-23 01:14:02 +08:00
trx2edips.c update source 2017-09-06 19:19:45 +08:00
trx2usr.c update source 2017-09-06 19:19:45 +08:00
trx.c update source 2017-09-06 19:19:45 +08:00
uimage_padhdr.c ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
utils.h firmware-utils: mkfwimage: fix memcpy and strncpy usage 2020-07-12 11:57:40 +08:00
wrt400n.c update source 2017-09-06 19:19:45 +08:00
xorimage.c Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
zyimage.c update source 2017-09-06 19:19:45 +08:00
zynos.h update source 2017-09-06 19:19:45 +08:00
zyxbcm.c update source 2017-09-06 19:19:45 +08:00