Help adding support for TP-Link CPE 610 v1

Hi, I have a TP-Link CPE 610 v1 that I would like to get OpenWrt working on. I'm new so I'm not really sure what needs to be done but I've included some infomation that I was able to get off of the device.

Device Name:
CPE610
Device Model:
CPE610 v1.0
Firmware Version:
2.1.13 Build 20180327 Rel. 54027 (5553)
cat /proc/cpuinfo
system type : Atheros AR934x
processor : 0
cpu model : MIPS 74Kc V4.12
BogoMIPS : 279.55
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0098, 0x04 30, 0x0118]
ASEs implemented : mips16 dsp
shadow register sets : 1
core : 0
VCED exceptions : not available
VCEI exceptions : not available
dmesg
Linux version 2.6.31 (root@ubuntu) (gcc version 4.3.3 (GCC) )  PREEMPT Tue Mar 27 14:45:22 CST 2018
flash_size passed from bootloader = 0
CPU revision is: 0001974c (MIPS 74Kc)
ath_sys_frequency: cpu srif ddr srif cpu 560 ddr 450 ahb 225
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
User-defined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Zone PFN ranges:
Normal 0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00004000
On node 0 totalpages: 16384
free_area_init_node: node 0, pgdat 802429b0, node_mem_map 81000000
Normal zone: 128 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 16256 pages, LIFO batch:3
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttyS0,115200 root=31:04 rootfstype=squashfs init=/init mtdparts=ath-nor0:128k(u-boot),64k(pation-table),64k(product-info),1536k(kernel),6144k(rootfs),192k(config),64k(ART) mem=64M
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 61376k/65536k available (1836k kernel code, 4088k reserved, 476k data, 116k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:128
plat_time_init: plat time init done
Calibrating delay loop... 279.55 BogoMIPS (lpj=559104)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
bio: create slab at 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
Switched to high resolution mode on CPU 0
net_link: create socket ok.
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
ATH GPIOC major 0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
NTFS driver 2.1.29 [Flags: R/O].
msgmni has been set to 120
alg: No test for lzma (lzma-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xb8020000 (irq = 19) is a 16550A
console [ttyS0] enabled
PPP generic driver version 2.4.2
NET: Registered protocol family 24
7 cmdlinepart partitions found on MTD device ath-nor0
Creating 7 MTD partitions on "ath-nor0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000030000 : "pation-table"
0x000000030000-0x000000040000 : "product-info"
0x000000040000-0x0000001c0000 : "kernel"
0x0000001c0000-0x0000007c0000 : "rootfs"
0x0000007c0000-0x0000007f0000 : "config"
0x0000007f0000-0x000000800000 : "ART"
TCP cubic registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear  All bugs added by David S. Miller  
athwdt_init: Registering WDT success
athwdt_timer_init: Starting WDT.
ath_otp_init: Registering OTP success
ath_clksw_init: Registering Clock Switch Interface success
VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
Freeing unused kernel memory: 116k freed
xt_time: kernel timezone is -0000
nf_conntrack version 0.5.0 (1024 buckets, 30720 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
Register vlan_manage hooks success.
PPPoL2TP kernel driver, V1.0
PPTP driver version 0.8.3
ATHR_GMAC: Length per segment 1536
ATHR_GMAC: fifo cfg 3 01f00140
mac:0 Registering S27....
ATHR_GMAC: RX TASKLET - Pkts per Intr:100
ATHR_GMAC: Mac address for unit 0:bfff0000
ATHR_GMAC: ff:ff:ff:ff:ff:ff
ATHR_GMAC: Max segments per packet : 1
ATHR_GMAC: Max tx descriptor count : 128
ATHR_GMAC: Max rx descriptor count : 128
ATHR_GMAC: Mac capability flags : 2580
mac:1 Registering S27....
ATHR_GMAC: RX TASKLET - Pkts per Intr:100
ATHR_GMAC: Mac address for unit 1:bfff0006
ATHR_GMAC: ff:ff:ff:ff:ff:ff
ATHR_GMAC: Max segments per packet : 1
ATHR_GMAC: Max tx descriptor count : 128
ATHR_GMAC: Max rx descriptor count : 128
ATHR_GMAC: Mac capability flags : 2D80
device eth0 entered promiscuous mode
device eth1 entered promiscuous mode
athr_gmac_ring_alloc Allocated 2048 at 0x83a7e000
athr_gmac_ring_alloc Allocated 2048 at 0x83ad4800
WASP ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
athr_gmac_ring_alloc Allocated 2048 at 0x83b3f000
athr_gmac_ring_alloc Allocated 2048 at 0x83a97800
WASP ----> S27 PHY MDIO
ATHRS27: resetting s27
ATHRS27: s27 reset done
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
Disable VlanManage, data.enable(0), data.vid(0)
adf: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 0.9.17.1 (AR9380, REGOPS_FUNC, WRITE_EEPROM, 11D)
ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
ath_spectral: Version 2.0.0
Copyright (c) 2005-2009 Atheros Communications, Inc. All Rights Reserved
SPECTRAL module built on Mar 27 2018 14:52:51
ath_dfs: Version 2.0.0
Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
ath_ahb: 9.5.2.18 (Atheros/multi-bss)
Enterprise mode: 0x00000000
Restoring Cal data from Flash
ar9300_convert_eeprom templateVersion = 82
===>>>[ar9300_eeprom_cover_ctl:5087] cover_ctl_flag: 1.
===>>>[ar9300_eeprom_cover_ctl:5093] cover ctl done.
ath_get_caps[6209] rx chainmask mismatch actual 3 sc_chainmak 0
ath_get_caps[6184] tx chainmask mismatch actual 3 sc_chainmak 0
wifi0: Atheros 9340: mem=0xb8100000, irq=2
===>>>[ar9300_eeprom_cover_ctl:5087] cover_ctl_flag: 1.
===>>>[ar9300_eeprom_cover_ctl:5093] cover ctl done.
dfs is NULL dfs_init_radar_filtersieee80211_wifipos_vattach: 3512: Wifipos intialization starting
ieee80211_wifipos_vattach: 3525: Wifipos intialization mem alloc complete
ieee80211_wifipos_vattach:3539 Netlink socket created for wifipos:83ba1a00
ieee80211_wifipos_vattach: 3555: Wifipos intialization sock alloc complete
ieee80211_wifipos_vattach:3558 Registered WIFIPOS netlink family
ieee80211_wifipos_vattach: 3609: Wifipos intialization time alloc complete
ieee80211_wifipos_vattach: 3628: Wifipos intialization data store 1 alloc complete
ieee80211_wifipos_vattach: 3638: Wifipos intialization data store 2 alloc complete
ieee80211_wifipos_vattach: 3652: Wifipos intialization complete
VAP device ath0 created
dfs is NULL dfs_init_radar_filters
device ath0 entered promiscuous mode
br0: port 3(ath0) entering forwarding state
Scan in progress.. Cancelling it
dfs_attach: use DFS enhancements
DFS min filter rssiThresh = 18
DFS max pulse dur = 151 ticks
dfs_attach disable detects
br0: port 3(ath0) entering disabled state
br0: port 3(ath0) entering forwarding state
Function ieee80211_acs_find_best_11na_centerchan best 5G channel is 157
enet0 port4 up 100Mbps Full duplex
ATHR_GMAC: Enet Unit:0 PHY:4 is UP RGMii 100Mbps full duplex
ATHR_GMAC: done cfg2 0x7115 ifctl 0x10000 miictrl
Setting Drop CRC Errors, Pause Frames and Length Error frames
br0: port 1(eth0) entering forwarding state
device ath0 left promiscuous mode
br0: port 3(ath0) entering disabled state
ieee80211_wifipos_vdetach:3682 Release the socket
ieee80211_wifipos_vdetach:3718 UnRegistered WIFI positioning netlink family
ath_ahb: driver unloaded
Removing athdebug proc file
ath_dev: driver unloaded
ath_dfs: driver unloaded
ath_spectral: driver unloaded
ath_rate_atheros: driver unloaded
ath_hal: driver unloaded
ath_hal: 0.9.17.1 (AR9380, REGOPS_FUNC, WRITE_EEPROM, 11D)
ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
ath_spectral: Version 2.0.0
Copyright (c) 2005-2009 Atheros Communications, Inc. All Rights Reserved
SPECTRAL module built on Mar 27 2018 14:52:51
ath_dfs: Version 2.0.0
Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
ath_ahb: 9.5.2.18 (Atheros/multi-bss)
Enterprise mode: 0x00000000
Restoring Cal data from Flash
ar9300_convert_eeprom templateVersion = 82
===>>>[ar9300_eeprom_cover_ctl:5087] cover_ctl_flag: 0.
ath_get_caps[6209] rx chainmask mismatch actual 3 sc_chainmak 0
ath_get_caps[6184] tx chainmask mismatch actual 3 sc_chainmak 0
wifi0: Atheros 9340: mem=0xb8100000, irq=2
===>>>[ar9300_eeprom_cover_ctl:5087] cover_ctl_flag: 0.
dfs is NULL dfs_init_radar_filtersieee80211_wifipos_vattach: 3512: Wifipos intialization starting
ieee80211_wifipos_vattach: 3525: Wifipos intialization mem alloc complete
ieee80211_wifipos_vattach:3539 Netlink socket created for wifipos:82965e00
ieee80211_wifipos_vattach: 3555: Wifipos intialization sock alloc complete
ieee80211_wifipos_vattach:3558 Registered WIFIPOS netlink family
ieee80211_wifipos_vattach: 3609: Wifipos intialization time alloc complete
ieee80211_wifipos_vattach: 3628: Wifipos intialization data store 1 alloc complete
ieee80211_wifipos_vattach: 3638: Wifipos intialization data store 2 alloc complete
ieee80211_wifipos_vattach: 3652: Wifipos intialization complete
VAP device ath0 created
dfs is NULL dfs_init_radar_filters
device ath0 entered promiscuous mode
br0: port 3(ath0) entering forwarding state
Scan in progress.. Cancelling it
dfs_attach: use DFS enhancements
DFS min filter rssiThresh = 18
DFS max pulse dur = 151 ticks
dfs_attach disable detects
br0: port 3(ath0) entering disabled state
br0: port 3(ath0) entering forwarding state
Scan in progress.. Cancelling it
br0: port 3(ath0) entering disabled state
dfs_control enable detects
br0: port 3(ath0) entering forwarding state
Function ieee80211_acs_find_best_11na_centerchan best 5G channel is 157

I have created my own patches to get it running on OpenWrt
Have a look at https://github.com/aredn/aredn_ar71xx/blob/develop/patches/001-add_support_for_TP-Link_CPE610_v1.patch

1 Like

hi, can u please give step by step how to make it running on cpe 610

Hi,

Have a Look at my PR https://github.com/openwrt/openwrt/pull/1748 for the ATH79 version.

For the AR71xx version you would apply my patch https://github.com/aredn/aredn_ar71xx/blob/develop/patches/001-add_support_for_TP-Link_CPE610_v1.patch

Then you would follow the standard Openwrt build process.

Regards

Andrew

1 Like

hi,
thanks for your guide .
but i'm very new about open wrt , usually i install just by upload firmware to the router and it's done :cry: . can you guide me please step by step cause i need WPA2/ENTERPRISE on CPE610.

Hi,

Here are the High level Steps for a Linux System

You need to install all the Prerequisites

https://openwrt.org/docs/guide-developer/build-system/install-buildsystem

Then you would build the system as follows

git clone https://github.com/openwrt/openwrt.git

Apply the Patches from my PR https://patch-diff.githubusercontent.com/raw/openwrt/openwrt/pull/1748.patch

Save this to a file and use it to patch the openwrt folder using git apply or the patch command.

Then follow the Instructions below but select the tplink_cpe610-v1 Device.

https://openwrt.org/docs/guide-developer/build-system/use-buildsystem

Regards

Andrew

The Current Compiled Images for the TP-LINK CPE610 can be downloaded here
https://downloads.openwrt.org/snapshots/targets/ath79/generic/

2 Likes