From 9ed272fe950029c88189ba24d4b3594cd52c176c Mon Sep 17 00:00:00 2001 From: Joan Moreau Date: Sun, 31 Mar 2019 04:26:22 +0000 Subject: ath79: add support for Comfast WR650AC v1/v2 This is a dual band 11a/11n router with 1x wan and 4x gig lan ports. There are two versions of this router which can be identified through the factory web interface, v1 has 128mb ram and a uboot size of 128k, v2 has 256mb ram and a uboot size of 256k, the remaining hardware and PCB markings are the same. Short specification: SoC: Qualcomm Atheros QCA9558 - 720 MHz Switch: Atheros AR8327 Second radio : Qualcomm Atheros QCA9880 802.11ac 4 LAN/1 WAN 1000Mps Ethernet 256 MB of RAM (DDR2) 16 MB of FLASH 3x2.4 GHz, 3x5GHz antennas Steps to install : Option A : Use vendor UI Option B (if A is not working) : (a) Download 'backup' from vendor UI and rename it backup.tar.gz (b) Open the archive, and update the root password in /etc/shadow by '$1$9wX3HGfB$X5Sb3kqzzBLdKRUR2kfFd0' (c) 'Restore' from the archive using the vendor UI. Root password is now 'aaa' (d) Scp the firwmware to the device: $ scp .bin root@192.168.1.1:/ (d) ssh to the device and flash the firmware: $ cd / $ mtd -e firmware -r write .bin firmware Signed-off-by: Gareth Parker Signed-off-by: Ding Tengfei Signed-off-by: Joan Moreau [reformatted commit message] Signed-off-by: David Bauer --- target/linux/ath79/base-files/etc/board.d/02_network | 6 ++++++ .../ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'target/linux/ath79/base-files') 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 dd9fa3c36b..466a0ee684 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -111,6 +111,12 @@ ath79_setup_interfaces() ubnt,routerstation) ucidef_set_interfaces_lan_wan "eth1" "eth0" ;; + comfast,cf-wr650ac-v1|\ + comfast,cf-wr650ac-v2) + ucidef_set_interfaces_lan_wan "eth0" "eth1" + ucidef_add_switch "switch0" \ + "0@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "6@eth1" + ;; devolo,dvl1200e|\ devolo,dvl1750e|\ ocedo,ursus) 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 501053e9d7..6f50a47271 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 @@ -87,6 +87,11 @@ board=$(board_name) case "$FIRMWARE" in "ath10k/cal-pci-0000:00:00.0.bin") case $board in + comfast,cf-wr650ac-v1|\ + comfast,cf-wr650ac-v2|\ + yuncore,a770) + ath10kcal_extract "art" 20480 2116 + ;; devolo,dvl1200e|\ devolo,dvl1200i|\ devolo,dvl1750c|\ @@ -182,9 +187,6 @@ case "$FIRMWARE" in ubnt,unifiac-pro) ath10kcal_extract "EEPROM" 20480 2116 ;; - yuncore,a770) - ath10kcal_extract "art" 20480 2116 - ;; esac ;; "ath10k/pre-cal-pci-0000:00:00.0.bin") -- cgit v1.2.3