tplink-safeloader: add support for cpe710-v2
authortimnoack <tim@noack.id>
Sun, 13 Oct 2024 08:49:14 +0000 (10:49 +0200)
committerSander Vanheule <sander@svanheule.net>
Mon, 14 Oct 2024 11:32:13 +0000 (13:32 +0200)
TP-Link CPE710-v2 is an outdoor wireless CPE for 5 GHz with one Ethernet
port based on the AP152 reference board. In contrast to the CPE710-v1,
the factory firmware updater expects the software version to be > 0.0.X
and the compatibility level to be >= 1.

Specifications:
- SoC: QCA9563-AL3A MIPS 74kc @ 775MHz, AHB @ 258MHz
- RAM: 128MiB DDR2 @ 650MHz
- Flash: 16MiB SPI NOR Based on the GD25Q128
- Wi-Fi 5Ghz: ath10k chip (802.11ac for up to 867Mbps on 5GHz wireless
  data rate), based on the QCA9896
- Ethernet: one 1GbE port
- 23dBi high-gain directional 2×2 MIMO parabolic antenna
- Power, LAN, WLAN5G Blue LEDs

Flashing instructions:
Flash factory image through stock firmware WEB UI or through TFTP
To get to TFTP recovery just hold reset button while powering on for
around 30-40 seconds and release.
Rename factory image to recovery.bin
Stock TFTP server IP:192.168.0.100
Stock device TFTP address:192.168.0.254

Signed-off-by: Tim Noack <tim@noack.id>
src/tplink-safeloader.c

index af6211b20025b0d1cf6417178705597fef0a6e01..9b2f7d080226015693c5a3dd775c685ff017933b 100644 (file)
@@ -669,6 +669,44 @@ static struct device_info boards[] = {
                .first_sysupgrade_partition = "os-image",
                .last_sysupgrade_partition = "support-list",
        },
+       /** Firmware layout for the CPE710 V2 */
+       {
+               .id     = "CPE710V2",
+               .vendor = "CPE710(TP-LINK|UN|AC866-5|00000000):2.0\r\n",
+               .support_list =
+                       "SupportList:\r\n"
+                       "CPE710(TP-LINK|UN|AC866-5|00000000):2.0\r\n"
+                       "CPE710(TP-LINK|EU|AC866-5|45550000):2.0\r\n"
+                       "CPE710(TP-LINK|US|AC866-5|55530000):2.0\r\n"
+                       "CPE710(TP-LINK|UN|AC866-5):2.0\r\n"
+                       "CPE710(TP-LINK|EU|AC866-5):2.0\r\n"
+                       "CPE710(TP-LINK|US|AC866-5):2.0\r\n",
+               .part_trail = 0xff,
+               .soft_ver = SOFT_VER_NUMERIC(1, 0, 0),
+               .soft_ver_compat_level = 1,
+
+               .partitions = {
+                       {"fs-uboot", 0x00000, 0x50000},
+                       {"partition-table", 0x50000, 0x02000},
+                       {"default-mac", 0x60000, 0x00020},
+                       {"serial-number", 0x60100, 0x00020},
+                       {"product-info", 0x61100, 0x00100},
+                       {"device-info", 0x61400, 0x00400},
+                       {"signature", 0x62000, 0x00400},
+                       {"device-id", 0x63000, 0x00100},
+                       {"firmware", 0x70000, 0xf40000},
+                       {"soft-version", 0xfb0000, 0x00100},
+                       {"support-list", 0xfb1000, 0x01000},
+                       {"user-config", 0xfc0000, 0x10000},
+                       {"default-config", 0xfd0000, 0x10000},
+                       {"log", 0xfe0000, 0x10000},
+                       {"radio", 0xff0000, 0x10000},
+                       {NULL, 0, 0}
+               },
+
+               .first_sysupgrade_partition = "os-image",
+               .last_sysupgrade_partition = "support-list",
+       },
 
        {
                .id     = "WBS210",