Support for new Archer c5 v4

Apparently, the new driver RTL8367S does not use maximum link speed(1GBit).
I have 1000Mbit Internet, and here are my parameters:
Direct Connection Ethernet(ISP) to the my motherboard:

ISP Connected to the router(with OpenWRT(19.07.0)) WAN and from LAN to motherboard:

Also tried with this options:

Try-enabled-HW-NAT
Not affected in any way ...

HW ovffload not enabled because CPU of router is used up to 90% while Speedtest benchmark:

Hi @leonardcoutinho,

I followed the tutorial:

For v19.07.0 and v19.07.1, "git apply -v" step returns errors.
Because of that, I downloaded the https://github.com/benwht/openwrt/commit/b57307fa1e498e9b82fe53cdcf58e6005a73baef.patch file.
Opened it with text editor and applied all changes one by one with the necessary modifications to match the new structure style. I compared them with other routers files for reference.
The driver itself did not need modifications.

I hope it helps!

1 Like

Much thanks for tutorial(my bad for don't see it in Archer c5 v4 page). For your factory images and @benwht factory images too, is already passed through DD for tftp flashing or If I use that I need to pass those images in DD too? I think its best to flash yours images first to have my router with openwrt working and after that compile my images to play with router(to not mess up at first).

Hi @leonardcoutinho,

I recommend to follow the exact tutorial from the Archer c5 v4 page.
That's the way i flashed @benwht 's factory image at the beginning to have OpenWRT on my router:
Connected the router via SERIAL connection to the PC and via LAN port to my network. Then followed the tutorial to flash the factory image by TFTP server.

1 Like

I try this and sucessfully flash my Archer c5 w v4 without serial cable through tftp

1 Like

I used Open TFTP Server in Windows and changed this configuration(in default configuration my c5 won't receive firmware because low timeout of tftp server):
timeout=255
blksize=65464

2 Likes

Anyone tested usb share? I'm try here and have low speeds, 6MB/s max, while in stock I have 10MB/s. I tested 18.06.6 from benwht build and 18.06.7 build with benwht patch(compiled by me). I will wait to see if snapshots goes usable to test again.

MT7620's HW NAT is not supported yet

I have followed the below instruction by renaming openwrt-ramips-mt7620-tplink_c5-v4-squashfs-factory.bin to test.bin

but after reset it gone in to boot loop,

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

when I try to restore the factory img and it boots fine with the tplink factory firmware
and it was downloaded from https://static.tp-link.com/2020/202001/20200107/Archer_C5v4190815.rar

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

the result I got in console after flashing openwrt-ramips-mt7620-tplink_c5-v4-squashfs-factory.bin is

TIMEOUT_COUNT=10,Load address: 0x80060000
Loading: Got ARP REPLY, set server/gtwy eth addr (xx:xx:xx:xx:xx:xx)
Got it
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##
done
Bytes transferred = 7995392 (7a0000 hex)
LoadAddr=80060000 NetBootFileXferSize= 007a0000
MT7620 # erase tplink 0x20000 0x7a0000

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

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


U-Boot 1.1.3 (Jun 24 2019 - 07:58: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: 1c 70 17 1c 70 (70171c70)
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:Jun 24 2019  Time:07:58: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.162 (ubuntu@ubuntu-VirtualBox) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7957-d81a8a3e29)) #0 Sun Jan 5 19:06:07 2020
[    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
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is TP-Link Archer C5 v4
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x90/0x478 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=0005c7d1
[    0.000000] Readback ErrCtl register=0005c7d1
[    0.000000] Memory: 59956K/65536K available (3478K kernel code, 177K rwdata, 840K rodata, 168K init, 212K bss, 5580K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007589] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073534] pid_max: default: 32768 minimum: 301
[    0.078234] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.084614] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.097153] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.106687] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.112676] pinctrl core: initialized pinctrl subsystem
[    0.118230] NET: Registered protocol family 16
[    0.384087] PCI host bridge /pcie@10140000 ranges:
[    0.388697]  MEM 0x0000000020000000..0x000000002fffffff
[    0.393750]   IO 0x0000000010160000..0x000000001016ffff
[    0.416105] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.421556] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.427867] rt2880_gpio 10000660.gpio: registering 32 gpios
[    0.433286] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[    0.440017] PCI host bridge to bus 0000:00
[    0.443989] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.450605] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.456362] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.462947] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.471733] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.478094] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.484904] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.491452] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.498475] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.505071] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.512185] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.519173] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.524004] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.530585] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.541700] clocksource: Switched to clocksource systick
[    0.548016] NET: Registered protocol family 2
[    0.553035] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.559758] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.565984] TCP: Hash tables configured (established 1024 bind 1024)
[    0.572261] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.577889] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.584270] NET: Registered protocol family 1
[    0.591199] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.597882] Crashlog allocated RAM at address 0x3f00000
[    0.604824] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.616467] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.622116] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.641622] io scheduler noop registered
[    0.645424] io scheduler deadline registered (default)
[    0.651212] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.658451] console [ttyS0] disabled
[    0.661961] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.671553] console [ttyS0] enabled
[    0.671553] console [ttyS0] enabled
[    0.678629] bootconsole [early0] disabled
[    0.678629] bootconsole [early0] disabled
[    0.692027] spi spi0.0: force spi mode3
[    0.696651] m25p80 spi0.0: unrecognized JEDEC id bytes: 1c, 70, 17
[    0.703052] m25p80: probe of spi0.0 failed with error -2
[    0.709122] libphy: Fixed MDIO Bus: probed
[    0.717726] gsw: setting port4 to ephy mode
[    0.722107] mtk_soc_eth 10100000.ethernet: generated random MAC address a2:a9:5d:d3:8d:6b
[    0.730623] libphy: mdio: probed
[    0.737642] mtk_soc_eth 10100000.ethernet: using fixed link parameters
[    0.745933] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    0.752634] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.761551] rt2880_wdt 10000120.watchdog: Initialized
[    0.768022] NET: Registered protocol family 10
[    0.777461] Segment Routing with IPv6
[    0.781304] NET: Registered protocol family 17
[    0.785979] 8021q: 802.1Q VLAN Support v1.8
[    1.982991] [rtl8367s_swconfig_init]
[    1.988297] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.996002] Please append a correct "root=" boot option; here are the available partitions:
[    2.004534] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.014055] Rebooting in 1 seconds..


