DONOTMERGE ath79: correct safeloader partition table for EAP120
authorSander Vanheule <sander@svanheule.net>
Sun, 19 Mar 2023 09:27:33 +0000 (10:27 +0100)
committerSander Vanheule <sander@svanheule.net>
Sun, 19 Mar 2023 10:03:45 +0000 (11:03 +0100)
tools/firmware-utils/patches/0002-tplink-safeloader-EAP120-resize-partition-table.patch [new file with mode: 0644]

diff --git a/tools/firmware-utils/patches/0002-tplink-safeloader-EAP120-resize-partition-table.patch b/tools/firmware-utils/patches/0002-tplink-safeloader-EAP120-resize-partition-table.patch
new file mode 100644 (file)
index 0000000..66ee783
--- /dev/null
@@ -0,0 +1,33 @@
+From e083b61497bafc820e706d7069a9a5284a2da9d2 Mon Sep 17 00:00:00 2001
+From: Sander Vanheule <sander@svanheule.net>
+Date: Sun, 19 Mar 2023 10:22:29 +0100
+Subject: [PATCH 2/2] tplink-safeloader: EAP120: resize partition table
+
+---
+ src/tplink-safeloader.c | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/src/tplink-safeloader.c b/src/tplink-safeloader.c
+index 4ad898b2fb97..81c7168c3172 100644
+--- a/src/tplink-safeloader.c
++++ b/src/tplink-safeloader.c
+@@ -1802,11 +1802,11 @@ static struct device_info boards[] = {
+                       {"support-list", 0x31000, 0x00100},
+                       {"product-info", 0x31100, 0x00100},
+                       {"soft-version", 0x32000, 0x00100},
+-                      {"firmware", 0x40000, 0x780000},
+-                      {"user-config", 0x7c0000, 0x10000},
+-                      {"backup-config", 0x7d0000, 0x10000},
+-                      {"log", 0x7e0000, 0x10000},
+-                      {"radio", 0x7f0000, 0x10000},
++                      {"firmware", 0x40000, 0xf80000},
++                      {"user-config", 0xfc0000, 0x10000},
++                      {"backup-config", 0xfd0000, 0x10000},
++                      {"log", 0xfe0000, 0x10000},
++                      {"radio", 0xff0000, 0x10000},
+                       {NULL, 0, 0}
+               },
+-- 
+2.39.2
+