|Version/Model||Launch Date||S/N||OpenWrt Version Supported||Model Specific Notes|
|v1.0||2014||-||15.05 (TD-W8970), trunk (TD-W8980)||-|
|Version||SoC||Ram||Flash||Network||Wireless NIC||Wireless Standard||USB||Serial||JTag||ADSL2+ Modem||VDSL2 Modem|
|v1.0||Lantiq XWay @500MHz||64 MiB||8 MiB||4x 1000mbps|| Atheros AR9287 (2.54GHz) |
+ Lantiq WAVE 300 (5GHz)
| a/b/g/n (300Mbps @2.54GHz |
+ 300Mbps @ 5GHz)
|2 x 2.0||YES||YES||YES||YES|
Manufacturer's site: http://www.tp-link.com/en/products/details/?categoryid=3788&model=TD-W9980
Serial console info:
|Pins (from top to bottom)||Tx, Rx, GND, VCC (3.3V) (not same order than td-w8980)|
|Pins for TD-W9980B (from top to bottom)||Rx, Tx, GND, VCC (3.3V) (different order than shown in picture above)|
t on the console to interrupt U-Boot autobooting.
Logon through serial by pressing
Enter and using: admin/1234.
Note: This will void your warranty
This case is pretty easy to open. First remove the four screws and then lift the case with a small flat screwdriver on the eight marked points of the case.
How To Flash the W9980 with Openwrt 15.05.1
Firstly download uboot file
Now put the device into "Boot from UART mode".
Before starting this process it is a good ideal to start a tftp server on your PC listening on its Ethernet interface on ip 192.168.1.2/24 (the default tftp server ip for the above uboot image)
Download the 15.05.1 image file and save it within the tftp server's directory https://downloads.openwrt.org/chaos_calmer/15.05.1/lantiq/xrx200/openwrt-15.05.1-lantiq-xrx200-TDW8970-sysupgrade.image
For ease connect the Ethernet cable to the router and PC before starting the boot process.
Connect a computer to the router via the JTAG (be careful not to fry the router with 5 Volts and use a logic converter to drop it down to the router's 3 Volt TX and RX pins)
Start a minicom or similar serial console software
Before turning on the router you will need to connect an additional cable throughout the whole period of the flash process. A soldered cable will work but an alligator clip connected to the GND on the JTAG and a small flathead screw driver with the other end of the cable stripped on the pad (shown in the image below) works well.
Temporarily connect the left side of R225 to GND (confirmed working; the red circled pad in the image above is confirmed working correctly for the W9980 - reportedly different for the very similar model w8980, to get into UART boot mode.
Power on the router
If successful you should see a message similar to this:
ROM VER: 1.1.4 CFG 04 EEPROM Data OK UART
Upload the U-Boot Image via:
cat u-boot.asc > /dev/ttyUSB0
Watch the loading progress via the minicom console and wait a few minutes until it boots the uboot file
Interrupt booting by pressing "t" key several times
Now we need to upload the new firmware via tftp and erase the OEM firmware via the following commands :
tftp $(loadaddr) openwrt-15.05.1-lantiq-xrx200-TDW8970-sysupgrade.image
sf erase 0x20000 0x7a0000
sf write $(loadaddr) 0x20000 0x$(filesize)
quickly disconnect UART boot cable and allow the router to boot normally.
You can now ssh into OpenWrt and start configuring the router.
This hack comes from member ejs on Kitz Forum. In this post, a description and link to required software is given.
The configuration (which is essential) is hidden (you need to become forum member), so I've added it here for ease of use.
dd if=openwrt-15.05.1-lantiq-xrx200-TDW8970-sysupgrade.image of=openwrt-15.05.1-lantiq-xrx200-TDW8970-sysupgrade-1.image bs=1310720 skip=1
java -jar StatPOSTer-20160306.jar
telnet 192.168.1.1 1023
From here, I followed the flash instructions for TD-W8970 by s7mx1 in the forum.
cat /dev/mtd0 > /var/usbdisk/sda1/mtd0 cat /dev/mtd1 > /var/usbdisk/sda1/mtd1 cat /dev/mtd2 > /var/usbdisk/sda1/mtd2 cat /dev/mtd3 > /var/usbdisk/sda1/mtd3 cat /dev/mtd4 > /var/usbdisk/sda1/mtd4 cat /dev/mtd5 > /var/usbdisk/sda1/mtd5 cat /dev/mtd6 > /var/usbdisk/sda1/mtd6
ls -la /var/usbdisk/sda1/mtd1
cat /var/usbdisk/sda1/openwrt-15.05.1-lantiq-xrx200-TDW8970-sysupgrade.image > /dev/mtdblock1 cat /var/usbdisk/sda1/openwrt-15.05.1-lantiq-xrx200-TDW8970-sysupgrade-1.image > /dev/mtdblock2
From here I decided to use the webinterface to upgrade to trunk with openwrt-lantiq-xrx200-TDW8980-squashfs-sysupgrade.bin, because it has dsl drivers on-board.
However, be aware that after the upgrade to trunk no web-interface is available any more (this is normal).
Otherwise check out the VDSL.BIN section for TP-Link TD-W8970.
The TD-W9980, is advertised to support at most ITU G.993.2. This excludes VDSL vectoring support. The DSL drivers in trunk actually are the drivers from TP-Link, and do not include vectoring support either. However, I've got this router to run with full vectoring support using a 5.7.6 (77f69e99cd0e0d4d58454880a21438543f1571dc) firmware from http://xdarklight.github.io/lantiq-xdsl-firmware-info/ on my line (NL/XS4ALL):
ATU-C Vendor ID: Broadcom 176.199 ATU-C System Vendor ID: Broadcom Chipset: Lantiq-VRX200 Unknown Firmware Version: 184.108.40.206.0.7 API Version: 220.127.116.11 XTSE Capabilities: 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2 Annex: B Line Mode: G.993.5 (VDSL2 with down- and upstream vectoring) Profile: 17a Line State: UP [0x801: showtime_tc_sync] Forward Error Correction Seconds (FECS): Near: 0 / Far: 31928 Errored seconds (ES): Near: 0 / Far: 11 Severely Errored Seconds (SES): Near: 0 / Far: 0 Loss of Signal Seconds (LOSS): Near: 0 / Far: 0 Unavailable Seconds (UAS): Near: 116 / Far: 116 Header Error Code Errors (HEC): Near: 0 / Far: 0 Non Pre-emtive CRC errors (CRC_P): Near: 0 / Far: 0 Pre-emtive CRC errors (CRCP_P): Near: 0 / Far: 0 Power Management Mode: L0 - Synchronized Latency / Interleave Delay: Down: Fast (0.15 ms) / Up: Interleave (8.0 ms) Data Rate: Down: 77.848 Mb/s / Up: 32.253 Mb/s Line Attenuation (LATN): Down: 9.2dB / Up: 7.7dB Signal Attenuation (SATN): Down: 9.2dB / Up: 7.6dB Noise Margin (SNR): Down: 4.1dB / Up: 5.0dB Aggregate Transmit Power (ACTATP): Down: -5.1dB / Up: 13.7dB Max. Attainable Data Rate (ATTNDR): Down: 85.842 Mb/s / Up: 35.400 Mb/s Line Uptime Seconds: 613 Line Uptime: 10m 13s
One awesome thing to mention (at least with trunk) is that the reset button resets the configuration, which is very nice. I couldn't find any notion of this, but because of the dsl port, the failsafe mode of openwrt (nicely triggered with the wps button on the back) doesn't make the device accessible. Probably because of something like this https://lists.openwrt.org/pipermail/openwrt-devel/2015-February/031071.html. Anyway, when I made some network changes which were totally wrong, holding the reset button saved the day, restoring the device back into standard openwrt configuration, allowing me to access it again.
Successfully tested on TD-W9980 Ver 1.0, adapted from TD-W8970 page.
The router's EEPROM size is 8MiB (8 388 608 bytes). Firsts 128KiB (131 072 bytes) are for bootloader, and the lasts 256KiB (262 144 bytes) aren't contained in any firmware download. If you loose it, only a previous firmware backup of this EEPROM part can be used to restore it. Between them, you should reflash the "midle" space (from 0x20000 to 0x7c0000, so it's 0x7a0000 sized, 7 995 392 bytes), it's the rootfs.
Obtain the firmware from TP-Link website. You need to care about model version v1. If the name of your TP-Link original firmware contains "boot", it means that it's likely to contains bootloader, 512 blank bytes, and the rootfs (you should see that the file is 512 bytes too big to be just bootloader + rootfs). Looking at it with an hexadecimal editor, with 512 bytes pages, you will see that if bootloader is taking the 256 first pages (0 to 255), but then the firmware doesn't start at the following page (256) but in page 257.
Here's the Linux command to cut the firsts 257 * 512 bytes :
dd if=orig.bin of=tplink.bin skip=257 bs=512
Then the "tplink.bin" file should be exactly 7 995 392 bytes. It can be used to reflash the space from 0x20000, for 7a0000 bytes. I suppose that the space from 0 to 0x20000 can also re-programmed using the first 131 072 bytes of the TP-Link firmware files but I didn't tested it.
setenv ipaddr 192.168.1.1
setenv serverip 192.168.1.2
setenv bootargs 'board=WD8970'
tftpboot 0x80800000 tplink.bin
sf erase 0x20000 0x7a0000
sf write 0x80800000 0x20000 0x7a0000
The rootfs area is from 0x20000 to 0x7c0000 (0x7a0000 sized), erase command is from 0x20000, during 0x7a0000, and write is also from 0x20000, during 0x7a0000. You can double check the image size in after the tftpboot command. Be careful when erasing/writing the flash the radio is required for WLAN and should not be overwritten or erased. A backup is nice to have if something went wrong, it stores also the MAC address for your WLAN (ART Partition).
This is the result of cat /proc/mtd
|GMII||6 (marked as CPU)|