U-Boot 1.1.3 (Jun 24 2019 - 07:58: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: 1c 70 17 1c 70 (70171c70)
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:Jun 24 2019  Time:07:58: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()                      0
Read MAC Address from Flash
raspi_read: from:7df100 len:6


4: System Enter Boot Command Line Interface.

anyone help me to install OPENWRT

You have an EON EN25QH64(JEDEC ID: 0x1C7017) flash chip.
For now, this chip has not supported by OpenWRT.

But this is strange.
You have a kernel 4.14.xx
And in the source OpenWRT supports this chip:

Thanks for the reply

I am using the same stock firmware by tplink and it boots and works fine

so any idea what was wrong in the openwrt boot log?

is there any other way to install openwrt?

Try latest firmware from user @benwht

Tried with both 18.06.4 and 18.06.7 both give me the same result

my doubt is does my code copy the program to correct address,

because I am flashing the tplink factory firmware with the load address cp.b 0x80080200 0x20000 0x7a0000 and not with cp.b 0x80080000 0x20000 0x7a0000 and its boots working fine

for flashing tplink factory firmware first I did flash with the code

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

it gone in to boot loop

and tried with the code

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

boots and works fine

Boot Log of openwrt

MT7620 # tftp 0x80060000 test.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 'test.bin'.

 TIMEOUT_COUNT=10,Load address: 0x80060000
Loading: Got ARP REPLY, set server/gtwy eth addr 
Got it
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##
done
Bytes transferred = 7995392 (7a0000 hex)
LoadAddr=80060000 NetBootFileXferSize= 007a0000
MT7620 # erase tplink 0x20000 0x7a0000

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

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


U-Boot 1.1.3 (Jun 24 2019 - 07:58: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: 1c 70 17 1c 70 (70171c70)
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:Jun 24 2019  Time:07:58: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
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is TP-Link Archer C5 v4
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x90/0x478 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=0007e5d1
[    0.000000] Readback ErrCtl register=0007e5d1
[    0.000000] Memory: 59956K/65536K available (3475K kernel code, 181K rwdata, 840K rodata, 168K init, 212K bss, 5580K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007592] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073552] pid_max: default: 32768 minimum: 301
[    0.078251] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.084629] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.097185] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.106719] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.112710] pinctrl core: initialized pinctrl subsystem
[    0.118257] NET: Registered protocol family 16
[    0.384016] PCI host bridge /pcie@10140000 ranges:
[    0.388625]  MEM 0x0000000020000000..0x000000002fffffff
[    0.393679]   IO 0x0000000010160000..0x000000001016ffff
[    0.415747] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.421199] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.427502] rt2880_gpio 10000660.gpio: registering 32 gpios
[    0.432918] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[    0.439634] PCI host bridge to bus 0000:00
[    0.443603] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.450223] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.455980] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.462565] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.470695] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.479055] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.485460] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.492180] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.498781] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.505787] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.512396] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.519493] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.526502] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.531315] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.537914] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.549021] clocksource: Switched to clocksource systick
[    0.555237] NET: Registered protocol family 2
[    0.560310] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.567032] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.573256] TCP: Hash tables configured (established 1024 bind 1024)
[    0.579538] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.585164] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.591542] NET: Registered protocol family 1
[    0.598416] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.605100] Crashlog allocated RAM at address 0x3f00000
[    0.611851] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.623345] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.628944] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.648258] io scheduler noop registered
[    0.652062] io scheduler deadline registered (default)
[    0.657857] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.665077] console [ttyS0] disabled
[    0.668526] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.678200] console [ttyS0] enabled
[    0.678200] console [ttyS0] enabled
[    0.685227] bootconsole [early0] disabled
[    0.685227] bootconsole [early0] disabled
[    0.693887] cacheinfo: Failed to find cpu0 device node
[    0.699165] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.709995] spi spi0.0: force spi mode3
[    0.714616] m25p80 spi0.0: unrecognized JEDEC id bytes: 1c, 70, 17
[    0.721018] m25p80: probe of spi0.0 failed with error -2
[    0.727085] libphy: Fixed MDIO Bus: probed
[    0.735658] gsw: setting port4 to ephy mode
[    0.740045] mtk_soc_eth 10100000.ethernet: generated random MAC address 12:3a:45:25:12:1b
[    0.748558] libphy: mdio: probed
[    0.755502] mtk_soc_eth 10100000.ethernet: using fixed link parameters
[    0.763789] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    0.770485] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.779455] rt2880_wdt 10000120.watchdog: Initialized
[    0.785860] NET: Registered protocol family 10
[    0.795243] Segment Routing with IPv6
[    0.799158] NET: Registered protocol family 17
[    0.803747] 8021q: 802.1Q VLAN Support v1.8
[    2.000907] [rtl8367s_swconfig_init]
[    2.006235] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    2.013939] Please append a correct "root=" boot option; here are the available partitions:
[    2.022471] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.032030] Rebooting in 1 seconds..


