Support for new Archer c5 v4

Good afternoon people

Could someone teach me how to flash the firmware version (EUWISP) of the link: https://www.tp-link.com/bg/download/Archer-C5-V4.html to my archer C5 V4 (BRWISP) through TFTP?

Archer_C5 (EUWISP) v4_3.16.0_0.9.1_up_boot (181119) _2018-11-20_13.35.25.bin

I have researched several sites and forums and found no tutorial on how to do this. I only found recovery tutorials where the file can not have the boot name in the description.

Thank you, Leandro.

Good night,

I tried several ways to get into TFTP mode but to no avail.
I did the procedure I found in the Openwrt forums, put the computer's ip in: 192.168.0.66

I changed the firmware name to tp_recovery.bin. I opened the TFTP (32bits / 64bits), I directed the file folder. I inserted the network cable and it does not work.
I tried to start by holding the WPS button, then holding the Reset button and holding the 2 at the same time. But nothing worked.

Can someone please help me?

Thank you, Leandro.

Hi mhegab

Yes, the router is avaliable. Yes, it has the firmware stock.

I tried to access the document link, but the following message appears:

" Access Denied

You don't have permission to access "http://static.tp-link.com/2018/201805/20180517/Archer%20C5%20W.pdf" on this server.
Reference #18.87d8f648.1552765217.78305076"

I am trying to install the firmware of the European region (EU-WISP) on my device BR (BR-WISP).
There is no firmware available on Tp Link Brasil website. I contact the support and has no prediction to release new firmware.

I am trying to install via TFTP, but without success.

Can you help me with TFTP?

Thanks, Leandro.

I edited the link. Just removed the "s" from http. The browser will put it back but it will open the page

Isn't this link intended for Brazil? https://www.tp-link.com/br/download/Archer-C5-V4.html I mean I see it lists the EU firmware, but the page itself is in Portuguese and it reads /br/ in the URL. So I would presume that it's the correct firmware for your router.

Hi mhegab,

I tried to update with the firmware below:

Archer_C5 (EUWISP) v4_3.16.0_0.9.1_up_boot (181119) _2018-11-20_13.35.25.bin

From the link: https://www.tp-link.com/bg/download/Archer-C5-V4.html

but it did not work...
When I try to update, I get the message:

"Error Code: 4503
Uploaded file was not accepted."

This router uses signature in its firmware. Not accepting firmware from another region.
According to previous posts, the only way to work is through TFTP. But this process is not working either ...

Can someone help me with TFTP?

Thanks, Leandro.

Sorry, I don't have any specific knowledge of this router other than what's in "http://static.tp-link.com/2018/201805/20180517/Archer%20C5%20W.pdf"

@gaspare
I managed to compile the rtl8367s driver as module and build a firmware with your dts, but still no luck, ethernet is not working at all. :frowning_face: swconfig can only detect the switch.

I noticed this in kernel log:

[    0.808493] libphy: Fixed MDIO Bus: probed
[    0.823600] gsw: setting port4 to gmac mode
[    0.828195] libphy: mdio: probed
[    0.834686] mdio_bus mdio-bus: MDIO device at address 4 is missing.

Have you tested your build?
btw I wonder how did you find the GPIO number. With a multimeter?

@LGA1150 ... Sorry... The GPIO is wrong in the DTS ... It was an old DTS... The correct line is:
mediatek,reset-pin = <&gpio2 20 0>;

And in ethernet, must remove the rgmii2:
pinctrl-0 = <&rgmii1_pins &mdio_pins>;

This is because I found that the first pin os RGMII2 is the reset pin of the switch.
If you boot the image using the bootloader tftpd and bootm, the old DTS will work because the boot loader do the reset of the switch... But, of course, we want the image to reset the switch :slight_smile: ... To find the right pin, I booted the image in memory and switch all pins to 1 until I lost connectivity (proving the switch was reseted)...

It's working now, good job!
But I see warnings in kernel log:

