aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--target/linux/ramips/dts/TL-WR840NV5.dts8
-rw-r--r--target/linux/ramips/image/mt76x8.mk2
-rw-r--r--tools/firmware-utils/src/mktplinkfw2.c2
3 files changed, 3 insertions, 9 deletions
diff --git a/target/linux/ramips/dts/TL-WR840NV5.dts b/target/linux/ramips/dts/TL-WR840NV5.dts
index 340f2bbd83..ecc0fedd59 100644
--- a/target/linux/ramips/dts/TL-WR840NV5.dts
+++ b/target/linux/ramips/dts/TL-WR840NV5.dts
@@ -65,13 +65,7 @@
partition@20000 {
label = "firmware";
- reg = <0x20000 0x3c0000>;
- };
-
- partition@3e0000 {
- label = "config";
- reg = <0x3e0000 0x10000>;
- read-only;
+ reg = <0x20000 0x3d0000>;
};
factory: partition@3f0000 {
diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk
index 60864cfed3..8332c7c423 100644
--- a/target/linux/ramips/image/mt76x8.mk
+++ b/target/linux/ramips/image/mt76x8.mk
@@ -112,7 +112,7 @@ TARGET_DEVICES += tl-wr840n-v4
define Device/tl-wr840n-v5
DTS := TL-WR840NV5
- IMAGE_SIZE := 3840k
+ IMAGE_SIZE := 3904k
DEVICE_TITLE := TP-Link TL-WR840N v5
TPLINK_FLASHLAYOUT := 4Mmtk
TPLINK_HWID := 0x08400005
diff --git a/tools/firmware-utils/src/mktplinkfw2.c b/tools/firmware-utils/src/mktplinkfw2.c
index 3cb5ba0835..dead49e7af 100644
--- a/tools/firmware-utils/src/mktplinkfw2.c
+++ b/tools/firmware-utils/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,