Support for new Archer c5 v4

Hello, First of all thank you for all your hard work in supporting this router.

I am from India and i got this router Archer C5 V4 from the ISP (ACT), I forgot the admin panel password so i tried to reset the router and re-create the password.
When i pressed the reset button, the LEDs blinked but the router didn't reset. I even tried 30-30-30 reset technique but that didn't help either. Everytime i get the same admin panel prompt even the SSIDs are same.

Eventually i thought of flashing opwnwrt via tftp and flash back to the stock. I managed to flash openwrt and get it working. But after i flashed the stock file it started bootloop.
Following is the console output


U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Feb 19 2019  Time:05:52:56
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()

continue to starting system.                                                                                     0
disable switch forward...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover


U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Feb 19 2019  Time:05:52:56
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()

continue to starting system.                                                                                     0
disable switch forward...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover


U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Feb 19 2019  Time:05:52:56
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()

continue to starting system.                                                                                     0
disable switch forward...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover


U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Feb 19 2019  Time:05:52:56
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()

continue to starting system.                                                                                     0
disable switch forward...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover


U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Feb 19 2019  Time:05:52:56
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()

continue to starting system.                                                                                     0
disable switch forward...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover


U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************

I will appreciate any input

How did you flash the stock firmware?

Using tftp as mentioned here https://openwrt.org/toh/tp-link/archer_c5_v4

tftp 0x80060000 tp_recovery.bin
 erase tplink 0x20000 0x7a0000
 cp.b 0x80080000 0x20000 0x7a0000
 reset

Where did you get the stock image?

I download it from the links given in the same page. I tried multiple images, but same results


http://static.tp-link.com/2019/201902/20190204/Archer_C5_EUWISP_1206.rar
and

I also found a russian one here https://www.tp-link.com/ru/support/download/archer-c5-v4/#Firmware but didn't try it yet.

Just tried the russian file as well, same result :frowning:

Here is the logs



4: System Enter Boot Command Line Interface.

U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)
MT7620 # tftp 0x80060000 tp_recovery.bin

 NetTxPacket = 0x83FE3EC0

 KSEG1ADDR(NetTxPacket) = 0xA3FE3EC0

 NetLoop,call eth_halt !

 NetLoop,call eth_init !
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!!
TFTP from server 192.168.0.225; our IP address is 192.168.0.2
Filename 'tp_recovery.bin'.

 TIMEOUT_COUNT=10,Load address: 0x80060000
Loading: Got ARP REPLY, set server/gtwy eth addr (3c:97:0e:0e:12:cb)
Got it
#################################################################
         #################################################################
         ################################################checksum bad
#######checksum bad
##########
         #############################################checksum bad
####################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########checksum bad
####checksum bad
####################checksum bad
################################
         #################################################################
         #################################Got ARP REQUEST, return our IP
################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ############################
done
Bytes transferred = 8126976 (7c0200 hex)
LoadAddr=80060000 NetBootFileXferSize= 007c0200
MT7620 # erase tplink 0x20000 0x7a0000

 Erase flash !!
From 0x20000 length 0x7A0000
raspi_erase: offs:20000 len:7a0000
..........................................................................................................................
MT7620 # cp.b 0x80080000 0x20000 0x7a0000

 Copy 0x80080000 to 0x00020000, count 0x7A0000....
raspi_write: to:20000 len:7a0000
..........................................................................................................................
MT7620 # reset


U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Feb 19 2019  Time:05:52:56
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()

continue to starting system.                                                                                     0
disable switch forward...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover


U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Feb 19 2019  Time:05:52:56
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()

continue to starting system.                                                                                     0
disable switch forward...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover


U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Feb 19 2019  Time:05:52:56
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()

continue to starting system.                                                                                     0
disable switch forward...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover


U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Feb 19 2019  Time:05:52:56
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()

continue to starting system.                                                                                     0
disable switch forward...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover


U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Feb 19 2019  Time:05:52:56
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()

continue to starting system.                                                                                     0
disable switch forward...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover


U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 29
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================
Ralink UBoot Version: 5.0.0.0
--------------------------------------------
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Feb 19 2019  Time:05:52:56
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()

