Table of Contents
TP-Link Archer C6 v2
Supported Versions
Hardware Highlights
Installation
Flash Layout
Flash using web interface
Flash using TFTP recovery
Debricking
Recover via serial and tftp (working uboot)
Failsafe mode
Back to stock firmware
Basic configuration
Hardware
Info
Photos
Opening the case
Serial
JTAG
Flash layout
Bootloader mods
Hardware mods
Potential USB 2.0 support
Bootlogs
OEM bootlog
OpenWrt bootlog
Notes
Tags
TP-Link Archer C6 v2
Warning The 5 GHz radio / Qualcomm Atheros QCA9886 support seems to be buggy in some cases:
1. Some users report much improved long-term stability with 5 GHz by using the ath10k firmware instead of the ath10k-ct firmware. To do this remove the packages kmod-ath10k-ct and ath10k-firmware-qca9888-ct and instead install kmod-ath10k and ath10k-firmware-qca9888.
2. With OpenWRT 24.10.0 release, 5 GHz radio / Qualcomm Atheros QCA9886 does NOT work at all. It does not even show up in wireless overview. The issue seems to be fixed with OpenWRT 24.10.2 and later.
The Archer A6 v2 and the Archer C6 v2 are essentially the same device. If you came to this page from the A6 v2 ToH entry, you can follow the instructions here as they apply to both models.
Supported Versions
Hardware Highlights
Installation
→ Install OpenWrt (generic explanation)
Flash Layout
For device TP-Link Archer C6 V2 EU
Flash layout based on partition table found in the device.
partition fs-uboot base 0x00000 size 0x20000
partition default-mac base 0x20000 size 0x00200
partition pin base 0x20200 size 0x00100
partition product-info base 0x20300 size 0x00200
partition device-id base 0x20500 size 0x0fb00
partition os-image base 0x30000 size 0x100000
partition file-system base 0x130000 size 0x690000
partition favicon base 0x7cc000 size 0x02000
partition logo base 0x7ce000 size 0x02000
partition soft-version base 0x7d9400 size 0x00100
partition extra-para base 0x7d9500 size 0x00100
partition support-list base 0x7d9600 size 0x00200
partition profile base 0x7d9800 size 0x03000
partition default-config-f base 0x7dc800 size 0x03000
partition partition-table base 0x7df800 size 0x00800
partition user-config base 0x7e0000 size 0x09000
partition default-config base 0x7e9000 size 0x03000
partition certificate base 0x7ec000 size 0x04000
partition radio base 0x7f0000 size 0x10000
Copy
Flash using web interface
Flashing OpenWrt through the OEM web interface is not always possible: the OpenWrt factory image needs to have the correct magic that matches the OEM firmware version. So, depending on the OEM firmware version, different versions of OpenWrt can be installed through the OEM web interface:
OEM firmware OpenWrt version accepted by OEM web interface
1.0.X 18.06.X, 19.07.0
1.1.X 19.07.1 and later, master
1.2.0, 1.2.1 19.07.2 and master fails “invalid type”
1.3.3 23.05.3 flashes successfully, 24.10.0-rc6 flashes successfully
1.3.4 19.07.4 flashes successfully
1.3.5 19.07.5 flashes successfully
1.3.6 19.07.4 flashes successfully, 21.02, 23.05 flashes successfully
1.3.7 24.10.4 up to 25.12.6 flashes successfully
If the above images get rejected and you still want to flash through the web interface, start with the current stable release and work your way down through versions. Eventually, you may come across something that gets accepted, allowing you to upgrade to a stable OpenWrt build from that point.
This is going to be a pain, expect a patch to generate factory images for several OEM firmware versions eventually.
It is possible to bypass this check by flashing via the bootloader's TFTP recovery mode, however several steps and a lot of tries are necessary to get everything right, as the link training window is extremely tight. For more information, see the Flash using TFTP recovery section below.
If your OEM firmware supports it, simply upload openwrt-ath79-generic-tplink_archer-c6-v2-squashfs-factory.bin via the router's web interface. The same image also applies to the Archer A6 v2.
Flash using TFTP recovery
An ethernet switch between the router and the TFTP server should be used in order to prevent the TFTP server's interface to shutdown!
If the server's interface shuts down, the router times out and it won't find the TFTP server (see unsuccessful log output below).
Connect to your router's WAN port (it doesn't work with LAN ports!) to a network switch or a computer
Connect another cable from the switch to the computer/TFTP server (or directly)
Set the computer IP to 192.168.0.66
Start a tftp server with the OpenWrt factory image in the tftp root directory renamed to ArcherC6v2_tp_recovery.bin
Connect the power cable to the router, press and hold the reset button and turn the router on
Keep the reset button pressed until the WPS LED lights up
Wait ~150 seconds until flashing and booting is completed
If you're having TFTP time out, it is caused by taking too long to negotiate the link. Use 10/100MBit switch. see Post https://forum.openwrt.org/t/cant-boot-tftp-recovery-archer-c6-v2/36487/26.
Unsuccessful TFTP recovery bootlog:
U-Boot 1.1.4 (Jun 26 2018 - 19:41:08)
ap152 - Dragonfly 1.0
DRAM: 128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 375k for U-Boot at: 87fa0000
Reserving 8256k for malloc() at: 87790000
Reserving 44 Bytes for Board Info at: 8778ffd4
Reserving 36 Bytes for Global Data at: 8778ffb0
Reserving 128k for boot params() at: 8776ffb0
Stack Pointer at: 8776ff98
Now running in RAM - U-Boot at: 87fa0000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x17
flash size 8MB, sector count = 128
Flash: 8 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
athr_mgmt_init ::done
Dragonfly ----> S17 PHY *
athrs17_reg_init: complete
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Setting 0x181162c0 to 0x60c02100
run command setenv serverip 192.168.0.66;setenv ipaddr 192.168.0.86
run command tftp 0x80060000 ArcherC6v2_tp_recovery.bin
Trying eth0
eth0 link down
FAIL
Using eth0 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'ArcherC6v2_tp_recovery.bin'.
Load address: 0x80060000
Loading: * * Tx Timed out
T Tx Timed out
T Tx Timed out
Tftp server tranfer fail!
tftpboot firmware failed, now start normally.
Hit any key to stop autoboot: 1 0
Successful TFTP recovery bootlog:
U-Boot 1.1.4 (Jun 26 2018 - 19:41:08)
ap152 - Dragonfly 1.0
DRAM: 128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 375k for U-Boot at: 87fa0000
Reserving 8256k for malloc() at: 87790000
Reserving 44 Bytes for Board Info at: 8778ffd4
Reserving 36 Bytes for Global Data at: 8778ffb0
Reserving 128k for boot params() at: 8776ffb0
Stack Pointer at: 8776ff98
Now running in RAM - U-Boot at: 87fa0000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x17
flash size 8MB, sector count = 128
Flash: 8 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
athr_mgmt_init ::done
Dragonfly ----> S17 PHY *
athrs17_reg_init: complete
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Setting 0x181162c0 to 0x60c02100
run command setenv serverip 192.168.0.66;setenv ipaddr 192.168.0.86
run command tftp 0x80060000 ArcherC6v2_tp_recovery.bin
Trying eth0
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'ArcherC6v2_tp_recovery.bin'.
Load address: 0x80060000
Loading: *#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##########################################################
done
Bytes transferred = 4618908 (467a9c hex)
Firmware downloaded... filesize = 0x467a9c fileaddr = 0x80060000.
Firmware Recovery file length : 4618908
Firmware process common.
Image verify OK!
Firmware file Verify ok!
[Error]sysmgr_proinfo_buildStruct(): 659 @ unknown id(device_name), skip it.
[Error]sysmgr_proinfo_buildStruct(): 659 @ unknown id(country), skip it.
[Error]sysmgr_proinfo_buildStruct(): 659 @ unknown id(hw_ver), skip it.
Firmware supports, check OK.
Firmware Recovery check ok!
######################################################################
#######
Done.
Firmware Recovery Success!
All Done!
now restart...
→ generic.flashing.tftp
If the router doesn't seem to load the TFTP image maybe try the following script:
#/bin/bash
USER=yourusername
IFNAME=yourinterface
ip address flush dev $IFNAME
ip address add 192.168.0.66/24 dev $IFNAME
ip link set $IFNAME up
dnsmasq -i $IFNAME --dhcp-range=192.168.0.100,192.168.0.150 \
--dhcp-boot=ArcherC6v2_tp_recovery.bin \
--enable-tftp --tftp-root=/home/$USER/openwrt -d -u $USER -p0 -K --log-dhcp --bootp-dynamic
Copy
Debricking
→ generic.debrick
Recover via serial and tftp (working uboot)
Set the IP of the tftp server to YOURIP. Ensure firewall (port 69, UDP) is open.
Start tftp server, e.g.
sudo dnsmasq -kd -p 0 -C /dev/null -u nobody --enable-tftp --tftp-root=/PATH/TO/BIN/FILE/
Copy
Please Note: Partitioning For US and EU Versions is different! The example below flashes the firmware in the corresponding partition address for the EU version(0x9f030000). If you are flashing the US version, 0x9f030000 is actually the u-boot partition. Using the below example as is in a US version Archer C6/A6 will overwrite the u-boot partition. When Flashing the US version, substitute 0x9f030000 with 0x9f050000 in the code shown below.
setenv serverip YOURIP
tftpboot 0x80060000 openwrt-19.07.2-ath79-generic-tplink_archer-c6-v2-squashfs-sysupgrade.bin
-> Bytes transferred = 4653342 (47011e hex) <-- if another version is used, change the size in the commands below to match the new size
erase 0x9f030000 +47011e
cp.b 0x80060000 0x9f030000 0x47011e
bootm 0x9f030000
Copy
Failsafe mode
→ failsafe_and_factory_reset
Back to stock firmware
See Tp-Link Archer C6 V2 Revert to Stock Firmware
Basic configuration
→ Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.
Hardware
Info
SPI Chip: GigaDevices GD25Q64C (25Q64CS16)
Photos
Front:
Back:
Backside label:
Opening the case
→ Warranty
Remove two screws located at the bottom of the device
Pry open the shiny top. The top is really tight. Opening it will most likely break some plastic inside. Perhaps this is intentional. PCB is located a good 2-3cm away from the edges in front and sides so you can use some gorilla power to get it open.
Clips:
PCB front:
PCB back:
There are no pins or pads below the aluminium heat sink, just two thermal pads and three shake proof washers as distance holders
Serial
→ port.serial general information about the serial port, serial port cable, etc.
How to connect to the Serial Port of this specific device:
RX and GND testpoints are easy to access.
For TX testpoint:
1. Remove metal protection from main CPU
2. Then cut middle metal reinforcements
Serial connection parameters
for TP-Link Archer C6 v2 115200, 8N1
its bootloader U-boot sets speed to about 120000 bps,
kernel downs a little,
when kernel serial driver is started it is set to standart 115200)
JTAG
→ port.jtag general information about the JTAG port, JTAG cable, etc.
How to connect to the JTAG Port of this specific device:
Insert photo of PCB with markings for JTAG port
Flash layout
TP-Link Archer C6 V2 (EU/RU/JP) Flash Layout
Layer0 raw SPI NOR flash memory chip (GD25Q64C spi0.0: GD25Q64C) 8192 KiB
Layer1 mtd0 u-boot 128 KiB mtd1 info 64 KiB mtd2 firmware 7808 KiB mtd6 tplink 128 KiB mtd7 art 64 KiB
Layer2 mtd3 kernel 2191 KiB (*) mtd4 rootfs 5616 KiB (*)
mountpoint /
filesystem OverlayFS
Layer3 mtd5 rootfs_data 1408 KiB
Size in KiB 128 KiB 64 KiB 2191 KiB (*) 4208 KiB (*) 1408 KiB (*) 128 KiB 64 KiB
Name u-boot info kernel rootfs rootfs_data tplink art
mountpoint none none /rom /overlay none none
filesystem none none SquashFS JFFS2 none none
''(*) mtd3,4 and 5 sizes depend on release/snapshot. Here is example for 22.03.2 '' analysis_of_firmware_size_growth, #11417
Click to display ⇲
Bootloader mods
→ bootloader
Hardware mods
Potential USB 2.0 support
The main IC QCA9563 (under the metal shield) supports “Two USB 2.0 Host controllers with built-in MAC/PHY”, however on the PCB, the pins are not connected to anything (except for VDD12_PLL_USB).
The following pins might be used for USB:
(Pin B43) VDD12_PLL_USB (connected to VCC?)
(Pin A55) USB_DP1 (not connected)
(Pin B42) USB_DM1 (not connected)
(Pin A53) VDD12_PLL_USB (connected to VCC?)
(Pin B40) USB_DP0 (not connected)
(Pin A52) USB_DM0 (not connected)
However is is extremely hard to connect the pins since the pin distance is only 0.5mm/0.026inches.
Bootlogs
OEM bootlog
U-Boot 1.1.4 (Jun 26 2018 - 19:41:08)
ap152 - Dragonfly 1.0
DRAM: 128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 375k for U-Boot at: 87fa0000
Reserving 8256k for malloc() at: 87790000
Reserving 44 Bytes for Board Info at: 8778ffd4
Reserving 36 Bytes for Global Data at: 8778ffb0
Reserving 128k for boot params() at: 8776ffb0
Stack Pointer at: 8776ff98
Now running in RAM - U-Boot at: 87fa0000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x17
flash size 8MB, sector count = 128
Flash: 8 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
athr_mgmt_init ::done
Dragonfly ----> S17 PHY *
athrs17_reg_init: complete
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Setting 0x181162c0 to 0x60c02100
Hit any key to stop autoboot: 1 0
## Booting image at 9f030000 ...
Image Name: MIPS OpenWrt Linux-3.3.8
Created: 2019-09-04 9:13:21 UTC
Image Type: MIPS Linux Multi-File Image (lzma compressed)
Data Size: 1046676 Bytes = 1022.1 kB
Load Address: 80060000
Entry Point: 80060000
Contents:
Image 0: 1046668 Bytes = 1022.1 kB
Verifying Checksum at 0x9f030040 ...OK
Uncompressing Multi-File Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 134217728
Starting kernel ...
[ 0.000000] Linux version 3.3.8 (leo@leo-MS-7529) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Sat Aug 31 20:43:49 CST 2019
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019750 (MIPS 74Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA956X rev 0
[ 0.000000] Clocks: CPU:775.000MHz, DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00008000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00008000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200 board=AP152 rootfstype=squashfs init=/etc/preinit mtdparts=spi0.0:192k(u-boot),1024k(uImage),6848k(rootfs),64k@0x7f0000(ART) mem=128M rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 126344k/131072k available (2232k kernel code, 4728k reserved, 553k data, 180k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:83
[ 0.000000] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.060000] pid_max: default: 32768 minimum: 301
[ 0.060000] Mount-cache hash table entries: 512
[ 0.070000] NET: Registered protocol family 16
[ 0.070000] gpiochip_add: registered GPIOs 0 to 22 on device: ath79
[ 0.080000] MIPS: machine is TP-LINK Archer c6 v2 eu support
[ 0.080000] registering PCI controller with io_map_base unset
[ 0.290000] bio: create slab <bio-0> at 0
[ 0.300000] PCI host bridge to bus 0000:00
[ 0.300000] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[ 0.310000] pci_bus 0000:00: root bus resource [io 0x0001]
[ 0.310000] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[ 0.320000] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.320000] Switching to clocksource MIPS
[ 0.330000] NET: Registered protocol family 2
[ 0.330000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.330000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.340000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.340000] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.350000] TCP reno registered
[ 0.350000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.360000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.360000] NET: Registered protocol family 1
[ 0.380000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.380000] msgmni has been set to 246
[ 0.390000] io scheduler noop registered
[ 0.390000] io scheduler deadline registered (default)
[ 0.400000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.420000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[ 0.430000] console [ttyS0] enabled, bootconsole disabled
[ 0.430000] console [ttyS0] enabled, bootconsole disabled
[ 0.440000] m25p80 spi0.0: found s25fl064k, expected m25p80
[ 0.450000] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[ 0.450000] 4 cmdlinepart partitions found on MTD device spi0.0
[ 0.460000] Creating 4 MTD partitions on "spi0.0":
[ 0.460000] 0x000000000000-0x000000030000 : "u-boot"
[ 0.470000] 0x000000030000-0x000000130000 : "uImage"
[ 0.480000] 0x000000130000-0x0000007e0000 : "rootfs"
[ 0.480000] mtd: partition "rootfs" set to be root filesystem
[ 0.490000] 0x0000007f0000-0x000000800000 : "ART"
[ 0.490000] flash_chrdev : flash_chrdev_init
[ 0.640000] ag71xx_mdio: probed
[ 0.640000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[ 1.190000] ag71xx_probe:not calling:ag71xx_phy_connect
[ 1.200000] TCP cubic registered
[ 1.200000] NET: Registered protocol family 17
[ 1.210000] Bridge firewalling registered
[ 1.210000] 8021q: 802.1Q VLAN Support v1.8
[ 1.220000] ### of_selftest(): No testcase data in device tree; not running tests
[ 1.230000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 1.240000] Freeing unused kernel memory: 180k freed
[ 3.250000] ag71xx_open DEFINED AR8216_PHY_RESET_CMD!
[ 3.280000] eth0: Atheros AR8327 switch driver attached.
[ 3.290000] before HW reset reg[e0]: [c74164de] -> [c74164de]
[ 3.300000] before HW reset reg[10]: [602613a0] -> [602613a0]
[ 4.400000] recovery reg[e0]: [c70164c0] -> [c74164de]
[ 4.410000] recovery reg[10]: [261320] -> [602613a0]
[ 7.340000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
- preinit -
- regular preinit -
jffs2 not ready yet; using ramdisk
- init -
[ 7.850000] in ag71xx_stop
[ 7.850000] ag71xx_stop:ag71xx_phy_disconnect
[ 8.630000] liblog: module license 'unspecified' taints kernel.
[ 8.640000] Disabling lock debugging due to kernel taint
[ 8.950000] NET: Registered protocol family 10
[ 9.380000] Button Hotplug driver version 0.4.1
[ 9.410000] PPP generic driver version 2.4.2
[ 9.480000] tun: Universal TUN/TAP device driver, 1.6
[ 9.490000] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
[ 9.530000] PPP MPPE Compression module registered
[ 9.550000] NET: Registered protocol family 24
[ 9.630000] L2TP core driver, V2.0
[ 9.650000] L2TP netlink interface
[ 9.730000] IPv6 over IPv4 tunneling driver
[ 9.790000] GRE over IPv4 demultiplexor driver
[ 9.810000] GRE over IPv4 tunneling driver
[ 9.940000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 10.060000] nf_conntrack version 0.5.0 (1976 buckets, 7904 max)
[ 10.200000] PPPoL2TP kernel driver, V2.0
[ 10.270000] PPTP driver version 0.8.5
[ 10.690000] xt_time: kernel timezone is -0000
[ 11.100000] nf_conntrack_rtsp v0.6.21 loading
[ 11.120000] nf_nat_rtsp v0.6.21 loading
[ 11.210000] Netfilter messages via NETLINK v0.30.
[ 11.280000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 11.350000] ctnetlink v0.93: registering with nfnetlink.
[ 11.610000] ssdk_plat_init start
[ 11.620000] Register QCA PHY driver
[ 11.740000] qca-ssdk module init succeeded!
reload_profile() begin:
reload_profile() end:
reloadconfig() begin:
user-config size OK:8853
result is
0
reloadconfig() end:
mergeconfigbycountry() begin
user has set country
mergeconfigbycountry() do nothing end
Please press Enter to activate this console. [ 15.290000] ag71xx_open DEFINED AR8216_PHY_RESET_CMD!ar8216_config_init, 2804: qca_qm_err_recovery
[ 15.300000] before HW reset reg[e0]: [c74164de] -> [c74164de]
[ 15.310000] before HW reset reg[10]: [602613a0] -> [602613a0]
[ 16.420000] recovery reg[e0]: [c70164c0] -> [c74164de]
[ 16.430000] recovery reg[10]: [261320] -> [602613a0]
[ 18.370000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[ 18.380000] ADDRCONF(NETDEV_UP): eth0: link is not ready
GMT+00:00
Mon Oct 14 00:00:00 GMT 2019
[SWITCH DEBUG] Clear Port(0) PVID
[SWITCH DEBUG] Clear Port(1) PVID
[SWITCH DEBUG] Clear Port(2) PVID
[SWITCH DEBUG] Clear Port(3) PVID
[SWITCH DEBUG] Clear Port(4) PVID
[SWITCH DEBUG] Clear Port(5) PVID
[SWITCH DEBUG] Flush vlan entries.
[SWITCH DEBUG] Create VLAN VID=1
[SWITCH DEBUG] Add tagged port(0) to VLAN(1)
[SWITCH DEBUG] Add untagged port(2) to VLAN(1)
[SWITCH DEBUG] Add untagged port(3) to VLAN(1)
[SWITCH DEBUG] Add untagged port(4) to VLAN(1)
[SWITCH DEBUG] Add untagged port(5) to VLAN(1)
[SWITCH DEBUG] Set Port(0) PVID(1)
[SWITCH DEBUG] Set Port(0) ingress to secure
[SWITCH DEBUG] Set Port(2) PVID(1)
[SWITCH DEBUG] Set Port(2) ingress to secure
[SWITCH DEBUG] Set Port(3) PVID(1)
[SWITCH DEBUG] Set Port(3) ingress to secure
[SWITCH DEBUG] Set Port(4) PVID(1)
[SWITCH DEBUG] Set Port(4) ingress to secure
[SWITCH DEBUG] Set Port(5) PVID(1)
[SWITCH DEBUG] Set Port(5) ingress to secure
[SWITCH DEBUG] Create VLAN VID=4094
[SWITCH DEBUG] Add tagged port(0) to VLAN(4094)
[SWITCH DEBUG] Add untagged port(1) to VLAN(4094)
[SWITCH DEBUG] Set Port(0) PVID(4094)
[SWITCH DEBUG] Set Port(0) ingress to secure
[SWITCH DEBUG] Set Port(1) PVID(4094)
[SWITCH DEBUG] Set Port(1) ingress to secure
[SWITCH DEBUG] Set Port(0) PVID(0)
[ 20.390000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 20.400000] eth0: link up (1000Mbps/Full duplex)
[ 20.780000] device eth0 entered promiscuous mode
[ 22.530000] ar8216_read_status_3156: eth0.4094 carrier off!port_vlan_id = 4094
Loading defaults
[ 27.000000] ath_hal: 0.9.17.1 (AR9380, REGOPS_FUNC, WRITE_EEPROM, 11D)
[ 27.290000] ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
Loading synflood protection
[ 27.600000] ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
Adding custom chains
[ 29.270000] __ath_attach: Set global_scn[0]
[ 29.270000] *** All the minfree values should be <= ATH_TXBUF-32, otherwise default value will be used instead ***
[ 29.280000] ACBKMinfree = 48
[ 29.280000] ACBEMinfree = 32
[ 29.290000] ACVIMinfree = 16
[ 29.290000] ACVOMinfree = 0
[ 29.290000] CABMinfree = 48
[ 29.300000] UAPSDMinfree = 0
[ 29.300000] ATH_TXBUF=2700
[ 29.310000] Enterprise mode: 0x03bda000
[ 29.320000] Restoring Cal data from DRAM
[ 29.320000]
[ 29.320000] ART Version : -48.0.0
[ 29.320000] SW Image Version : -48.0.0.0.0
[ 29.330000] Board Revision :
[ 29.330000] ar9300_attach: nf_2_nom -110 nf_2_max -60 nf_2_min -125
[ 29.340000] ath_get_caps[6328] rx chainmask mismatch actual 7 sc_chainmak 0
[ 29.350000] ath_get_caps[6303] tx chainmask mismatch actual 7 sc_chainmak 0
[ 29.370000] ath_tx_paprd_init sc 872d8000 PAPRD disabled in HAL
[ 29.380000] wifi0: Atheros 956X: mem=0xb8100000, irq=47
[ 29.380000] ath_pci: (Atheros/multi-bss)
[ 29.390000] ol_ath_pci_probe: PCI device id 0056 :0056
[ 29.390000] ath_pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[ 29.400000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 29.410000] *********** Besra *************
[ 29.410000]
[ 29.410000] __ol_ath_attach() Allocated scn 86180380
[ 29.420000] ath_pci 0000:00:00.0: ath DEBUG: sc=0x87ae5800
[ 29.420000]
[ 29.420000] ol_ath_pci_configure : num_desired MSI set to 0
[ 29.430000]
[ 29.430000] Using PCI Legacy Interrupt
[ 29.440000] chip_id 0xc chip_revision 0x0
[ 29.450000]
[ 29.450000] CLOCK PLL skipped
[ 29.460000] HIF_PCIDeviceProbed: setting the target pll frac ffffffff intval ffffffff
[ 29.470000] HIF_PCIDeviceProbed: no frac provided, skipping pre-configuring PLL
[ 29.480000] __ol_ath_attach: dev name wifi1
[ 29.480000] ol_ath_attach interface_id 1
[ 29.480000] ol_ath_attach() BMI inited.
[ 29.620000] ol_ath_attach() BMI Get Target Info.
[ 29.620000] Chip id: 0xc, chip version: 0x1000000
[ 29.620000]
[ 29.620000] CE WAR Disabled
[ 29.650000] NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
[ 29.660000] ol_ath_attach() configure Target .
[ 29.660000]
[ 29.660000] Target Version is 1000000
[ 29.670000]
[ 29.670000] Flash Download Address c0000
[ 29.670000] ol_transfer_bin_file: flash data file defined
[ 29.680000] Cal location [0]: 00004000
[ 29.680000]
[ 29.680000] wifi1 NAND FLASH Select OFFSET 0x5000
[ 29.720000] qc98xx_verify_checksum: flash checksum passed: 0xa329
[ 29.730000] ol_transfer_bin_file 3451: Download Flash data len 12064
[ 29.750000] Board extended Data download address: 0x0
[ 29.770000]
[ 29.770000] Board data initialized
[ 29.800000] ol_ath_download_firmware: Download OTP, flash download ADDRESS 0xc0000
[ 29.800000]
[ 29.800000] Selecting OTP binary for CHIP Version 0
[ 30.070000] ol_transfer_bin_file 3271: downloading file 0, Download data len 8964
[ 30.110000]
[ 30.110000] First OTP send param 8000
Loading zones
[ 30.360000] ol_ath_download_firmware :First OTP download and Execute is good address:0x5000 return param 4660
[ 30.370000] ol_ath_download_firmware:##Board Id 20 , CHIP Id 0
[ 30.380000] ol_ath_download_firmware: BOARDDATA DOWNLOAD TO address 0xc0000
[ 30.380000] Warning : No board id matched. Selecting default boarddata file
[ 30.390000]
[ 30.390000] wifi1: Selecting board data file name boarddata_0.bin
[ 30.400000] ol_transfer_bin_file: Board Data File download to address=0xc0000 file name=QCA9888/hw.2/boarddata_0.bin
[ 30.440000] ol_transfer_bin_file 3271: downloading file 3, Download data len 12064
[ 30.470000] Board extended Data download address: 0x0
[ 30.500000] ol_ath_download_firmware: Using 0x1234 for the remainder of init
[ 30.500000]
[ 30.500000] Selecting OTP binary for CHIP Version 0
[ 30.550000] ol_transfer_bin_file 3271: downloading file 0, Download data len 8964
[ 30.620000]
[ 30.620000] [Flash] : Ignore Module param
[ 30.630000]
[ 30.630000] Second otp download Param 10000
[ 30.890000] ol_ath_download_firmware : Second OTP download and Execute is good, param=0x0
[ 30.900000]
[ 30.900000] Mission mode: Firmware CHIP Version 0
[ 30.940000] ol_swap_seg_alloc: Successfully allocated memory for SWAP size=262144
[ 31.030000] Swap: bytes_left to copy: fw:16; dma_page:61485
[ 31.030000] Swap: wrong length read:0
[ 31.040000] ol_swap_wlan_memory_expansion: Swap total_bytes copied: 200659 Target address 419530
[ 31.050000] scn=86180380 target_write_addr=419530 seg_info=8696d410
[ 31.060000] ol_transfer_swap_struct:Code swap structure successfully downloaded for bin type =2
[ 31.070000] bin_filename=QCA9888/hw.2/athwlan.bin swap_filename=/lib/firmware/QCA9888/hw.2/athwlan.codeswap.bin
[ 31.080000] ol_transfer_bin_file: Downloading firmware file: QCA9888/hw.2/athwlan.bin
[ 31.680000] ol_transfer_bin_file 3271: downloading file 1, Download data len 354424
Loading forwardings
[ 32.270000] device eth0 left promiscuo
ath79: add support for TP-Link Archer C6 v2 (US) and A6 (US/TW)
This patch is based on #1689 and adds support for TP-Link Archer
C6 v2 (US) and A6 (US/TW).
The hardware is the same as EU and RU variant, except for GPIOs
(LEDS/Buttons), flash(chip/partitions) and UART being available
on the board.
- SOC: Qualcomm QCA9563 @ 775MHz
- Flash: GigaDevice GD25Q127CS1G (16MiB)
- RAM: Zentel A3R1GE40JBF (128 MiB DDR2)
- Ethernet: Qualcomm QCA8337N: 4x 1Gbps LAN + 1x 1Gbps WAN
- Wireless:
- 2.4GHz (bgn) QCA9563 integrated (3x3)
- 5GHz (ac) Qualcomm QCA9886 (2x2)
- Button: 1x power, 1x reset, 1x wps
- LED: 6x LEDs: power, wlan2g, wlan5g, lan, wan, wps
- UART: 115200, 8n1 (header available on board)
Known issues:
- Wireless: 5GHz is known to have lower RSSI signal, it affects speed and range.
Flash instructions:
Upload openwrt-ath79-generic-tplink_archer-c6-v2-us-squashfs-factory.bin
via the router Web interface.
Flash instruction using tftp recovery:
1. Connect the computer to one of the LAN ports of the router
2. Set the computer IP to 192.168.0.66
3. Start a tftp server with the OpenWrt factory image in the
tftp root directory renamed to ArcherA6v2_tp_recovery.bin.
4. Connect power cable to router, press and hold the
reset button and turn the router on
5. Keep the reset button pressed until the WPS LED lights up
6. Wait ~150 seconds to complete flashing
Flash partitioning: I've followed #1689 for defining the partition layout
for this patch. The partition named as "tplink" @ 0xfd0000 is marked
as read only as it is where some config for stock firmware are stored.
On stock firmware those stock partitions starts at 0xfd9400 however
I had not been able to make it functional starting on the same address as
on stock fw, so it has been partitioned following #1689 and not the stock
partition layout for this specific partition. Due to that firmware/rootfs
partition lenght is 0xf80000 and not 0xf89400 as stock.
According to the GPL code, the EU/RU/JP variant does have different GPIO pins
assignment to LEDs and buttons, also the flash memory layout is different.
GPL Source Code: https://static.tp-link.com/resources/gpl/gpl-A6v2_us.tar.gz
Signed-off-by: Anderson Vulczak <[email protected]>
[wrap commit message, remove soft_ver change for C6 v2 EU, move LED aliases
to DTS files, remove dts-v1 in DTSI, node/property reorder in DTSI]
Signed-off-by: Adrian Schmutzler <[email protected]>
コメント