From 77227912aaf83820d77373d559fc68d0be7a5e65 Mon Sep 17 00:00:00 2001 From: Serg Studzinskii Date: Sun, 24 Dec 2017 18:00:13 +0200 Subject: [PATCH] ramips: tl-wr840n-v5: increase firmware partition for 4Mmtk layot According to console log during TP-Link TL-WR840N v5 OEM firmware update procedure 0x3e0000-0x3f0000 64kB "config" partition, which is used to store router's configuration settings, is erased and recreated again during every OEM firmware update procedure, thus does not contain any valuable factory data. So it is conviniant to use this extra 64kB erase block for jffs overlay due limited flash size on this device like it used on TP-Link's ar71xx boards. Signed-off-by: Serg Studzinskii --- src/mktplinkfw2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mktplinkfw2.c b/src/mktplinkfw2.c index 3cb5ba0..dead49e 100644 --- a/src/mktplinkfw2.c +++ b/src/mktplinkfw2.c @@ -124,7 +124,7 @@ char md5salt_boot[MD5SUM_LEN] = { static struct flash_layout layouts[] = { { .id = "4Mmtk", - .fw_max_len = 0x3c0000, + .fw_max_len = 0x3d0000, .kernel_la = 0x80000000, .kernel_ep = 0x80000000, .rootfs_ofs = 0x140000, -- 2.30.2