continue to starting system.                                                                                     0
disable switch forward...

3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover


U-Boot 1.1.3 (Feb 19 2019 - 05:52:56)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************

The filesize of the openwrt and the tplink image are different. Will this impact the erase and write command?.
The filesize of the openwrt image is 7995392 bytes which corresponds to 0x7a0000
But the size of the tplink image is 8126976 bytes which corresponds to 0x7C0200

Does it make sense to update the erase and write command?

--------------------- UPDATE ---------------------

Problem solved by cutting the TP-LINK firmware as described here

Also the name has to be test.bin instead of tp_recovery.bin

When i try to install any packages, i get this error, any input?

Installing download-quotas (1.2) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for download-quotas:
 *      kernel (= 4.14.131-1-f908844d5e5aab0a4b27f7d4c77655d0)
 * opkg_install_cmd: Cannot install package download-quotas.

  • Firmware Version - OpenWrt 18.06.4 r7808-ef686b7292 / LuCI openwrt-18.06 branch (git-19.170.32094-4d6d8bc)
  • Kernel Version - 4.14.131

HI,
just wanted to know wether you were successful reverting back to stock firmware??

If yes.. Please explain in detail

Hi tplinker.
Can you provide instructions how to modify (pad with zeroes) openwrt bin to sideload firmware with tftp?
I have latest russian firmware with updated uboot and agileconfig already flashed on c5v4.
Firmware is from this page and is for RUS version:


If anyone is interested, i followed this video to flash RUS version on EU:

You can use this command to strip the header from the downloaded firmware

dd if=orig.bin of=stripped.bin bs=512 skip=1

Hi benwht.
Can you please, update images for 19.07-rc1 or update compiling instructions.
I have 18.06.4 installed but i get random wi-fi drops.
Thanks

Hi all,
with help with this article: https://hamy.io/post/0015/how-to-compile-openwrt-and-still-use-the-official-repository/

I was able to compile firmware also with installation official packages funcionality. Feel free to download it:http://www.easyx.cz/openwrt-18.06.4-ramips-mt7620-tplink_c5-v4-squashfs-sysupgrade.bin

And for all of us: There is only way how first upload Open-WRT. Via. serial ports (UART/USB converter needed and for example PUTY console) inside in router not only via. LAN. That is not so clear for beginners in tutorial.

Bye!

I was able to compile firmware also with installation official packages funcionality. Feel free to download it:http://www.easyx.cz/openwrt-18.06.4-ramips-mt7620-tplink_c5-v4-squashfs-sysupgrade.bin

Hello. I am New here. I also have an Archer C5 v4. Is it worth changing flashing The openwrt rom instead of The russian version? I mean, with openwrt i Will get better range, better speed? I really want to know.

It's not correct.
Atleast russian version support recovery mode. Just hold reset button
while powering on device.

U-Boot 1.1.3 (May 21 2018 - 11:36:39)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29 
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================ 
Ralink UBoot Version: 5.0.0.0
-------------------------------------------- 
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:May 21 2018  Time:11:36:39
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 

 ##### The CPU freq = 580 MHZ #### 
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()
..................................................
starting recovery...
Read MAC Address from Flash
raspi_read: from:7df100 len:6 


 NetTxPacket = 0x83FE3FC0 

 KSEG1ADDR(NetTxPacket) = 0xA3FE3FC0 

 NetLoop,call eth_halt ! 

 NetLoop,call eth_init ! 
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!! 
TFTP from server 192.168.0.66; our IP address is 192.168.0.2
Filename 'tp_recovery.bin'.

 TIMEOUT_COUNT=10,Load address: 0x81000000
Loading: *T T T T T T T T T T 
Retry count exceeded; starting again
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80297970) ...
## Giving linux memsize in MB, 64

Starting kernel ...


LINUX started...
Linux version 3.4.113 (padavan@hms) (gcc version 7.4.0 (crosstool-NG UNKNOWN) ) #1 Wed Nov 6 22:33:37 +07 2019
MediaTek SoC: MT7620A, RevID: 0206, RAM: DDR2, XTAL: 40MHz
CPU/OCP/SYS frequency: 580/193/193 MHz

