TP-Link Archer C2 V1 - Lede Download

Hello,

i have searched on the homepage from Lede to Download for the Device TP-Link Archer C2 V1, but i didnt find the download?!

Here is the Hardware site: https://lede-project.org/toh/hwdata/tp-link/tp-link_archer_c2_ac750

Maybe it exist no Lede firmware for the router i have?

thx for help!

Correct.
There is no support listed and no LEDE firmware available.

ah ok, thank you for reply!

You may be able to get openwrt working on it.
https://forum.openwrt.org/viewtopic.php?id=52625
It did not work for me but maybe I just have a bad router that won't flash?

Hello,

thank you for the tip!

OpenWRT port actually works rather well. Unfortunately, it is not patched so frequently so it would be great if there is a way to re-compile LEDE for C2 instead :slight_smile:

Umm, I build a LEDE project for Archer C2. The code transfer from this to LEDE-C2.

Wait me a moment, I'll upload to github today(GMT+8,Taipei).

Sry my bad English.

this is first commit, I'll try tomorrow.

Great stuff.
I was about to try the OpenWRT from plwm myself, now that I have a flashable C2 router.
I will give yours a try instead as soon as I get the chance.

I got it installed but had to start from scratch using ftp to load the original ArcherC2V1_tp_recovery.bin from Here:-

https://forum.openwrt.org/viewtopic.php?pid=347582#p347582

as sysupgrade complained that it would not work with this firmware while I was already on:-

https://github.com/zaccareal/openwrt-archer-c2/files/1296193/openwrt-ramips-mt7620-ArcherC2-squashfs-sysupgrade.bin.zip

Once I was on ArcherC2V1_tp_recovery.bin again, then I could sysupgrade from the command line with this:-
https://github.com/sunsky13122156/LEDE-Archer-C2/files/1443529/lede-ramips-mt7620-ArcherC2-squashfs-sysupgrade.zip

It seems to be working OK

You state "It's have bug: 5G wifi can not get IP address."
But 5Ghz seems to be working OK for me, what's the issue?

I have try it. Just my phone error lol.
reboot the phone it's all ok.

Thanks, I was reluctant to put it into production environment if there were issues with 5Ghz wifi, but I am more confident to try it now. Hopefully it will solve an issue that I have with the non LEDE routers not passing through MAC addresses and hostnames that I reported here:-

I hope this isn't too much to ask.

I'm experimenting with some special VPN software with the stock firmware and it didn't cut it. So, I tried to switch over to LEDE, but in the process, I accidentally wiped the calibration data while SPI flashing (I bricked it prior to installing LEDE). WAN and 2.4GHz WiFi won't work. Relevant UART log entry below:

[    9.902508] procd: - init -
Please press Enter to activate this console.
[   10.310922] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.323672] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.340125] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[   10.348370] Backport generated by backports.git backports-20160324-13-g24da7d3c
[   10.698773]
[   10.698773]
[   10.698773] === pAd = c0401000, size = 837024 ===
[   10.698773]
[   10.708505] <-- RTMPAllocTxRxRingMemory, Status=0
[   10.714526] <-- RTMPAllocAdapterBlock, Status=0
[   10.719180] device_id =0x7650
[   10.722212] RtmpFlashRead(8329e544, 80000, 400)
[   10.823254] RtmpFlashWrite(8329e544, 80000, 200) IGNORED!
[   10.828819] ==>MT76x0_WLAN_ChipOnOff(): OnOff:1, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0xff000002
[   10.837885] MACVersion = 0x76502000
[   10.841450] MT7610 AP Driver version: 3.0.0.9
[   10.926207] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.940673] nf_conntrack version 0.5.0 (951 buckets, 3804 max)
[   10.992630] xt_time: kernel timezone is -0000
[   11.010351] PPP generic driver version 2.4.2
[   11.027126] NET: Registered protocol family 24
[   11.058305] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "radio"
[   11.065522] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[   11.073563] ieee80211 phy0: rt2800_init_eeprom: Error - Invalid RF chipset 0xffff detected
[   11.082021] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to allocate device
[   11.089782] ------------[ cut here ]------------
[   11.094525] WARNING: CPU: 0 PID: 420 at mm/vmalloc.c:1460 release_firmware+0x64/0x144()
[   11.102701] Trying to vfree() bad address (83345c00)
[   11.107775] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERAD                     E xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00                     lib nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filt                     er ip_tables crc_itu_t crc_ccitt mt7610e mt76x2e mt7603e mt76 mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_fil                     ter ip6_tables x_tables eeprom_93cx6 leds_gpio gpio_button_hotplug
[   11.173751] CPU: 0 PID: 420 Comm: kmodloader Not tainted 4.4.92 #0
[   11.180066] Stack : 8034ccd4 00000000 00000001 803a0000 839cefcc 80394d23 8032e604 000001a4
          803e3438 00000004 00000016 024000c0 800663ec 8004afbc 80333b34 80390000
          00000003 00000004 80331f38 83ba1ae4 800663ec 80048f28 00000002 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          ...
