From 57d0e315cdaa34c922218e4d6851b52a71346786 Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Thu, 27 Jan 2022 11:35:54 +0200 Subject: [PATCH] tplink-safeloader: TP-Link EAP615-Wall v1 support Support creating images for the TP-Link EAP615-Wall v1. Original partition layout: partition fs-uboot base 0x00000 size 0x80000 partition partition-table base 0x80000 size 0x02000 partition default-mac base 0x90000 size 0x01000 partition support-list base 0x91000 size 0x00100 partition product-info base 0x91100 size 0x00400 partition soft-version base 0x92000 size 0x00100 partition os-image base 0xa0000 size 0x380000 partition file-system base 0x420000 size 0x970000 partition user-config base 0xd90000 size 0x60000 partition mutil-log base 0xf30000 size 0x80000 partition oops base 0xfb0000 size 0x40000 partition radio base 0xff0000 size 0x10000 In OpenWrt, the os-image and file-system partitions are merged into a single firmware partition. Signed-off-by: Stijn Tintel Reviewed-by: Sander Vanheule --- src/tplink-safeloader.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/tplink-safeloader.c b/src/tplink-safeloader.c index d0d345d..b5dcf73 100644 --- a/src/tplink-safeloader.c +++ b/src/tplink-safeloader.c @@ -1705,6 +1705,37 @@ static struct device_info boards[] = { .last_sysupgrade_partition = "file-system" }, + /** Firmware layout for the EAP615-Wall v1 */ + { + .id = "EAP615-WALL-V1", + .soft_ver = SOFT_VER_DEFAULT, + .soft_ver_compat_level = 1, + .support_list = + "SupportList:\r\n" + "EAP615-Wall(TP-Link|UN|AX1800-D):1.0\r\n" + "EAP615-Wall(TP-Link|CA|AX1800-D):1.0\r\n" + "EAP615-Wall(TP-Link|JP|AX1800-D):1.0\r\n", + .part_trail = PART_TRAIL_NONE, + + .partitions = { + {"fs-uboot", 0x00000, 0x80000}, + {"partition-table", 0x80000, 0x02000}, + {"default-mac", 0x90000, 0x01000}, + {"support-list", 0x91000, 0x00100}, + {"product-info", 0x91100, 0x00400}, + {"soft-version", 0x92000, 0x00100}, + {"firmware", 0xa0000, 0xcf0000}, + {"user-config", 0xd90000, 0x60000}, + {"mutil-log", 0xf30000, 0x80000}, + {"oops", 0xfb0000, 0x40000}, + {"radio", 0xff0000, 0x10000}, + {NULL, 0, 0} + }, + + .first_sysupgrade_partition = "os-image", + .last_sysupgrade_partition = "file-system" + }, + /** Firmware layout for the TL-WA1201 v2 */ { .id = "TL-WA1201-V2", -- 2.30.2