As you can see - router ip is 192.168.0.2, server ip - 192.168.0.66 and recovery filename tp_recovery.bin.
So to flash openwrt without UART/USB converter you only need to make tp_recovery.bin file (uboot128k.bin+firmware.bin)
and setup your PC/TFPD server.
For testing I've prepared tp_recovey.bin:


based on:
https://github.com/benwht/openwrt/releases/download/v18.06.4/openwrt-ramips-mt7620-tplink_c5-v4-squashfs-sysupgrade.bin

Et voila:

U-Boot 1.1.3 (May 21 2018 - 11:36:39)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29 
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================ 
Ralink UBoot Version: 5.0.0.0
-------------------------------------------- 
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:May 21 2018  Time:11:36:39
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 

 ##### The CPU freq = 580 MHZ #### 
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()
..................................................
starting recovery...
Read MAC Address from Flash
raspi_read: from:7df100 len:6 


 NetTxPacket = 0x83FE3FC0 

 KSEG1ADDR(NetTxPacket) = 0xA3FE3FC0 

 NetLoop,call eth_halt ! 

 NetLoop,call eth_init ! 
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!! 
TFTP from server 192.168.0.66; our IP address is 192.168.0.2
Filename 'tp_recovery.bin'.

 TIMEOUT_COUNT=10,Load address: 0x81000000
Loading: *checksum bad
T Got ARP REPLY, set server/gtwy eth addr (00:23:81:15:45:dd)
Got it
#################################################################
	 #################################################################
	 #################################################################
	 ######################################checksum bad
###########################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ###########################
done
Bytes transferred = 4128945 (3f00b1 hex)
LoadAddr=81000000 NetBootFileXferSize= 003f00b1

 Erase flash !!
From 0x20000 length 0x7A0000
raspi_erase: offs:20000 len:7a0000
..........................................................................................................................

 Copy 0x81020000 to 0x00020000, count 0x7A0000.... 
raspi_write: to:20000 len:7a0000 
..........................................................................................................................


U-Boot 1.1.3 (May 21 2018 - 11:36:39)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 29 
spi device id: c8 40 17 c8 40 (4017c840)
Warning: un-recognized chip ID, please update bootloader!
============================================ 
Ralink UBoot Version: 5.0.0.0
-------------------------------------------- 
ASIC 7620_MP (Port5<->GigaSW)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:May 21 2018  Time:11:36:39
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 

 ##### The CPU freq = 580 MHZ #### 
 estimate memory size =64 Mbytes
rt_rtl8367_init(1705):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
rt_rtl8367_init(1749):Call Func rt_rtl8367_enableRgmii()

continue to starting system.
 0 
disable switch forward...
   
3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 4.14.131 (ubuntu@ubuntu-VirtualBox) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7808-ef686b7292)) #0 Thu Jun 27 12:18:52 2019
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[    0.000000] bootconsole [early0] enabled

Please pay attention that tp_recovery.bin is loaded at 0x81000000

LoadAddr=81000000 NetBootFileXferSize= 003f00b1

but image is flashed form 0x81020000.

 Erase flash !!
From 0x20000 length 0x7A0000
raspi_erase: offs:20000 len:7a0000
..........................................................................................................................
Copy 0x81020000 to 0x00020000, count 0x7A0000.... 

It means that uboot skip flashing new version of uboot code and use only firmware.bin part of tp_recovery file.
So you can use any 128k (131072 bytes) size file for preparing tp_recovery.bin

I tried to boot my tp link archer c5 v4 eu version with russian firmware to recovery but i am not sure if i did it corectly? Can you tell it step by step? I need to power off and power on the router and immediately after the power on i hold the reset button? If that is the method for how many seconds i hold the reset button?

Press and hold reset before powering on.

1 Like

It doesn t work. How i Will see if The router goes în recovery mode?

Bootloader burn WPS-led in recovery mode. But if uboot do not get firmware, in some seconds it continue normal boot process.
Do you correctly setup tftp server and your PC?