U-Boot 1.1.3 (Jun 24 2019 - 07:58: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: 1c 70 17 1c 70 (70171c70)
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:Jun 24 2019  Time:07:58: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
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is TP-Link Archer C5 v4
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x90/0x478 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=0007e5d1
[    0.000000] Readback ErrCtl register=0007e5d1
[    0.000000] Memory: 59956K/65536K available (3475K kernel code, 181K rwdata, 840K rodata, 168K init, 212K bss, 5580K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007591] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073532] pid_max: default: 32768 minimum: 301
[    0.078230] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.084608] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.097162] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.106697] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.112688] pinctrl core: initialized pinctrl subsystem
[    0.118234] NET: Registered protocol family 16
[    0.383993] PCI host bridge /pcie@10140000 ranges:
[    0.388601]  MEM 0x0000000020000000..0x000000002fffffff
[    0.393655]   IO 0x0000000010160000..0x000000001016ffff
[    0.415725] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.421177] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.427478] rt2880_gpio 10000660.gpio: registering 32 gpios
[    0.432895] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[    0.439611] PCI host bridge to bus 0000:00
[    0.443580] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.450200] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.455956] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.462542] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.471309] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.477670] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.484480] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.491028] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.498051] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.504643] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.511759] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.518749] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.523579] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.530161] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.541217] clocksource: Switched to clocksource systick
[    0.547501] NET: Registered protocol family 2
[    0.552524] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.559246] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.565470] TCP: Hash tables configured (established 1024 bind 1024)
[    0.571752] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.577378] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.583755] NET: Registered protocol family 1
[    0.590629] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.597312] Crashlog allocated RAM at address 0x3f00000
[    0.604223] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.615721] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.621368] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.640594] io scheduler noop registered
[    0.644398] io scheduler deadline registered (default)
[    0.650195] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.657415] console [ttyS0] disabled
[    0.660865] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.670539] console [ttyS0] enabled
[    0.670539] console [ttyS0] enabled
[    0.677565] bootconsole [early0] disabled
[    0.677565] bootconsole [early0] disabled
[    0.686225] cacheinfo: Failed to find cpu0 device node
[    0.691503] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.702337] spi spi0.0: force spi mode3
[    0.706960] m25p80 spi0.0: unrecognized JEDEC id bytes: 1c, 70, 17
[    0.713362] m25p80: probe of spi0.0 failed with error -2
[    0.719431] libphy: Fixed MDIO Bus: probed
[    0.728014] gsw: setting port4 to ephy mode
[    0.732400] mtk_soc_eth 10100000.ethernet: generated random MAC address aa:06:9b:71:09:34
[    0.740915] libphy: mdio: probed
[    0.747866] mtk_soc_eth 10100000.ethernet: using fixed link parameters
[    0.756154] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    0.762851] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.771821] rt2880_wdt 10000120.watchdog: Initialized
[    0.778225] NET: Registered protocol family 10
[    0.787616] Segment Routing with IPv6
[    0.791530] NET: Registered protocol family 17
[    0.796119] 8021q: 802.1Q VLAN Support v1.8
[    1.993217] [rtl8367s_swconfig_init]
[    1.998547] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    2.006252] Please append a correct "root=" boot option; here are the available partitions:
[    2.014784] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.024333] Rebooting in 1 seconds..


