ramips: add support for TP-Link RE210 v1
authorChristoph Krapp <achterin@googlemail.com>
Mon, 2 Mar 2020 21:24:19 +0000 (22:24 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 9 Mar 2020 20:47:56 +0000 (21:47 +0100)
commit2a18840cc773425668fdfd99429d74ef0ab3a8ef
treecfc08c2ffd618824a54d27465e68851c61662a93
parentf9f62d43e448f58d25749efa8b2aabc7f2d51e53
ramips: add support for TP-Link RE210 v1

Hardware
--------

SoC:   MediaTek MT7620A
RAM:   64MB
FLASH: 8MB SPI
WLAN:  2G: MediaTek MT7620A
       5G: MediaTek MT7610EN
ETH:   1x 10/100/1000M (Atheros AR8035)
LED:   RSSI (orange/green)
       WiFi 2G (green)
       WiFi 5G (green)
       Power (green)
       System (red / green)
BTN:   Power
       Reset
       LED
       WPS

Serial
------

P1 - Tx
P2 - Rx
P3 - GND
P4 - VCC

Pin 4 is the one closest to the LAN port.

MAC overview
------------

WAN *:4c uboot 0x1fc00
2.4 *:4c uboot 0x1fc00
5   *:4e uboot 0x1fc00 +2

Installation
------------

Web interface:
It is possible to upgrade to OpenWrt via the web interface. However, the
OEM firmware upgrade file is required and a tool to fix the MD5 sum of
the header. This procedure overwrites U-Boot and there is not failsafe /
recovery mode present! To prepare an image, you need to take the header
and U-Boot (i.e. 0x200 + 0x20000 bytes) from an OEM firmware file and
attach the factory image to it. Then fix the header MD5Sum1.

Serial/TFTP:
You can use initramfs for booting via RAM or flash the image directly.

Additional Notes:
If the web interface upgrade fails, you have to open your device and
attach serial console. Since the web upgrade overwrites the boot loader,
you might also brick your device.

In order to flash back to stock, the first header and U-Boot needs to be
stripped from the original firmware.

Signed-off-by: Christoph Krapp <achterin@googlemail.com>
[change rssi LED labels]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7620a_tplink_re200-v1.dts
target/linux/ramips/dts/mt7620a_tplink_re210-v1.dts [new file with mode: 0644]
target/linux/ramips/dts/mt7620a_tplink_re2x0-v1.dtsi [new file with mode: 0644]
target/linux/ramips/image/mt7620.mk
target/linux/ramips/mt7620/base-files/etc/board.d/02_network