Support for new Archer c5 v4

Sorry about that. I was sleepy, busy day, you know...
The English reply is now posted.
However, did you know non-English speakers use translators to understand what is here?
Maybe you can help more translating a message than complaining about that.
:wink:
Just kidding!

Auto translation is not always that reliable

1 Like

This firmware has serious performance problems, in stock firmware I can wifi my 340MBps of internet, this speed is just 150MBps with a lot of lag, on wifi 5G

Stock firmware makes use of MT7620 HWNAT, while OpenWrt does not support it yet.

Append: Have you tried the software flow offloading option?

No, I didn't do many tests.

The mt76 wireless drivers are not finished, check it here

The guys are doing a really great job, but it takes time.
You can try to use closed source drivers, maybe the wireless performance should be better.

You definitely should use the software offloading

Hello,
Did this firmware remove the limitation on bandwidth control? The factory setting limits the conection to 100mbps

Hi,

Which image did you use after updating to firmware build 190404 (and did result in booterror)?

Thanks
Weber

Hello, 18xxxx

1 Like

I've just posted patches for support rtl8367s into maillist.
https://patchwork.ozlabs.org/project/openwrt/list/?series=125300

2 Likes

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