immortalwrt/tools
Sander Vanheule acc057d003
ath79: support for TP-Link EAP245 v1
TP-Link EAP245 v1 is an AC1750 (802.11ac Wave-1) ceiling mount access point.

Device specifications:
* SoC: QCA9563 @ 775MHz
* RAM: 128MiB DDR2
* Flash: 16MiB SPI-NOR
* Wireless 2.4GHz (SoC): b/g/n, 3x3
* Wireless 5Ghz (QCA9880): a/n/ac, 3x3
* Ethernet (AR8033): 1× 1GbE, 802.3at PoE

Flashing instructions:
* Upgrade the device to firmware v1.4.0 if necessary
* Exploit the user management page in the web interface to start telnetd
  by changing the username to `;/usr/sbin/telnetd -l/bin/sh&`.
* Immediately change the malformed username back to something valid
  (e.g. 'admin') to make ssh work again.
* Use the root shell via telnet to make /tmp world writeable (chmod 777)
* Extract /usr/bin/uclited from the device via ssh and apply the binary
  patch listed below. The patch is required to prevent `uclited -u` in
  the last step from crashing.
* Copy the patched uclited programme back to the device at /tmp/uclited
  (via ssh)
* Upload the factory image to /tmp/upgrade.bin (via ssh)
* Run `chmod +x /tmp/uclited && /tmp/uclited -u` to install OpenWrt.

    --- xxd uclited
    +++ xxd uclited-patched
    @@ -53796,7 +53796,7 @@
     000d2240: 8c44 0000 0320 f809 0000 0000 8fbc 0010  .D... ..........
     000d2250: 8fa6 0a4c 02c0 2821 8f82 87b8 0000 0000  ...L..(!........
    -000d2260: 8c44 0000 0c13 45e0 27a7 0018 8fbc 0010  .D....E.'.......
    +000d2260: 8c44 0000 2402 0000 0000 0000 8fbc 0010  .D..$...........
     000d2270: 1040 001d 0000 1821 8f99 8374 3c04 0058  .@.....!...t<..X
     000d2280: 3c05 0056 2484 a898 24a5 9a30 0320 f809  <..V$...$..0. ..

Debricking:
* Serial port can be soldered on PCB J3 (1: TXD, 2: RXD, 3: GND, 4: VCC)
    * Bridge unpopulated resistors R225 (TXD) and R237 (RXD).
      Do NOT bridge R230.
    * Use 3.3V, 115200 baud, 8n1
* Interrupt bootloader by holding CTRL+B during boot
* tftp initramfs to flash via the LuCI web interface
    setenv ipaddr 192.168.1.1 # default, change as required
    setenv serverip 192.168.1.10 # default, change as required
    tftp 0x80800000 initramfs.bin
    bootelf $fileaddr

Tested on the EAP245 v1 running the latest firmware (v1.4.0). The binary
patch might not apply to uclited from other firmware versions.

EAP245 v1 device support was originally developed and maintained by
Julien Dusser out-of-tree. This patch and "ath79: prepare for 1-port
TP-Link EAP2x5 devices" are based on that work.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
2020-11-28 18:25:24 +08:00
..
autoconf tools: fix permission 2019-09-07 15:36:23 +08:00
autoconf-archive tools: add autoconf-archive 2020-05-23 19:20:29 +08:00
automake Merge Lean's source 2019-12-14 12:18:29 +08:00
b43-tools tools: update 2019-10-26 10:01:37 +08:00
bc tools/bc: use autoreconf to fix build failure on macOS with recent Xcode versions 2020-11-21 17:41:58 +08:00
bison tools/bison: update to 3.7.1 2020-08-23 23:38:07 +08:00
cbootimage treewide: update email address of Tomasz Maciej Nowak 2020-11-24 23:28:39 +08:00
cbootimage-configs treewide: update email address of Tomasz Maciej Nowak 2020-11-24 23:28:39 +08:00
ccache tools/ccache: update to 3.7.11 2020-08-24 11:34:47 +08:00
cmake tools/cmake: update to 3.18.2 2020-08-24 11:34:26 +08:00
coreutils tools/coreutils: update to 8.32 2020-08-31 11:10:51 +08:00
dosfstools tools: fix permission 2019-09-07 15:36:23 +08:00
e2fsprogs tools/e2fsprogs: fix build under macos 2020-04-10 20:04:56 +08:00
elftosb tools: fix permission 2019-09-07 15:36:23 +08:00
expat tools/expat: change package source to GitHub 2019-11-30 19:24:19 +08:00
fakeroot tools/fakeroot: fix build on macOS with recent Xcode versions 2020-11-21 17:41:40 +08:00
findutils tools/findutils: Update to 4.7.0 2020-04-10 09:17:04 +08:00
firmware-utils ath79: support for TP-Link EAP245 v1 2020-11-28 18:25:24 +08:00
flex tools: fix permission 2019-09-07 15:36:23 +08:00
flock tools/flock: add PKG_{VERSION,RELEASE} 2020-07-23 22:45:21 +08:00
genext2fs tools: fix permission 2019-09-07 15:36:23 +08:00
gengetopt tools: update 2019-10-26 10:01:37 +08:00
gmp tools/gmp: Remove obsolete options 2020-02-20 03:02:36 +08:00
include tools: fix permission 2019-09-07 15:36:23 +08:00
isl tools: update 2019-10-26 10:01:37 +08:00
kernel2minor tools: fix permission 2019-09-07 15:36:23 +08:00
libelf tools/libelf: use autoreconf to fix build failure on macOS with recent Xcode versions 2020-11-21 17:41:53 +08:00
libressl tools/libressl: update to 3.2.1 2020-09-19 11:25:22 +08:00
libtool tools: fix permission 2019-09-07 15:36:23 +08:00
lzma treewide: https for downloads.openwrt.org sources 2020-09-01 17:32:38 +08:00
lzma-old treewide: https for downloads.openwrt.org sources 2020-09-01 17:32:38 +08:00
m4 tools: fix permission 2019-09-07 15:36:23 +08:00
make-ext4fs make_ext4fs: Update to version 2020-01-05 2020-01-15 02:06:24 +08:00
missing-macros treewide: remove empty default cases 2020-09-18 16:37:37 +08:00
mkimage tools/mkimage: create .itb file with read-access for group,other not just owner. 2020-07-24 20:01:12 +08:00
mklibs tools: update 2019-10-26 10:01:37 +08:00
mm-macros tools/mm-macros: Update to 1.0.0 2020-04-10 09:18:12 +08:00
mpc tools/mpc: update to 1.2.0 2020-08-28 09:26:04 +08:00
mpfr tools/mpfr: update to 4.1.0 2020-08-24 11:34:03 +08:00
mtd-utils tools: mtd-utils: Update to version 2.1.2 2020-08-27 12:02:57 +08:00
mtools tools/mtools: Update to 4.0.24 2020-04-10 09:17:20 +08:00
padjffs2 tools: drop PKG_VERSION for purely local packages 2020-07-23 22:44:05 +08:00
patch tools/patch: apply upstream patch for cve-2019-13638 2019-08-16 13:59:06 +08:00
patch-image tools/patch-image: add PKG_RELEASE 2020-07-23 22:44:24 +08:00
patchelf tools/patchelf: Update to 0.10 2020-02-20 03:03:26 +08:00
pkg-config Revert "tools/pkg-config: Replace with pkgconf" 2020-03-12 03:40:27 +08:00
qemu luci-app-ssr-plus: fix v2ray Netflix unlock 2020-03-17 10:42:17 +08:00
quilt tools/quilt: update to 0.66 2019-11-30 19:24:57 +08:00
sdimage tools: fix permission 2019-09-07 15:36:23 +08:00
sed tools/sed: Update to 4.8 2020-02-20 03:02:22 +08:00
sparse tools: fix permission 2019-09-07 15:36:23 +08:00
squashfs squashfs: Fix compile with GCC 10 2020-06-19 17:09:24 +08:00
squashfskit4 tools/squashfskit4: fix build on non-linux systems 2020-09-02 11:32:04 +08:00
sstrip tools/sstrip: add PKG_{VERSION,RELEASE} 2020-07-23 22:45:02 +08:00
tar tools: update 2019-10-26 10:01:37 +08:00
ucl ucl: fix CLEAN 2020-04-23 01:44:28 +08:00
upx upx: fix host build (#3339) 2020-03-01 14:05:09 +08:00
xz tools/xz: Update to 5.2.5 2020-04-10 09:17:36 +08:00
zip ramips: mt7621: add support for Netgear R6800 2019-12-13 08:25:54 -08:00
zlib tools: fix permission 2019-09-07 15:36:23 +08:00
zstd tools: add zstd 2020-05-31 19:37:02 +08:00
Makefile Merge Mainline 2020-11-21 18:58:08 +08:00