[   11.778411] rt2880-pinmux pinctrl: pin 60 is not set to gpio mux
[   11.784556] rt2880-pinmux pinctrl: request() failed for pin 60
[   11.790592] rt2880-pinmux pinctrl: pin-60 (pio:60) status -22
[   11.796451] fail to devm_gpio_request
[   12.300439] ------------[ cut here ]------------
[   12.305186] WARNING: CPU: 0 PID: 574 at drivers/gpio/devres.c:403 devm_gpio_free+0x3c/0x4c
[   12.313624] Modules linked in: rtl8367s_gsw(+) nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_conntrack_ipv4 nf_nat_ipv4 nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda iptable_raw iptable_mangle iptable_filter ipt_ECN ip6table_raw ip_tables fou6 fou crc_itu_t crc_ccitt compat fuse tcp_bbr act_connmark sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred
[   12.386459]  ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6t_NPT ip6t_MASQUERADE nf_nat_masquerade_ipv6 nf_nat nf_conntrack ip6t_rt ip6t_mh ip6t_ipv6header ip6t_hbh ip6t_frag ip6t_eui64 ip6t_ah nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 nfsv4 nfsv3 nfs msdos ifb ip6_udp_tunnel udp_tunnel sit ipip ip6_tunnel tunnel6 tunnel4 ip_tunnel tun vfat fat lockd sunrpc grace dns_resolver nls_utf8 nls_iso8859_1 nls_cp936
[   12.459043]  nls_cp437 eeprom_93cx6 uas usb_storage leds_gpio ohci_platform ohci_hcd ehci_platform sd_mod scsi_mod ehci_hcd gpio_button_hotplug ext4 mbcache jbd2 exfat usbcore nls_base usb_common crc16 crc32c_generic crypto_hash
[   12.479780] CPU: 0 PID: 574 Comm: kmodloader Not tainted 4.14.106 #0
[   12.486257] Stack : 804d0000 80485e98 00000000 00000000 8045f0c0 830a5b04 839102dc 804af9a7
[   12.494807]         8045b1a0 0000023e 80503660 00000193 00000009 80500000 830a5ab8 e273a9cd
[   12.503357]         00000000 00000000 80500000 000049b0 00000000 000000e2 00000007 00000000
[   12.511902]         00000000 804b0000 00075224 00000000 80000000 00000000 80471ee8 801e0060
[   12.520451]         00000009 00000193 00000009 014000c0 00000003 80217600 00000000 80500000
[   12.529001]         ...
[   12.531497] Call Trace:
[   12.534011] [<8000ee60>] show_stack+0x58/0x100
[   12.538563] [<8002a6c0>] __warn+0xe4/0x118
[   12.542744] [<8002a784>] warn_slowpath_null+0x1c/0x28
[   12.547913] [<801e0060>] devm_gpio_free+0x3c/0x4c
[   12.553002] [<829000a0>] init_module+0x300a0/0x301b8 [rtl8367s_gsw]
[   12.559684] ---[ end trace 97eb570af9b72411 ]---
[   13.256022] [rtl8367s_swconfig_init]

Do I need to switch RGMII2 pinmux to GPIO?

BTW how to generate a compatible sysupgrade image for TP-Link? In my case it doesn't recognize the image and I have to use sysupgrade -f every time.

Yep... the RGMII2 pin must be in gpio. Just redirect rgmii2 in ralink,group.
You must modify the upgrade script to accept C5.

So where is it?:no_mouth:

target/linux/ramips/base-files/lib/upgrade/platform.sh

Include C5 with C20, C50, etc ...

Olá! amigo, não é possível queimar os firmware do openwrt na relação do melhoramento dos firmware de TPLINK. Você tem que usar um ferro elétrico para destacar o FLASH, a seguir usa o CH341A para queimar os firmware.

c5v2 has no 5GHz.

I recently discovered openwrt.
I have installed it in a Nucom R5010UNv2 and it is awsome.
I had previously used DD-WRT in a TP-link 1043N v1.2, but I prefer openwrt interface and its modularity.

Recently (a few days) I have bought an Tp-link Archer C5.
It was supposed to be he model with 2 usb, black and with two antenas (v2 I think).

But when it arrived it is a v4 model with four antennas an 1 usb.

I was reading in your forum and it seems it is not supported yet.
But is somebody working in it? May I expect to get it working with openwrt in the not so far future?

If not, I think I will be able to return it (they promised 2 usb ports in the announcement, which I think is v2 version and compatible with openwrt).
Is Archer C5 v2 fully compatible with openwrt? (the hardware list names it as compatible with current stable version).

Which other router wireless AC in this price tag may be compatible with openwrt with similar specs?

My needs are not very high. I need a clean and usefull interface, with basic router funcionality, I need VPN, I need being able to config a DNS in it to resolve internal resources, and wireless 2.4 and 5G access point.

propietary Firmwares in home router don't provide me some of the services, like DNS (dnsmasq configuration) and in some cases VPN.

Thanks a lot for your attention and thanks for this great soft.

thanks for the advice, wulfy23

https://wikidevi.com/wiki/TP-LINK_Archer_C5_v4.x should be supportable, but given its older SOC (mt7620 instead of mt7621, small flash and RAM), it's not particularly interesting (meaning I wouldn't expect anyone to jump for it).

Support for new devices is, to a large extent, provided by non-regular contributors (that could even be you), who want to get OpenWrt working on their new, currently unsupported, device and submit their changes to OpenWrt. Accordingly there are no predictions possible which devices will get the attention and land on the desk of anyone capable to add support for a new device - it may happen tomorrow, or never at all.

1 Like

Thanks a lot for your answer.

I have mistakenly thought that Archer C5 was supported, as it is listed in the wiki as compatible.
I did not even know that there were a v4 version, I thought it was v2.

The problem is that when you buy it they don't specify the version of the router.

And oddly tp-link seems to sell quite different routers under the "Archer C5" umbrella.
I have had a tp-link router the 1043N that was quite a good one for the price, and is supported (but just wifi N).

Probably the last tp-link router i would buy as if they change the complete hardware and sell them with the same name.
They even tell you it has 2 usb ports and send you a new model with 1 usb port.

Which router in the same price tag may I buy with a doog wifi n/ac 2.4 and 5 Ghz?
I have been reading the posts here but there are many routers and lots of info that may be obsolete.

My needs are not so demanding, just a router with good wifi access and that I can control and configure with openwrt (the firmware in the archer c5 does not even resolv dns names and you cannot configure dnsmasq in any way).

At the moment I cannot contribute as I have not enough expertize with openwrt.
I can provide info about the router, its hardware and settings if somebody provides me guidance, in order to facilitate openwrt running in it.