[   11.216453] Call Trace:
[   11.218953] [<800148c8>] show_stack+0x54/0x88
[   11.223404] [<80025440>] warn_slowpath_common+0xa0/0xd0
[   11.228755] [<8002549c>] warn_slowpath_fmt+0x2c/0x38
[   11.233828] [<801af278>] release_firmware+0x64/0x144
[   11.238947] [<832e682c>] rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[   11.245896] [<832e1b80>] rt2x00lib_probe_dev+0x7a8/0x848 [rt2x00lib]
[   11.252413] [<8306d1e4>] rt2x00soc_probe+0x160/0x1bc [rt2x00soc]
[   11.258577] [<801aadd8>] platform_drv_probe+0x28/0x70
[   11.263739] [<801a940c>] driver_probe_device+0x120/0x288
[   11.269177] [<801a95f0>] __driver_attach+0x7c/0xb4
[   11.274071] [<801a78d8>] bus_for_each_dev+0x9c/0xac
[   11.279066] [<801a8b0c>] bus_add_driver+0xec/0x204
[   11.283963] [<801a9d08>] driver_register+0xa8/0xf8
[   11.288881] [<8000d8d0>] do_one_initcall+0x1e8/0x214
[   11.293971] [<8006760c>] do_init_module+0x74/0x1cc
[   11.298880] [<80068ea0>] load_module+0x16c0/0x1b68
[   11.303776] [<80069478>] SyS_init_module+0x130/0x180
[   11.308867] [<8000686c>] syscall_common+0x30/0x54
[   11.313663]
[   11.315183] ---[ end trace 5df9880e3ed1f47e ]---
[   11.319910] Kernel bug detected[#1]:
[   11.323565] CPU: 0 PID: 420 Comm: kmodloader Tainted: G        W       4.4.92 #0
[   11.331110] task: 839ced48 ti: 83ba0000 task.ti: 83ba0000
[   11.336612] $ 0   : 00000000 00000000 81065ce0 00000001
[   11.341958] $ 4   : 832e7b20 000000ff 000000d7 832e7b20
[   11.347300] $ 8   : 0000002d 65336530 34663164 5d206537
[   11.352643] $12   : 00000000 ac000000 00000000 03bd0000
[   11.357985] $16   : 83a23460 ffffffed 83a22b40 838a0f10
[   11.363328] $20   : 83a23734 00000004 00000016 024000c0
[   11.368670] $24   : 00000003 8019ee20
[   11.374012] $28   : 83ba0000 83ba1bb0 800663ec 832e682c
[   11.379357] Hi    : 00000000
[   11.382293] Lo    : ec4e4000
[   11.385248] epc   : 800a4ef4 kfree+0x70/0x150
[   11.389712] ra    : 832e682c rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[   11.396986] Status: 1100a403 KERNEL EXL IE
[   11.401267] Cause : 10800034 (ExcCode 0d)
[   11.405355] PrId  : 00019650 (MIPS 24KEc)
[   11.409438] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERAD                     E xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00                     lib nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filt                     er ip_tables crc_itu_t crc_ccitt mt7610e mt76x2e mt7603e mt76 mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_fil                     ter ip6_tables x_tables eeprom_93cx6 leds_gpio gpio_button_hotplug
[   11.475324] Process kmodloader (pid: 420, threadinfo=83ba0000, task=839ced48, tls=772a3d48)
[   11.483837] Stack : 83a23460 83ba1bd0 832e6d6c 83a23460 83a23460 832e1b80 83a22b40 838a0f10
          832e69e4 00000000 00000000 83354e00 83a22160 024080c0 83a23460 02400000
          83a22b40 838a0f10 83352524 00000004 00000016 024000c0 800663ec 8306d1e4
          80410000 8003ce64 833527d4 801ac8dc 838a0f10 833527d4 833527d4 80410000
          80410000 801aadd8 83354c00 00000001 833527d4 833527d4 838a0f10 838a0f10
          ...
[   11.520175] Call Trace:
[   11.522675] [<800a4ef4>] kfree+0x70/0x150
[   11.526784] [<832e682c>] rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[   11.533731] [<832e1b80>] rt2x00lib_probe_dev+0x7a8/0x848 [rt2x00lib]
[   11.540228] [<8306d1e4>] rt2x00soc_probe+0x160/0x1bc [rt2x00soc]
[   11.546372] [<801aadd8>] platform_drv_probe+0x28/0x70
[   11.551531] [<801a940c>] driver_probe_device+0x120/0x288
[   11.556954] [<801a95f0>] __driver_attach+0x7c/0xb4
[   11.561846] [<801a78d8>] bus_for_each_dev+0x9c/0xac
[   11.566828] [<801a8b0c>] bus_add_driver+0xec/0x204
[   11.571720] [<801a9d08>] driver_register+0xa8/0xf8
[   11.576617] [<8000d8d0>] do_one_initcall+0x1e8/0x214
[   11.581701] [<8006760c>] do_init_module+0x74/0x1cc
[   11.586596] [<80068ea0>] load_module+0x16c0/0x1b68
[   11.591488] [<80069478>] SyS_init_module+0x130/0x180
[   11.596564] [<8000686c>] syscall_common+0x30/0x54
[   11.601358]
[   11.602873]
Code: 30630001  24030001  38630001 <00030336> 8c430000  7c630380  10600003  00000000  10000002
[   11.613074] ---[ end trace 5df9880e3ed1f47f ]---
[   11.620614] Fatal exception: panic in 5 seconds

It seems that LEDE can't handle a borked radio. OpenWrt handles it gracefully (same error, but non-fatal).

Are there any C2 V1 users that are willing to give a copy of /dev/mtd8? This is where the calibration data and MAC address are stored, I think. It should let me fix my unit.

How do you post files here? mtd8 is luckily small (once compressed), so here goes a workaround:

root@ArcherC2:~# cat /etc/openwrt_version 
50020
root@ArcherC2:/etc/config# cat /proc/cpuinfo
system type             : MediaTek MT7620A ver:2 eco:6
machine                 : TP-Link Archer C2
(…)
# dmesg
[    0.955338] Creating 6 MTD partitions on "spi0.0":
(…)
[    1.096013] 0x0000007f0000-0x000000800000 : "radio"
# cat /proc/mtd
(…)
mtd8: 00010000 00010000 "radio"
# dd if=/dev/mtd8ro of=/tmp/mtd8ro
$ scp root@10.0.1.2:/tmp/mtd8ro /tmp/
$ cat /tmp/mtd8ro | bzip2 | base64
QlpoOTFBWSZTWan5WfEAAF1/9f/15BRRAFCFyEYCAEUABYLgTAIIAFAIAACBllywAOkwaQ1CGQyY
mgAaAYI0PUyNNBoU0ynqekeoeoNBoAAAAA0G1KTIAAaGgAAMmg0ANHaHEydmN1iQHXkgEpArxmqS
BIeIQQWmT782YyuUB8KIMVK6lGvhQie+m+eis4zK7PJCZiNKu5TSAagCCaEhBRiUIgNkQRIJfMYq
qAOWYe5SEw7IQlm3rtY3CytU8hw4sM8QbRTQ0U3VnzeApkaGmVCu+VhThKCaTjIA5Zz5EBhzxpYW
zUtfqerQIW1or+WfjGAAiIitT9hMEpAtQCSwkkkpWByBwQkkuDAAEdb7Bv4xt8msJAErKn/F3JFO
FCQqflZ8QA==

(To "unpack", cat code | base64 -d | bunzip2 > mtd8ro)

I can't find the MAC address of the radio there.

is this of any help? Seems like somebody made it work with openwrt.
Now that lede is becoming openwrt somebody needs to port it into the new openwrt sources.

i brich my router, and unbrich witch this instrucrion https://pwassi.privatedns.org/lede/archerc20i/

maybe someone will help my dump https://drive.google.com/open?id=1eyWxa4Mw2WCClBqvzAbazOkt-hEsQ1OH

Thank you very much for your flash dump! I used it to unbrick my router just fine!

I know this thread may be old, but I'm following this router's development. Anyone concerned could use an update.

The installation images over here work very well (on V1.1) compared to a year ago. Back then, it was buggy as hell and things everywhere are broken. Also, the opkg repositories on old images don't work anymore as the distribution feed got changed??

Anyways, for those still using the old C2 OpenWrt images, I highly suggest updating to the images on the link. Everything works really smooth, except for 5GHz which looks like it doesn't exist at all.

Settings may get wiped on update.

For those that can't use a wired connection after the update, pressing the wifi enable button on the back will enable an open AP named "OpenWrt" (Do this a few minutes after the router seemingly dies. I thought I bricked mine when I flashed.). There is no web UI, you'll have to use ssh. Configure the network just enough (IP, gateway, DNS) to be able to run opkg install luci, if that's your preference.

Kudos to the devs :smile: