From 73471f24dbd81764bb83692a83d01c7d618f1fe1 Mon Sep 17 00:00:00 2001 From: "Manu.WTF" <43337106+Dark4MD@users.noreply.github.com> Date: Sat, 25 Jun 2022 00:20:39 +0200 Subject: [PATCH] ath79-generic: (re)add TL-WR902AC v1 (#2546) TP-Link TL-WR902AC v1 is a pocket-size, dual-band (AC750), successor of TL-MR3020 (both devices use very similar enclosure, in same size). New device is based on Qualcomm QCA9531 v2 + QCA9887. FCC ID: TE7WR902AC. Specification: - 650/391/216 MHz (CPU/DDR/AHB) - 1x 10/100 Mbps Ethernet - 1x USB 2.0 (GPIO-controlled power) - 64 MB of RAM (DDR2) - 8 MB of FLASH - 2T2R 2.4 GHz (QCA9531) - 1T1R 5 GHz (QCA9887) - 5x LED (GPIO-controlled), 2x button, 1x 3-pos switch - UART pads on PCB (TP1 -> TX, TP2 -> RX, TP3 -> GND, TP4 -> 3V3, jumper resitors are missing on TX/RX lines) - 1x micro USB (for power only) Flash instructions: Use "factory" image under vendor GUI. Recovery instructions: This device contains tftp recovery mode inside U-Boot. You can use it to flash OpenWrt (use "factory" image) or vendor firmware. 1. Configure PC with static IP 192.168.0.66/24 and tftp server. 2. Rename "openwrt-ath79-generic-tplink_tl-wr902ac-v1-squashfs-factory.bin" to "wr902acv1_un_tp_recovery.bin" and place it in tftp server dir. 3. Connect PC with LAN port, press the reset button, power up the router and keep button pressed until WPS LED lights up. 4. Router will download file from server, write it to flash and reboot. MAC Address summary: - wlan1 (2.4GHz Wi-Fi): Label MAC - wlan0 (5GHz Wi-Fi): Offset -1 from label - eth0 (Wired): Offset +1 from label Root access over serial line in vendor firmware: root/sohoadmin. Based on support in ar71xx target by: Piotr Dymacz --- targets/ath79-generic | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/targets/ath79-generic b/targets/ath79-generic index 96555c3a..8c31fafe 100644 --- a/targets/ath79-generic +++ b/targets/ath79-generic @@ -404,6 +404,12 @@ device('tp-link-tl-wr842n-v3', 'tplink_tl-wr842n-v3', { }, }) +device('tp-link-tl-wr902ac-v1', 'tplink_tl-wr902ac-v1', { + packages = ATH10K_PACKAGES_QCA9887, + broken = true, -- OOM with 5GHz enabled in most environments + class = 'tiny', -- 64M ath9k + ath10k +}) + device('tp-link-tl-wr1043nd-v2', 'tplink_tl-wr1043nd-v2', { manifest_aliases = { 'tp-link-tl-wr1043n-nd-v2', -- upgrade from OpenWrt 19.07