Support for new Archer c5 v4

Try this compilation: https://uploadnow.io/f/n2n38t8

1 Like

Nice, now there's link, no network identified though, can't access LuCI, here's the log:

U-Boot 1.1.3 (Jul 14 2022 - 09:08:23)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb0000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: 1c 70 17 1c 70 (70171c70)
find flash: EN25QH64A
============================================
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:Jul 14 2022  Time:09:08:23
============================================
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(1688):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
switch debug=========switchChip:4
rt_rtl8367_init(1742):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 5.10.176 (root@devuan) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r20134-5f15225c1e) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Thu Apr 27 20:28:15 2023
[    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] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is TP-Link Archer C5 v4
[    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] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=0000a227
[    0.000000] Readback ErrCtl register=0000a227
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 56408K/65536K available (5284K kernel code, 611K rwdata, 1116K rodata, 1172K init, 209K bss, 9128K 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.007681] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073626] pid_max: default: 32768 minimum: 301
[    0.078290] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.085343] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.095258] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.107246] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.116814] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.123491] pinctrl core: initialized pinctrl subsystem
[    0.129762] NET: Registered protocol family 16
[    0.405166] PCI host bridge /pcie@10140000 ranges:
[    0.409790]  MEM 0x0000000020000000..0x000000002fffffff
[    0.414835]   IO 0x0000000010160000..0x000000001016ffff
[    0.473053] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.478473] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.484828] rt2880_gpio 10000660.gpio: registering 32 gpios
[    0.490215] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[    0.497996] PCI host bridge to bus 0000:00
[    0.501932] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.508660] pci_bus 0000:00: root bus resource [io  0x10160000-0x1016ffff]
[    0.515273] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.521871] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.529613] pci 0000:00:00.0: [1814:0801] type 01 class 0x060400
[    0.535415] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    0.541478] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    0.547642] pci 0000:00:00.0: supports D1
[    0.551463] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.559047] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.567015] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    0.572859] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    0.579428] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.586004] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.593722] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.600134] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.606546] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.612943] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.619699] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.626300] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.633306] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.639919] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.647013] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.654025] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.658834] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.665434] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.681541] clocksource: Switched to clocksource systick
[    0.688049] NET: Registered protocol family 2
[    0.692586] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.700345] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.708582] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.715999] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.722832] TCP: Hash tables configured (established 1024 bind 1024)
[    0.729151] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.735518] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.742607] NET: Registered protocol family 1
[    0.746857] PCI: CLS 0 bytes, default 32
[    0.756163] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.765174] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    0.776530] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.782199] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.795239] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.802524] printk: console [ttyS0] disabled
[    0.806711] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.816396] printk: console [ttyS0] enabled
[    0.816396] printk: console [ttyS0] enabled
[    0.824839] printk: bootconsole [early0] disabled
[    0.824839] printk: bootconsole [early0] disabled
[    0.845533] spi spi0.0: force spi mode3
[    0.850765] spi-nor spi0.0: en25qh64 (8192 Kbytes)
[    0.855828] 6 fixed-partitions partitions found on MTD device spi0.0
[    0.862382] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.869861] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.877628] Creating 6 MTD partitions on "spi0.0":
[    0.882574] 0x000000000000-0x000000020000 : "u-boot"
[    0.890247] 0x000000020000-0x0000007c0000 : "firmware"
[    0.897176] 2 tplink-fw partitions found on MTD device firmware
[    0.903324] Creating 2 MTD partitions on "firmware":
[    0.908412] 0x000000000000-0x0000002169e7 : "kernel"
[    0.913500] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.924992] 0x0000002169e8-0x0000007a0000 : "rootfs"
[    0.930077] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.940668] mtd: setting mtd3 (rootfs) as root device
[    0.946998] 1 squashfs-split partitions found on MTD device rootfs
[    0.953402] 0x0000005ba000-0x0000007a0000 : "rootfs_data"
[    0.960201] 0x0000007c0000-0x0000007d0000 : "config"
[    0.968347] 0x0000007d0000-0x0000007e0000 : "rom"
[    0.974492] 0x0000007e0000-0x0000007f0000 : "romfile"
[    0.982795] 0x0000007f0000-0x000000800000 : "radio"
[    1.017208] gsw: setting port4 to ephy mode
[    1.021731] mtk_soc_eth 10100000.ethernet: generated random MAC address e2:02:19:2e:6d:bf
[    1.035367] mtk_soc_eth 10100000.ethernet: port 5 - using fixed link parameters
[    1.043086] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    1.049901] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    1.059122] rt2880_wdt 10000120.watchdog: Initialized
[    1.065573] NET: Registered protocol family 10
[    1.076628] Segment Routing with IPv6
[    1.080528] NET: Registered protocol family 17
[    1.085155] 8021q: 802.1Q VLAN Support v1.8
[    1.101146] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    1.115006] Freeing unused kernel memory: 1172K
[    1.119674] This architecture does not have kernel memory protection.
[    1.126275] Run /sbin/init as init process
[    2.007783] init: Console is alive
[    2.011871] init: - watchdog -
[    3.452546] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.648175] usbcore: registered new interface driver usbfs
[    3.653900] usbcore: registered new interface driver hub
[    3.659496] usbcore: registered new device driver usb
[    3.673163] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.683550] fsl-ehci: Freescale EHCI Host controller driver
[    3.691991] ehci-platform: EHCI generic platform driver
[    3.707890] phy phy-usbphy.0: remote usb device wakeup disabled
[    3.713945] phy phy-usbphy.0: UTMI 16bit 30MHz
[    3.718491] ehci-platform 101c0000.ehci: EHCI Host Controller
[    3.724399] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    3.732653] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    3.748358] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    3.755863] hub 1-0:1.0: USB hub found
[    3.760661] hub 1-0:1.0: 1 port detected
[    3.775000] rtl8367b rtl8367s: using MDIO bus 'mdio'
[    3.781088] rtl8367b rtl8367s: RTL8367C chip found
[    4.827730] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.837456] ohci-platform: OHCI generic platform driver
[    4.843281] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    4.850266] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    4.858530] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    4.893158] hub 2-0:1.0: USB hub found
[    4.897883] hub 2-0:1.0: 1 port detected
[    4.912712] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.924659] init: - preinit -
[    6.345759] random: jshn: uninitialized urandom read (4 bytes read)
[    6.467428] random: jshn: uninitialized urandom read (4 bytes read)
[    6.732342] random: jshn: uninitialized urandom read (4 bytes read)
[    8.611452] mtk_soc_eth 10100000.ethernet eth0: port 5 link up (1000Mbps/Full duplex)
[    8.620232] 8021q: adding VLAN 0 to HW filter on device eth0
[    8.667453] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   10.470470] jffs2: notice: (469) jffs2_build_xattr_subsystem: complete building xattr subsystem, 7 of xdatum (5 unchecked, 2 orphan) and 8 of xref (2 dead, 0 orphan) found.
[   10.488560] mount_root: switching to jffs2 overlay
[   10.497865] overlayfs: upper fs does not support tmpfile.
[   10.510464] urandom-seed: Seeding with /etc/urandom.seed
[   10.660048] mtk_soc_eth 10100000.ethernet eth0: port 5 link down
[   10.690754] procd: - early -
[   10.694156] procd: - watchdog -
[   11.250830] procd: - watchdog -
[   11.423651] procd: - ubus -
[   11.638300] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.648331] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.655553] random: ubusd: uninitialized urandom read (4 bytes read)
[   11.671372] procd: - init -
Please press Enter to activate this console.
[   13.145673] random: jshn: uninitialized urandom read (4 bytes read)
[   13.206915] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.219852] random: ubus: uninitialized urandom read (4 bytes read)
[   13.456159] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.150293] urngd: jent-rng init failed, err: 2
[   14.183410] Loading modules backported from Linux version v5.15.92-0-ge515b9902f5f
[   14.191224] Backport generated by backports.git v5.15.92-1-0-gdfe0f60c
[   14.421948] mt76x2e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[   14.428665] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   14.596221] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   14.607841] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   14.613452] mt76x2e 0000:01:00.0: Build: 1
[   14.617693] mt76x2e 0000:01:00.0: Build Time: 201607111443____
[   14.632559] mt76x2e 0000:01:00.0: Firmware running!
[   14.876284] PPP generic driver version 2.4.2
[   14.884196] NET: Registered protocol family 24
[   14.934161] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "radio"
[   14.941381] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[   14.949378] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 7620 detected
[   15.071019] kmodloader: done loading kernel modules from /etc/modules.d/*
[   26.042574] random: crng init done
[   26.046071] random: 87 urandom warning(s) missed due to ratelimiting
[   41.498213] mtk_soc_eth 10100000.ethernet eth0: port 5 link up (1000Mbps/Full duplex)
[   41.506672] 8021q: adding VLAN 0 to HW filter on device eth0
[   41.544793] br-lan: port 1(eth0.1) entered blocking state
[   41.550394] br-lan: port 1(eth0.1) entered disabled state
[   41.556288] device eth0.1 entered promiscuous mode
[   41.561263] device eth0 entered promiscuous mode
[   41.636133] br-lan: port 1(eth0.1) entered blocking state
[   41.641735] br-lan: port 1(eth0.1) entered forwarding state
[   42.529996] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



BusyBox v1.35.0 (2023-04-27 20:28:15 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 22.03.5, r20134-5f15225c1e
 -----------------------------------------------------

=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/# swconfig list
Found: switch0 - mt7620
Found: switch1 - rtl8367s
root@OpenWrt:/#

swconfig dev switch1 show
ifconfig

root@OpenWrt:/# swconfig dev switch1 show
Global attributes:
        enable_vlan: 1
        enable_vlan4k: 0
        max_length: 0
Port 0:
        mib: Port 0 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 0
        link: port:0 link:down
Port 1:
        mib: Port 1 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 0
        link: port:1 link:down
Port 2:
        mib: Port 2 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 0
        link: port:2 link:down
Port 3:
        mib: Port 3 MIB counters
ifInOctets                          : 20284
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 133
ifInBroadcastPkts                   : 76
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 20284
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 62
etherStatsPkts65to127Octets         : 125
etherStatsPkts128to255Octets        : 16
etherStatsPkts256to511Octets        : 6
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 209
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 0
        link: port:3 link:down
Port 4:
        mib: Port 4 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 0
        link: port:4 link:down
Port 5:
        mib: Port 5 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 0
        link: port:5 link:down
Port 6:
        mib: Port 6 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 0
        link: port:6 link:down
Port 7:
        mib: Port 7 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 0
        link: port:7 link:down
VLAN 1:
        info: VLAN 1: Ports: '01237t', members=008f, untag=000f, fid=0
        ports: 0 1 2 3 7t
VLAN 2:
        info: VLAN 2: Ports: '47t', members=0090, untag=0010, fid=0
        ports: 4 7t
root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr EA:27:A2:52:80:4E
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fd73:2b2:39bd::1/60 Scope:Global
          inet6 addr: fe80::e827:a2ff:fe52:804e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:2376 (2.3 KiB)

eth0      Link encap:Ethernet  HWaddr EA:27:A2:52:80:4E
          inet6 addr: fe80::e827:a2ff:fe52:804e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:15384 (15.0 KiB)
          Interrupt:5

eth0.1    Link encap:Ethernet  HWaddr EA:27:A2:52:80:4E
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:2376 (2.3 KiB)

eth0.2    Link encap:Ethernet  HWaddr AC:15:A2:A8:A5:8A
          inet6 addr: fe80::ae15:a2ff:fea8:a58a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:8820 (8.6 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:152 errors:0 dropped:0 overruns:0 frame:0
          TX packets:152 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11856 (11.5 KiB)  TX bytes:11856 (11.5 KiB)

root@OpenWrt:/#

All ports are down, which means that the version with chip number 6642 is not compatible.

Ok, is there a way to know the specific chip version that I have?

[   3.502938] rtl8367b rtl8367s: unknown chip num:6642 ver:0010, mode:0014
1 Like

Please test also the version from based on https://github.com/luizluca/openwrt/tree/tplink_c5v4_dsa

U-Boot 1.1.3 (Jul 14 2022 - 09:08:23)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb0000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: 1c 70 17 1c 70 (70171c70)
find flash: EN25QH64A
============================================
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:Jul 14 2022  Time:09:08:23
============================================
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(1688):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
switch debug=========switchChip:4
rt_rtl8367_init(1742):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 5.15.110 (root@devuan) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 12.2.0 r22749-8bb5efd65d) 12.2.0, GNU ld (GNU Binutils) 2.40.0) #0 Fri May 5 07:27:01 2023
[    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] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is TP-Link Archer C5 v4
[    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] Built 1 zonelists, mobility grouping on.  Total pages: 16240
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] Writing ErrCtl register=0000a026
[    0.000000] Readback ErrCtl register=0000a026
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 55944K/65536K available (5621K kernel code, 600K rwdata, 1208K rodata, 1200K init, 215K bss, 9592K 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.000002] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007675] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073618] pid_max: default: 32768 minimum: 301
[    0.079206] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.086263] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.103845] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.113381] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.120226] pinctrl core: initialized pinctrl subsystem
[    0.126670] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.409709] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.415202] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.421681] rt2880_gpio 10000638.gpio: registering 16 gpios
[    0.427131] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[    0.433459] rt2880_gpio 10000660.gpio: registering 32 gpios
[    0.438951] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[    0.445282] rt2880_gpio 10000688.gpio: registering 1 gpios
[    0.450644] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[    0.458448] PCI host bridge to bus 0000:00
[    0.462445] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[    0.469069] pci_bus 0000:00: root bus resource [io  0x10160000-0x1016ffff]
[    0.475756] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.483489] pci 0000:00:00.0: [1814:0801] type 01 class 0x060400
[    0.489297] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    0.495359] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    0.501526] pci 0000:00:00.0: supports D1
[    0.505350] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.513346] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.521438] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[    0.527297] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    0.533876] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.540454] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.548651] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.555073] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.561481] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    0.567884] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    0.574637] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[    0.581239] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[    0.588244] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[    0.594855] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[    0.601950] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[    0.608965] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.613772] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    0.620372] pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]
[    0.627983] clocksource: Switched to clocksource systick
[    0.634736] NET: Registered PF_INET protocol family
[    0.639767] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.647628] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.655785] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.663283] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.670719] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.677551] TCP: Hash tables configured (established 1024 bind 1024)
[    0.683926] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.690354] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.697522] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.703123] PCI: CLS 0 bytes, default 32
[    0.707111] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.718225] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[    0.731127] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.736753] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.750100] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.757612] printk: console [ttyS0] disabled
[    0.761893] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.771536] printk: console [ttyS0] enabled
[    0.771536] printk: console [ttyS0] enabled
[    0.779989] printk: bootconsole [early0] disabled
[    0.779989] printk: bootconsole [early0] disabled
[    0.804172] spi spi0.0: force spi mode3
[    0.809681] spi-nor spi0.0: en25qh64 (8192 Kbytes)
[    0.814676] 6 fixed-partitions partitions found on MTD device spi0.0
[    0.821265] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.828802] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.836586] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.844122] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.852362] Creating 6 MTD partitions on "spi0.0":
[    0.857278] 0x000000000000-0x000000020000 : "u-boot"
[    0.866804] 0x000000020000-0x0000007c0000 : "firmware"
[    0.873918] 2 tplink-fw partitions found on MTD device firmware
[    0.880079] Creating 2 MTD partitions on "firmware":
[    0.885154] 0x000000000000-0x000000235b61 : "kernel"
[    0.890237] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.901988] 0x000000235b64-0x0000007a0000 : "rootfs"
[    0.907093] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.917835] mtd: setting mtd3 (rootfs) as root device
[    0.924274] 1 squashfs-split partitions found on MTD device rootfs
[    0.930698] 0x0000005c0000-0x0000007a0000 : "rootfs_data"
[    0.937544] 0x0000007c0000-0x0000007d0000 : "config"
[    0.945994] 0x0000007d0000-0x0000007e0000 : "rom"
[    0.952302] 0x0000007e0000-0x0000007f0000 : "romfile"
[    0.960874] 0x0000007f0000-0x000000800000 : "radio"
[    1.001103] gsw: setting port4 to ephy mode
[    1.007467] mtk_soc_eth 10100000.ethernet: port 5 - using fixed link parameters
[    1.015219] mt7530: disabling source MAC address learning on port 0
[    1.021682] mt7530: disabling source MAC address learning on port 1
[    1.028087] mt7530: disabling source MAC address learning on port 2
[    1.034478] mt7530: disabling source MAC address learning on port 3
[    1.040877] mt7530: disabling source MAC address learning on port 4
[    1.047268] mt7530: disabling source MAC address learning on port 5
[    1.053667] mt7530: disabling source MAC address learning on port 6
[    1.060068] mt7530: disabling source MAC address learning on port 7
[    1.066490] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    1.073328] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    1.082940] rt2880_wdt 10000120.watchdog: Initialized
[    1.090005] NET: Registered PF_INET6 protocol family
[    1.108003] Segment Routing with IPv6
[    1.111870] In-situ OAM (IOAM) with IPv6
[    1.116007] NET: Registered PF_PACKET protocol family
[    1.121364] 8021q: 802.1Q VLAN Support v1.8
[    1.139973] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    1.153861] Freeing unused kernel image (initmem) memory: 1200K
[    1.159956] This architecture does not have kernel memory protection.
[    1.166541] Run /sbin/init as init process
[    2.045256] init: Console is alive
[    2.049560] init: - watchdog -
[    3.544198] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.651292] usbcore: registered new interface driver usbfs
[    3.657065] usbcore: registered new interface driver hub
[    3.662671] usbcore: registered new device driver usb
[    3.676807] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.687781] fsl-ehci: Freescale EHCI Host controller driver
[    3.695822] ehci-platform: EHCI generic platform driver
[    3.711808] phy phy-usbphy.0: remote usb device wakeup disabled
[    3.717874] phy phy-usbphy.0: UTMI 16bit 30MHz
[    3.722420] ehci-platform 101c0000.ehci: EHCI Host Controller
[    3.728341] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    3.736619] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    3.752194] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    3.759875] hub 1-0:1.0: USB hub found
[    3.764761] hub 1-0:1.0: 1 port detected
[    3.846264] realtek-mdio mdio-bus:1d: unrecognized switch (id=0x6642, ver=0x0010)
[    3.853945] realtek-mdio mdio-bus:1d: unable to detect switch
[    3.863385] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.872416] ohci-platform: OHCI generic platform driver
[    3.878358] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    3.885361] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    3.893629] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    3.927808] hub 2-0:1.0: USB hub found
[    3.932697] hub 2-0:1.0: 1 port detected
[    3.949428] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.961538] init: - preinit -
[    5.487626] random: jshn: uninitialized urandom read (4 bytes read)
[    5.677874] random: jshn: uninitialized urandom read (4 bytes read)
[    5.823598] random: jshn: uninitialized urandom read (4 bytes read)
[    6.550704] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    7.527668] jffs2: notice: (366) jffs2_build_xattr_subsystem: complete building xattr subsystem, 7 of xdatum (0 unchecked, 2 orphan) and 8 of xref (2 dead, 0 orphan) found.
[    7.546052] mount_root: switching to jffs2 overlay
[    7.555574] overlayfs: upper fs does not support tmpfile.
[    7.569917] urandom-seed: Seeding with /etc/urandom.seed
[    7.670797] procd: - early -
[    7.674201] procd: - watchdog -
[    8.237950] procd: - watchdog -
[    8.241917] procd: - ubus -
[    8.417532] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.427751] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.435063] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.446715] procd: - init -
Please press Enter to activate this console.
[    9.669612] random: jshn: uninitialized urandom read (4 bytes read)
[    9.720765] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.758609] random: ubus: uninitialized urandom read (4 bytes read)
[    9.932456] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.470582] urngd: jent-rng init failed, err: 2
[   10.503667] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b
[   10.511339] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
[   10.907900] mt76x2e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[   10.914674] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   11.085837] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   11.098242] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   11.103940] mt76x2e 0000:01:00.0: Build: 1
[   11.108127] mt76x2e 0000:01:00.0: Build Time: 201607111443____
[   11.122637] mt76x2e 0000:01:00.0: Firmware running!
[   11.321063] PPP generic driver version 2.4.2
[   11.329755] NET: Registered PF_PPPOX protocol family
[   11.422723] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "radio"
[   11.429959] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[   11.452804] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 7620 detected
[   11.542817] kmodloader: done loading kernel modules from /etc/modules.d/*
[   23.322644] random: crng init done
[   23.326151] random: 88 urandom warning(s) missed due to ratelimiting



BusyBox v1.36.0 (2023-05-05 07:27:01 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r22749-8bb5efd65d
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether ac:15:a2:a8:a5:89 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether ac:15:a2:a8:a5:8b brd ff:ff:ff:ff:ff:ff
4: wlan1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether ac:15:a2:a8:a5:89 brd ff:ff:ff:ff:ff:ff
root@OpenWrt:/# swconfig dev switch1 show
Failed to connect to the switch. Use the "list" command to see which switches are available.
root@OpenWrt:/# swconfig list
Found: switch0 - mt7620
root@OpenWrt:/# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:320 errors:0 dropped:0 overruns:0 frame:0
          TX packets:320 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:24960 (24.3 KiB)  TX bytes:24960 (24.3 KiB)

root@OpenWrt:/#

Will it be safe to use custom firmware the guy provided?

  1. Sources for this software are available.
  2. These are just tests.

PPPoE package is not available in this firmware.

Try this: https://easyupload.io/zb8y2j

1 Like

Take a high resolution photo. The switch chip Is the one named rtl8xxxx and it is connected to the soc and all Ethernet ports.

The chip id 0x6642 from your logs will not work with any existing driver. It is a new model. Even the vendor rtl8367c driver does not mention it. Maybe there is a new driver version out there. The GPL package from TP-Link should have it.

Do you have any extra info about your device, like s different hw version?

Here's the first batch.





Last ones, if you need those heat sinks out let me know and I'll figure it out.




It looks like the exactly same board. You can check fcc files:

https://apps.fcc.gov/eas/GetApplicationAttachment.html?id=3729805

The switch chip is the one closer to the ethernet ports with a black heatsink.

I also compared the u-boot logs. Yours:


AbraKdabra

mietekn

12d

It used to be:

U-Boot 1.1.3 (Nov 19 2018 - 11:11:36)

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:Nov 19 2018  Time:11:11:36
============================================
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...

And yours:

U-Boot 1.1.3 (Jul 14 2022 - 09:08:23)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb0000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: 1c 70 17 1c 70 (70171c70)
find flash: EN25QH64A
============================================
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:Jul 14 2022  Time:09:08:23
============================================
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(1688):Begin
Wait for RTL8367C Ready
.
RTL8367C is ready now!
switch debug=========switchChip:4
rt_rtl8367_init(1742):Call Func rt_rtl8367_enableRgmii()

Besides fixing the "un-recognized chip ID", there is an extra line at:

8367C is ready now!
switch debug=========switchChip:4
rt_rtl8367_init(1742):Call Func rt_rtl8367_enableRgmii()

That switch debug might be our clue.

@psndna88 , do you still have the GPL package? Could you grep for 0x6642?

Maybe that GPL package is just old as it is from before 2021.

how to properly flash this openwrt-23.05 firmware on Archer C5 v4

You will find the answer at: https://openwrt.org/toh/tp-link/archer_c5_v4#installation_via_tftp_recovery_mode