tplink-safeloader: TP-Link EAP615-Wall v1 support staging/stintel/eap615
authorStijn Tintel <stijn@linux-ipv6.be>
Thu, 27 Jan 2022 09:35:54 +0000 (11:35 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Sun, 20 Feb 2022 13:15:11 +0000 (15:15 +0200)
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 <stijn@linux-ipv6.be>
src/tplink-safeloader.c

index d0d345dcff13855ac741b3837b629e1b1c2c787b..b5dcf733cb1bea4352c080708a4e9aa0b914bb7a 100644 (file)
@@ -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",