mediatek: filogic: add TP-Link TL-XDR6086 and TL-XDR6088
authorDaniel Golle <daniel@makrotopia.org>
Fri, 2 Dec 2022 04:30:23 +0000 (04:30 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 11 Dec 2022 00:56:46 +0000 (00:56 +0000)
commitdd4d33a684033168092e1337b2d5346e52cf3c76
tree826b87e8149627306dcc55218c3f546a570cddcc
parentc97b569788ac14dad5e6574540ce2b070a0057db
mediatek: filogic: add TP-Link TL-XDR6086 and TL-XDR6088

Add support for TP-Link TL-XDR6086 and TL-XDR6088 WiFi 6 routers.

Specs:
 * SoC: MediaTek MT7986A
 * RAM: DDR3 512MiB (ESMT M15T4G16256A)
 * Flash: SPI-NAND 128 MiB (ESMT F50L1G41LB)
 * WLAN:
    2.4G: MediaTek MT7976GN
    5G: MediaTek MT7976AN
 * Ethernet:
    GMAC0 connected to MediaTek MT7531A
     = 1x gigE port + 1x Realtek RTL8221B on TL-XDR6086
     = 4x gigE port + 1x Realtek RTL8221B on TL-XDR6088
    GMAC1 connected to Realtek RTL8221B
 * USB: 1x USB 3.0
 * LEDs:
   * Status: red/green
   * Turbo: green
 * Buttons: Reset, WPS/Turbo (?)
 * Power : 12 VDC, 4A

As the bootloader of the device is locked down, installation is currently
only possible by using a root-shell exploit in the stock firmware and
subsequently writing bl2 and fip images. Fortunately the stock firmware
offers raw access to the flash chip as a whole via /dev/mtd9...

dd bs=131072 conv=sync of=/dev/mtdblock9 if=/tmp/openwrt-mediatek-filogic-tplink_tl-xdr6086-preloader.bin
dd bs=131072 conv=sync of=/dev/mtdblock9 seek=28 if=/tmp/openwrt-mediatek-filogic-tplink_tl-xdr6086-bl31-uboot.fip
(replace xdr6086 with xdr6088 depending on the actual device you got)

Based on initial steps done by @soxrok2212 and device tree improvements
and support for TL-XDR6088 done by @aiamadeus.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6086.dts [new file with mode: 0644]
target/linux/mediatek/dts/mt7986a-tplink-tl-xdr6088.dts [new file with mode: 0644]
target/linux/mediatek/dts/mt7986a-tplink-tl-xdr608x.dtsi [new file with mode: 0644]
target/linux/mediatek/filogic/base-files/etc/board.d/02_network
target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh
target/linux/mediatek/image/filogic.mk