[OpenWrt-Devel] [PATCH v2 0/2] TP-LINK CPE210/220/510/520

Matthias Schiffer mschiffer at universe-factory.net
Tue Nov 25 14:53:45 EST 2014

Here is version 2 of my CPE210/220/510/520 patchset.

Changes since the RFC:

* The firmware build tool has been renamed to tplink-safeloader

  As TP-LINK has started using a new image format with a 0x03 in the first byte
  on some of its devices (e.g. Archer C2), let's keep the name mktplinkfw3 for
  a tool for that format. The format for the SafeLoader is completely different,
  so let the name of the tool reflect that.

* Various fixes in the firmware tool

  There were multiple mistakes in the firmware generator which would prevent
  generated images to be flashed via the Web UI of the stock firmware. With the
  fixed generator, images can be flashed both via TFTP and the Web UI.

* LAN and WAN have been switched

  While the choice of WAN and LAN roles is arbitrary as the ports are labeled as
  LAN0 and LAN1, I've changed LAN to LAN0 (the PoE port) and WAN to LAN1 to
  match the mappings used on Ubiquiti NanoStations.

Matthias Schiffer (2):
  firmware-utils: add new tool tplink-safeloader for the new TP-LINK
    Pharos devices (CPE210/220/510/520)
  ar71xx: add support for TP-LINK CPE210/220/510/520

 target/linux/ar71xx/base-files/etc/diag.sh         |   3 +
 .../ar71xx/base-files/etc/uci-defaults/01_leds     |  10 +
 .../ar71xx/base-files/etc/uci-defaults/02_network  |   7 +
 target/linux/ar71xx/base-files/lib/ar71xx.sh       |  40 +-
 .../ar71xx/base-files/lib/upgrade/platform.sh      |  32 ++
 target/linux/ar71xx/config-3.14                    |   1 +
 .../ar71xx/files/arch/mips/ath79/mach-cpe510.c     | 107 ++++
 target/linux/ar71xx/generic/profiles/tp-link.mk    |  11 +
 target/linux/ar71xx/image/Makefile                 |  29 ++
 .../610-MIPS-ath79-openwrt-machines.patch          |  23 +-
 tools/firmware-utils/Makefile                      |   1 +
 tools/firmware-utils/src/tplink-safeloader.c       | 538 +++++++++++++++++++++
 12 files changed, 795 insertions(+), 7 deletions(-)
 create mode 100644 target/linux/ar71xx/files/arch/mips/ath79/mach-cpe510.c
 create mode 100644 tools/firmware-utils/src/tplink-safeloader.c

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list