From 4cb5f296255889dd5e6bf0124badd414e85d27f5 Mon Sep 17 00:00:00 2001 From: Keith Maika Date: Mon, 16 Sep 2019 12:45:02 -0400 Subject: ath79: add support for TP-Link Archer C59v2 Add ath79 support for Archer C59v2, previously supported by ar71xx. TP-Link Archer C59v2 is a dual-band AC1350 router based on Qualcomm/Atheros QCA9561+QCA9886 chips. Specification: - 775/650/258 MHz (CPU/DDR/AHB) - 128 MB of RAM (DDR2) - 16 MB of FLASH (SPI NOR) - 3T3R 2.4 GHz - 2T2R 5 GHz - 5x 10/100 Mbps Ethernet - USB 2.0 port - UART header on PCB Flash instruction: - via web UI: 1. Download openwrt-ath79-generic-tplink_archer-c59-v2-squashfs-factory.bin 2. Login to router and open the Advanced tab 3. Navigate to System Tools -> Firmware Upgrade 4. Upload firmware using the Manual Upgrade form - via TFTP: 1. Set PC to fixed ip address 192.168.0.66 2. Download openwrt-ath79-generic-tplink_archer-c59-v2-squashfs-factory.bin and rename it to tp_recovery.bin 3. Start a tftp server with the file tp_recovery.bin in its root directory 4. Turn off the router 5. Press and hold Reset button 6. Turn on router with the reset button pressed and wait ~15 seconds 7. Release the reset button and after a short time the firmware should be transferred from the tftp server 8. Wait ~30 second to complete recovery. Signed-off-by: Keith Maika --- target/linux/ath79/base-files/etc/board.d/01_leds | 1 + target/linux/ath79/base-files/etc/board.d/02_network | 3 ++- target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'target/linux/ath79/base-files') diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds index e317ce26e1..778316e450 100755 --- a/target/linux/ath79/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/base-files/etc/board.d/01_leds @@ -157,6 +157,7 @@ tplink,tl-wr842n-v3) ;; tplink,archer-c58-v1|\ tplink,archer-c59-v1|\ +tplink,archer-c59-v2|\ tplink,archer-c60-v1|\ tplink,archer-c60-v2) ucidef_set_led_switch "lan" "LAN" "tp-link:green:lan" "switch0" "0x1E" diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index 7d5f288536..5b47af8ef7 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -59,7 +59,8 @@ ath79_setup_interfaces() avm,fritz4020|\ pcs,cr3000|\ tplink,archer-c58-v1|\ - tplink,archer-c59-v1) + tplink,archer-c59-v1|\ + tplink,archer-c59-v2) ucidef_set_interface_wan "eth1" ucidef_add_switch "switch0" \ "0@eth0" "1:lan:1" "2:lan:4" "3:lan:3" "4:lan:2" diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index ed3432273c..446b729a2b 100644 --- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -214,6 +214,7 @@ case "$FIRMWARE" in ;; tplink,archer-c58-v1|\ tplink,archer-c59-v1|\ + tplink,archer-c59-v2|\ tplink,archer-c60-v1|\ tplink,archer-c60-v2|\ tplink,archer-c6-v2) -- cgit v1.2.3