U-Boot 1.1.3 (Jun 24 2019 - 07:58: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: 1c 70 17 1c 70 (70171c70)
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:Jun 24 2019  Time:07:58: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()                      0
Read MAC Address from Flash
raspi_read: from:7df100 len:6


ok, I am having the hardware version 4, but all other having gd25q64 as spi flash and my device having en25qh64

this is strange for me

any idea to work on this?

You need to use latest compiled OpenWRT with fresh build sources.
I already wrote above, you need a compiled version after 2 Jan 2019

Try this (link from 4PDA Forum):
http://owrt.mooo.com/fw/openwrt/archerc5v4/

Hi! A new 19.07.1 version was prepared and ready for download, which is working now with a modified gigabit switch driver (RTL8367b) instead of MediaTek's gigabit driver (RTL8367s). If you have a TP recovery capable bootloader and have some time, please test it and let us know if you find any issue. This could ensure that the official OpenWrt release will work properly later.

3 Likes

@Deoptim Thanks for the Great Information, I have gone through all pages in the forum but cant find any installation instructions

@benwht can you provide me any installation instructions to flash via the serial console for the version 19.07.1

because I don't know how to flash kernel.bin and manifest file

( I don't know what is a kernel here)

It's there on the openwrt hardware page. You need to flash it via serial console.
https://openwrt.org/toh/tp-link/archer_c5_v4