Support for Archer C58

Ops... I should know that before... it's the same as in C59, sorry, haven't got chanve to play with these devices (yet)!

This probably won't work, you would need to build initramfs image. Are you able build image yourself?

I used factory image which is only good for recovery. The Tp-Link Forum Thread indicates one needs sysupgrade. Et Voila:

Using eth1 device
TFTP from server 192.168.0.10; our IP address is 192.168.0.2
Filename '0200A8C0.img'.
Load address: 0x81000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########################################
done
Bytes transferred = 3866628 (3b0004 hex)
ath> bootm
## Booting image at 81000000 ...
   Image Name:   MIPS LEDE Linux-4.4.56
   Created:      2017-03-30  16:31:02 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1358126 Bytes =  1.3 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x81000040 ...OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...

[    0.000000] Linux version 4.4.56 (buildbot@buildslave) (gcc version 5.4.0 (LE                                                                                                                                                                                                                                             DE GCC 5.4.0 r3888-8fb39f1) ) #0 Thu Mar 30 16:31:02 2017
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] No valid device tree found, continuing without
[    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] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32                                                                                                                                                                                                                                              bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag                                                                                                                                                                                                                                             es: 16256
[    0.000000] Kernel command line:  board=ARCHER-C59-V1 mtdparts=spi0.0:64k(u-b                                                                                                                                                                                                                                             oot)ro,64k(mac)ro,1536k(kernel),12992k(rootfs),1664k(tplink)ro,64k(art)ro,14528k                                                                                                                                                                                                                                             @0x20000(firmware) console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[    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=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 59968K/65536K available (3087K kernel code, 161K rwdata,                                                                                                                                                                                                                                              776K rodata, 320K init, 205K bss, 5568K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:775.000MHz, DDR:650.000MHz, AHB:258.333MHz, Ref:25.00                                                                                                                                                                                                                                             0MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_i                                                                                                                                                                                                                                             dle_ns: 4932285024 ns
[    0.000006] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 55418                                                                                                                                                                                                                                             93118ns
[    0.008206] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.071017] pid_max: default: 32768 minimum: 301
[    0.075974] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.082950] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.092476] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma                                                                                                                                                                                                                                             x_idle_ns: 19112604462750000 ns
[    0.102884] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.110344] NET: Registered protocol family 16
[    0.116273] MIPS: machine is TP-LINK Archer C59 v1
[    0.559723] registering PCI controller with io_map_base unset
[    0.574660] PCI host bridge to bus 0000:00
[    0.579024] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.586265] pci_bus 0000:00: root bus resource [io  0x0001]
[    0.592141] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.599287] pci_bus 0000:00: No busn resource found for root bus, will use [b                                                                                                                                                                                                                                             us 00-ff]
[    0.607694] pci 0000:00:00.0: invalid calibration data
[    0.613448] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bi                                                                                                                                                                                                                                             t]
[    0.621196] pci 0000:00:00.0: using irq 40 for pin 1
[    0.627139] clocksource: Switched to clocksource MIPS
[    0.633525] NET: Registered protocol family 2
[    0.638873] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.646227] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.652974] TCP: Hash tables configured (established 1024 bind 1024)
[    0.659756] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.665918] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.672807] NET: Registered protocol family 1
[    0.681376] Crashlog allocated RAM at address 0x3f00000
[    0.698834] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.704989] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT                                                                                                                                                                                                                                             Y) (c) 2001-2006 Red Hat, Inc.
[    0.717453] io scheduler noop registered
[    0.721593] io scheduler deadline registered (default)
[    0.727332] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.736193] console [ttyS0] disabled
[    0.760040] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 156                                                                                                                                                                                                                                             2500) is a 16550A
[    0.769137] console [ttyS0] enabled
[    0.769137] console [ttyS0] enabled
[    0.776677] bootconsole [early0] disabled
[    0.776677] bootconsole [early0] disabled
[    0.790753] m25p80 spi0.0: found s25fl064k, expected m25p80
[    0.796520] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    0.801525] mtd: spi0.0: partitioning exceeds flash size, truncating
[    0.808092] mtd: spi0.0: partitioning exceeds flash size, truncating
[    0.814648] mtd: spi0.0: skipping zero sized partition
[    0.819953] mtd: spi0.0: partitioning exceeds flash size, truncating
[    0.826511] mtd: spi0.0: skipping zero sized partition
[    0.831815] mtd: spi0.0: partitioning exceeds flash size, truncating
[    0.838376] 5 cmdlinepart partitions found on MTD device spi0.0
[    0.844487] Creating 5 MTD partitions on "spi0.0":
[    0.849447] 0x000000000000-0x000000010000 : "u-boot"
[    0.856610] 0x000000010000-0x000000020000 : "mac"
[    0.862827] 0x000000020000-0x0000001a0000 : "kernel"
[    0.869304] 0x0000001a0000-0x000000800000 : "rootfs"
[    0.875687] mtd: device 3 (rootfs) set to be root filesystem
[    0.881624] mtdsplit: no squashfs found in "rootfs"
[    0.886681] 0x000000020000-0x000000800000 : "firmware"
[    0.926388] libphy: ag71xx_mdio: probed
[    0.941471] libphy: ag71xx_mdio: probed
[    1.529636] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:00 [uid=004dd0                                                                                                                                                                                                                                             42, driver=Generic PHY]
[    1.539625] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    2.129315] ag71xx-mdio.1: Found an AR934X built-in switch
[    2.171972] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    2.180471] NET: Registered protocol family 10
[    2.188964] NET: Registered protocol family 17
[    2.193624] bridge: automatic filtering via arp/ip/ip6tables has been depreca                                                                                                                                                                                                                                             ted. Update your scripts to load br_netfilter if you need this.
[    2.206792] 8021q: 802.1Q VLAN Support v1.8

But of course you get a lot of jffs2 errors (out of flash adress) and finally a kernel panic - Unable to mount root.

I think i will be, give me some time i'm a professional linux user :slight_smile: and a fast learner. I'll ask in case of problems occur.
Thank you for all your support.

You're welcome! Looking forward for your patch or pull request with support for this one

Hi,

I finally managed to have a look at the router. I did a preliminary support based on C59 and C60 patchset (https://git.lede-project.org/?p=source.git;a=commit;h=e39dc8d823c86559eedbbdcee5f5c14b827fed0f)

Have a look at my github, everything compiles fine:

But i ran into some problems. Board detection:

[ 0.000000] MIPS: no machine found for id 'ARCHER-C58-V1', supported machines:

ARCHER-C58-V1 is missing from the list displayed.

[ 0.329317] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 0.337088] Please append a correct "root=" boot option; here are the available partitions:
[ 0.345715] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 0.355966] Rebooting in 1 seconds..

Is the Flash Layout wrong? I copied from C60 as it also has 8 MB. Or is it because the board was not detected?

Your machine file (mach-archer-c58-v1.c) should be included in target/linux/ar71xx/files/arch/mips/ath79/Makefile.

BTW. As far as I can see, your machine file is almost identical as the C59 one... you can combine them into one machine file and that would be preferred way.

Thank you, fixed this in next commit.

I will finish first with support and when its similar I'll merge C59/C58.

I have some trouble with LEDs however. C58 hast a 74HC595 like the C59, but copying the from the machine file is not working (all LEDs are dark).
One other thing is 5GHz not working. C59/C60 patchset says its because of missing firmware. But QCA9886 is supported according to ath10k wiki...

I expect that there is some GPIO-controlled "disable all LEDs" signal. Take a look at the datasheet, it has ~OE input.

Unfortunately, I can't help you here, I don't have access to any similar hardware at the moment.

Thank you, it was even easier, just some typos :slight_smile:. I think it's now time for a pull request, what do you think?[quote="pepe2k, post:15, topic:2699"]
Unfortunately, I can't help you here, I don't have access to any similar hardware at the moment.
[/quote]

Can you give me a hint where to start/ask, maybe we just need a newer firmware version in the repo?

One thing that did not happen was the inclusion of kmod-ath10 and ath10k-firmware-qca988x in the image. It was not selected in menuconfig and putting in target/linux/ar71xx/image/tp-link.mk does not help. Im not so into Kernel development so how do you add a dpendency in KConfig? Or what is the lede prefered way doing this?

This is what ath10k displays once loaded:

[ 8.396810] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 8.402972] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[ 8.557688] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[ 8.568766] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 8.709881] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[ 8.719401] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/cal-pci-0000:00:00.0.bin failed with error -2
[ 8.730117] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 8.947025] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/firmware-5.bin failed with error -2
[ 8.958114] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 9.067711] firmware ath10k!QCA9888!hw2.0!firmware-5.bin: firmware_loading_store: map pages failed
[ 9.077185] ath10k_pci 0000:00:00.0: could not fetch firmware file 'ath10k/QCA9888/hw2.0/firmware-5.bin': -11
[ 9.087498] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/firmware-4.bin failed with error -2
[ 9.098551] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 9.266853] firmware ath10k!QCA9888!hw2.0!firmware-4.bin: firmware_loading_store: map pages failed
[ 9.276321] ath10k_pci 0000:00:00.0: could not fetch firmware file 'ath10k/QCA9888/hw2.0/firmware-4.bin': -11
[ 9.286636] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/firmware-3.bin failed with error -2
[ 9.297687] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 9.465936] firmware ath10k!QCA9888!hw2.0!firmware-3.bin: firmware_loading_store: map pages failed
[ 9.475327] ath10k_pci 0000:00:00.0: could not fetch firmware file 'ath10k/QCA9888/hw2.0/firmware-3.bin': -11
[ 9.485653] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/firmware-2.bin failed with error -2
[ 9.496709] ath10k_pci 0000:00:00.0: Falling back to user helper
[ 9.663671] firmware ath10k!QCA9888!hw2.0!firmware-2.bin: firmware_loading_store: map pages failed
[ 9.673114] ath10k_pci 0000:00:00.0: could not fetch firmware file 'ath10k/QCA9888/hw2.0/firmware-2.bin': -11
[ 9.683373] ath10k_pci 0000:00:00.0: could not fetch firmware files (-11)
[ 9.690397] ath10k_pci 0000:00:00.0: could not probe fw (-11)

I wonder what error -11 means, could not find anything about it, -2 is obviously not found...
The loaders tries to load pre-cal-pci-0000:00:00.0.bin, firmware-2.bin, firmware-3.bin, firmware-4.bin, firmware-5.bin. But ath10k-firmware-qca988x has only:

./ath10k
./ath10k/QCA988X
./ath10k/QCA988X/hw2.0
./ath10k/QCA988X/hw2.0/board.bin
./ath10k/QCA988X/hw2.0/firmware-5.bin
./ath10k/cal-pci-0000:00:00.0.bin

Does someone have an Idea about this firmware mess? :slight_smile: We're getting close to complete Support...

Thanks for adding support @prisma, apart from 5GHz, it's working pretty well for me.

I get the same as you when using the built-in firmware.

I've also tried the firmware from both Candela Technologies and Code Aurora, with very similar results:

[   12.131875] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   12.288553] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[   12.299638] ath10k_pci 0000:00:00.0: Falling back to user helper
[   12.392037] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[   13.208999] ath10k_pci 0000:00:00.0: Unknown FW IE: 30
[   13.214319] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[   13.223883] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   13.242411] ath10k_pci 0000:00:00.0: firmware ver 10.4-ct-9888-tW-009-cf18e19 api 5 features peer-flow-ctrl crc32 d104730b
[   13.531548] ath10k_pci 0000:00:00.0: board id is not exist in otp, ignore it
[   13.550505] ath10k_pci 0000:00:00.0: failed to fetch board data for bus=pci,vendor=168c,device=0056,subsystem-vendor=0000,subsystem-device=00006*&�
          @F��a from ath10k/QCA9888/hw2.0/board-2.bin
[   13.568533] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/board.bin failed with error -2
[   13.579160] ath10k_pci 0000:00:00.0: Falling back to user helper
[   13.667104] firmware ath10k!QCA9888!hw2.0!board.bin: firmware_loading_store: map pages failed
[   13.676121] ath10k_pci 0000:00:00.0: failed to fetch board data
[   13.682237] ath10k_pci 0000:00:00.0: failed to fetch board file: -11
[   13.688999] ath10k_pci 0000:00:00.0: could not probe fw (-11)

The junk characters after the subsystem-device on line 13.550505 is a little suspicious.

If I add the board.bin I get a firmware crash, similar to Borris here

I noticed support for this router has now been discontinued.
https://lede-project.org/toh/hwdata/tp-link/tp-link_archer_c58_v1
Please could you support this router again.

You misunderstood the Availability field.
The field you should be looking at is LEDE Supported Current Rel: snapshot
This means, this device has snapshot support. Well, had snapshot support until recently, see

From the commit:

The build fails for any of these boards because the resulting kernel
image will not fit into the kernel partition.

When CONFIG_KERNEL_KALLSYMS is not set it could be that the kernel will
fit onto the board again, this is the case for release images.

-> Wait for the next release, whenever that may be.

Thank you. I will wait for the problem to be resolved.

Hi, i need this too.

Hi all,
i can get the router working just compiling an older kernel version.
Everything works except the 5GHz board, as i can read in previous posts.

Only one note, now the QCA9888 is available and the error seems more clear:

[   63.258089] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[   63.267657] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   63.286424] ath10k_pci 0000:00:00.0: firmware ver 10.4-3.2-00072 api 5 features no-p2p,mfp,peer-flow-ctrl crc32 b1da0716
[   63.626681] ath10k_pci 0000:00:00.0: failed to fetch board data for bus=pci,bmi-chip-id=0,bmi-board-id=20 from ath10k/QCA9888/hw2.0/board-2.bin
[   63.642766] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id 0:20 crc32 74a04250
[   65.611257] ath10k_pci 0000:00:00.0: firmware crashed! (guid 911120d5-d452-43ec-91d7-79d1fd891526)

As happened on other devices with this board the "board.bin" file seems not correctly working.
I try to extract it from the mtd6 partition and replacing the file i get a different error:

[  347.894474] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[  347.904044] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[  347.922825] ath10k_pci 0000:00:00.0: firmware ver 10.4-3.2-00072 api 5 features no-p2p,mfp,peer-flow-ctrl crc32 b1da0716
[  348.332550] ath10k_pci 0000:00:00.0: found invalid board magic
[  348.340042] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id 0:20 crc32 74a04250
[  350.377096] ath10k_pci 0000:00:00.0: firmware crashed! (guid 17e30a6c-79f5-48c4-8529-5f8e75afb09f)

The interface is still not working...
I hope this can help somebody.

Use the staging git from pepe2k https://github.com/pepe2k/lede-project-source. Compiling this, everything should work. 5 Ghz stability remains to be seen. See more here: Archer C59 V1 missing ieee802.11 a/n/ac 5GHz

This is not my staging tree.

Hi, @prisma. I'm new.

I tried to flash LEDE firmware into this router, but it caused Dead Loop Reboot...

I also tried follow this link, but not work: https://git.lede-project.org/?p=openwrt/openwrt.git;a=commit;h=e39dc8d823c86559eedbbdcee5f5c14b827fed0f

Have you ever been in this situation?

TTL PRINT:

U-Boot 1.1.4 (Aug  3 2016 - 09:34:31)

ap151 - Dragonfly 1.0

DRAM:  64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 341k for U-Boot at: 83fa8000
Reserving 32832k for malloc() at: 81f98000
Reserving 44 Bytes for Board Info at: 81f97fd4
Reserving 36 Bytes for Global Data at: 81f97fb0
Reserving 128k for boot params() at: 81f77fb0
Stack Pointer at: 81f77f98
Now running in RAM - U-Boot at: 83fa8000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x17
flash size 8MB, sector count = 128
Flash:  8 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
Fetching MAC Address from 0x83fc01cc
ath_gmac_enet_initialize: reset mask:c02200
Dragonfly----> S27 PHY *
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
athrs27_phy_setup ATHR_PHY_CONTROL 4 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4 :10
eth0 up
ATHRS27: resetting s27
ATHRS27: s27 reset done
: cfg1 0x800c0000 cfg2 0x7214
eth1: 00:0c:f0:60:dc:98
athrs27_phy_setup ATHR_PHY_CONTROL 0 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0 :50
athrs27_phy_setup ATHR_PHY_CONTROL 1 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1 :50
athrs27_phy_setup ATHR_PHY_CONTROL 2 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2 :50
athrs27_phy_setup ATHR_PHY_CONTROL 3 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3 :50
eth1 up
eth0, eth1
Setting 0x181162c0 to 0x82
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Image Name:   MIPS OpenWrt Linux-4.9.73
   Created:      2018-01-05  10:59:59 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1500504 Bytes =  1.4 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0x9f020040 ...OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...

[    0.000000] Linux version 4.9.73 (buildbot@builds) (gcc version 5.5.0 (OpenWrt GCC 5.5.0 r5677-da95c9a) ) #0 Thu Jan 4 12:44:42 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] OF: fdt:No valid device tree found, continuing without
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache 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 in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=ARCHER-C58-V1 mtdparts=spi0.0:64k(u-boot)ro,64k(mac)ro,7936k(firmware),64k(tplink)ro,64k(art)ro console=ttyS0,115200 rootfstype=squashfs noinitrd
[    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=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 59440K/65536K available (3464K kernel code, 176K rwdata, 868K rodata, 348K init, 220K bss, 6096K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:775.000MHz, DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000006] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008224] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.071033] pid_max: default: 32768 minimum: 301
[    0.075985] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.082954] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.092484] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.102882] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.110292] NET: Registered protocol family 16
[    0.116279] MIPS: machine is TP-LINK Archer C58 v1
[    0.599699] registering PCI controller with io_map_base unset
[    0.618084] PCI host bridge to bus 0000:00
[    0.622408] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.629687] pci_bus 0000:00: root bus resource [io  0x0001]
[    0.635553] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.642708] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.651086] pci 0000:00:00.0: invalid calibration data
[    0.656832] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.664555] pci 0000:00:00.0: using irq 40 for pin 1
[    0.672246] clocksource: Switched to clocksource MIPS
[    0.678454] NET: Registered protocol family 2
[    0.683844] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.691198] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.697940] TCP: Hash tables configured (established 1024 bind 1024)
[    0.704721] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.710885] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.717732] NET: Registered protocol family 1
[    0.724577] Crashlog allocated RAM at address 0x3f00000
[    0.730890] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.743543] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.749683] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.767240] io scheduler noop registered
[    0.771373] io scheduler deadline registered (default)
[    0.777276] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.786149] console [ttyS0] disabled
[    0.809983] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.819081] console [ttyS0] enabled
[    0.819081] console [ttyS0] enabled
[    0.826630] bootconsole [early0] disabled
[    0.826630] bootconsole [early0] disabled
[    0.841395] m25p80 spi0.0: found s25fl064k, expected m25p80
[    0.847198] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    0.852163] 5 cmdlinepart partitions found on MTD device spi0.0
[    0.858280] Creating 5 MTD partitions on "spi0.0":
[    0.863243] 0x000000000000-0x000000010000 : "u-boot"
[    0.870142] 0x000000010000-0x000000020000 : "mac"
[    0.876349] 0x000000020000-0x0000007e0000 : "firmware"
[    0.896033] 2 uimage-fw partitions found on MTD device firmware
[    0.902155] 0x000000020000-0x0000001a0000 : "kernel"
[    0.908408] 0x0000001a0000-0x0000007e0000 : "rootfs"
[    0.914951] mtd: device 4 (rootfs) set to be root filesystem
[    0.920835] 1 squashfs-split partitions found on MTD device rootfs
[    0.927259] 0x000000400000-0x0000007e0000 : "rootfs_data"
[    0.934166] 0x0000007e0000-0x0000007f0000 : "tplink"
[    0.940608] 0x0000007f0000-0x000000800000 : "art"
[    0.947582] libphy: Fixed MDIO Bus: probed
[    0.984968] libphy: ag71xx_mdio: probed
[    0.999947] libphy: ag71xx_mdio: probed
[    1.634744] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:00 [uid=004dd042, driver=Generic PHY]
[    1.644753] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    2.274421] ag71xx-mdio.1: Found an AR934X built-in switch
[    2.327100] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    2.336677] NET: Registered protocol family 10
[    2.343738] NET: Registered protocol family 17
[    2.348381] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.361883] 8021q: 802.1Q VLAN Support v1.8
[    2.367651] hctosys: unable to open rtc device (rtc0)
[    2.378172] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    2.387390] Freeing unused kernel memory: 348K
[    2.391979] This architecture does not have kernel memory protection.
[    2.562258] random: fast init done
[    3.068068] init: Console is alive
[    3.071753] init: - watchdog -
[    4.011492] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.055045] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.063804] init: - preinit -
[    4.656734] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
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.875611] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    7.901891] urandom-seed: Seed file not found (/etc/urandom.seed)
[    8.051311] procd: - early -
[    8.054962] procd: - watchdog -
[    8.663720] procd: - watchdog -
[    8.667185] procd: - ubus -
[    8.755920] procd: - init -
Please press Enter to activate this console.
[    8.996401] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.006575] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.021300] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[    9.029608] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[    9.038942] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.051206] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    9.100656] xt_time: kernel timezone is -0000
[    9.150279] PPP generic driver version 2.4.2
[    9.156804] NET: Registered protocol family 24
[    9.181902] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    9.188104] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[    9.384104] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[    9.395185] ath10k_pci 0000:00:00.0: Falling back to user helper
[    9.647451] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/firmware-6.bin failed with error -2
[    9.658538] ath10k_pci 0000:00:00.0: Falling back to user helper
[    9.748618] firmware ath10k!QCA9888!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[   10.270097] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[   10.279658] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   10.298504] ath10k_pci 0000:00:00.0: firmware ver 10.4-3.2-00072 api 5 features no-p2p,mfp,peer-flow-ctrl crc32 b1da0716
[   10.643520] ath10k_pci 0000:00:00.0: failed to fetch board data for bus=pci,bmi-chip-id=0,bmi-board-id=31 from ath10k/QCA9888/hw2.0/board-2.bin
[   10.657302] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id 0:31 crc32 37fb8d4c
[   12.624623] ath10k_pci 0000:00:00.0: firmware crashed! (guid 0fc59530-035d-4fce-82d0-7324d71d93f3)
[   12.633906] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[   12.643431] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   12.662274] ath10k_pci 0000:00:00.0: firmware ver 10.4-3.2-00072 api 5 features no-p2p,mfp,peer-flow-ctrl crc32 b1da0716
[   12.673723] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id 0:31 crc32 37fb8d4c
[   12.681364] ath10k_pci 0000:00:00.0: htt-ver 0.0 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   12.693811] ath10k_pci 0000:00:00.0: firmware register dump:
[   12.699659] ath10k_pci 0000:00:00.0: [00]: 0x01000000 0x000015B3 0x009CEAB7 0x00975B31
[   12.707836] ath10k_pci 0000:00:00.0: [04]: 0x009CEAB7 0x00060530 0x00000011 0x004132CC
[   12.716014] ath10k_pci 0000:00:00.0: [08]: 0x0041554C 0x00400000 0x00406010 0x00419388
[   12.724195] ath10k_pci 0000:00:00.0: [12]: 0x00000009 0xFFFFFFFF 0x00973895 0x009738B7
[   12.732375] ath10k_pci 0000:00:00.0: [16]: 0x009CEAB7 0x000D01E4 0x00000000 0x00000000
[   12.740552] ath10k_pci 0000:00:00.0: [20]: 0x409CEAB7 0x00405F3C 0x00000001 0x00400000
[   12.748729] ath10k_pci 0000:00:00.0: [24]: 0x809813AB 0x00405F9C 0x00000036 0xC09CEAB7
[   12.756907] ath10k_pci 0000:00:00.0: [28]: 0x800D6D41 0x0040600C 0x00000004 0x00412F00
[   12.765090] ath10k_pci 0000:00:00.0: [32]: 0x800C383A 0x0040603C 0x00412D90 0x00400000
[   12.773270] ath10k_pci 0000:00:00.0: [36]: 0x809800A3 0x0040606C 0x00412DA0 0x009C2F84
[   12.781445] ath10k_pci 0000:00:00.0: [40]: 0x8098003A 0x004060BC 0x00400000 0x00400600
[   12.789622] ath10k_pci 0000:00:00.0: [44]: 0x809607C1 0x004060EC 0xD8400100 0x004060FC
[   12.797801] ath10k_pci 0000:00:00.0: [48]: 0x80960892 0x0040610C 0x00000000 0x00000008
[   12.805981] ath10k_pci 0000:00:00.0: [52]: 0x80960E81 0x0040612C 0x00400000 0x00400600
[   12.814163] ath10k_pci 0000:00:00.0: [56]: 0x80960EE5 0x0040614C 0x00000000 0x00400600
[   12.822340] ath10k_pci 0000:00:00.0: Copy Engine register dump:
[   12.828455] ath10k_pci 0000:00:00.0: [00]: 0x0004a000   1   1  18  17
[   12.835117] ath10k_pci 0000:00:00.0: [01]: 0x0004a400  11  11  10  11
[   12.841768] ath10k_pci 0000:00:00.0: [02]: 0x0004a800   0   0  63   0
[   12.848430] ath10k_pci 0000:00:00.0: [03]: 0x0004ac00   0   0   0   0
[   12.855091] ath10k_pci 0000:00:00.0: [04]: 0x0004b000   0   0   0   0
[   12.861749] ath10k_pci 0000:00:00.0: [05]: 0x0004b400   0   0   0   0
[   12.868413] ath10k_pci 0000:00:00.0: [06]: 0x0004b800   0   0   0   0
[   12.875066] ath10k_pci 0000:00:00.0: [07]: 0x0004bc00   1   1   1   1
[   12.881720] ath10k_pci 0000:00:00.0: [08]: 0x0004c000   0   0 127   0
[   12.888383] ath10k_pci 0000:00:00.0: [09]: 0x0004c400   1   1   1   1
[   12.895039] ath10k_pci 0000:00:00.0: [10]: 0x0004c800   0   0   0   0
[   12.901693] ath10k_pci 0000:00:00.0: [11]: 0x0004cc00   0   0   0   0
[   13.632258] ath10k_pci 0000:00:00.0: failed to receive control response completion, polling..
[   14.672260] ath10k_pci 0000:00:00.0: ctl_resp never came in (-145)
[   14.678644] ath10k_pci 0000:00:00.0: failed to connect to HTC: -145
[   14.773444] ath10k_pci 0000:00:00.0: could not init core (-145)
[   14.779755] ath10k_pci 0000:00:00.0: could not probe fw (-145)
[   14.785819] ath10k_pci 0000:00:00.0: cannot restart a device that hasn't been started
[   14.837253] Data bus error, epc == 83303770, ra == 83303770
[   14.843012] Oops[#1]:
[   14.845361] CPU: 0 PID: 576 Comm: kmodloader Not tainted 4.9.73 #0
[   14.851740] task: 83a61ef0 task.stack: 83000000
[   14.856412] $ 0   : 00000000 00000025 deadc0de 00000000
[   14.861842] $ 4   : b8115f18 00015f18 00000007 00000004
[   14.867271] $ 8   : 00000001 7c7c3c7c 7c7c7c7c 7c7c7c7c
[   14.872701] $12   : 7c7c3c7c 00000000 00000000 7c7c7c3c
[   14.878131] $16   : 00000064 83bc8010 00000000 00015f18
[   14.883560] $20   : 00000007 00000004 00000004 000003ff
[   14.888991] $24   : 00000000 ec10fb64
[   14.894421] $28   : 83000000 83001a10 83001a9c 83303770
[   14.899850] Hi    : 00000000
[   14.902816] Lo    : 00000064
[   14.905828] epc   : 83303770 ath9k_hw_wait+0x64/0xb0 [ath9k_hw]
[   14.911941] ra    : 83303770 ath9k_hw_wait+0x64/0xb0 [ath9k_hw]
[   14.918048] Status: 1100fc03 KERNEL EXL IE
[   14.922395] Cause : 4080801c (ExcCode 07)
[   14.926535] PrId  : 00019750 (MIPS 74Kc)
[   14.930574] Modules linked in: ath9k(+) ath9k_common pppoe ppp_async ath9k_hw ath10k_pci ath10k_core ath pppox ppp_generic nf_conntrack_ipv6 mac80211 iptable_nat ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_ccitt compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables gpio_button_hotplug
[   14.992475] Process kmodloader (pid: 576, threadinfo=83000000, task=83a61ef0, tls=77438df4)
[   15.001089] Stack : 6073b446 f82bc02b 0dda8e31 bbe26612 f3f6c7f9 83bc8010 00000000 00030000
[   15.009779]         00000300 00000400 00010000 8331f7a4 00000001 80550260 80550000 83001a94
[   15.018471]         000003e8 0000002f 0000000e 00000018 000003ff 83320000 83a7a800 83bc8010
[   15.027162]         99999999 00000001 83001b2c 83bc8434 00000001 8331e9cc 8312f298 0000002f
[   15.035853]         b8100000 83bc8010 00020000 ffffffff 00000220 8331fa9c 83bc8038 83303b40
[   15.044544]         ...
[   15.047082] Call Trace:
[   15.049612] [<83303770>] ath9k_hw_wait+0x64/0xb0 [ath9k_hw]
[   15.055381] [<8331f7a4>] ath9k_hw_setup_statusring+0xe18/0x1df8 [ath9k_hw]
[   15.062482] Code: 02202025  0040f809  00000000 <00541024> 10550008  24020001  0c076e2c  2404000a  1000fff4
[   15.072616]
[   15.074219] ---[ end trace f316b11094352083 ]---
[   15.080379] Kernel panic - not syncing: Fatal exception
[   15.086419] Rebooting in 1 seconds..

Wow, that was fast. Thanks AndyX, i will solder the cables to tp4 and tp5. Thanks.

See back of PCB, find TP4 and TP5 (TX or RX). The GND connect to the front metal shell.

%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE(162)_%E7%9C%8B%E5%9B%BE%E7%8E%8B

My router's MAC address was lost, so I fix the problem.

This is a link "Full dump original firmware":

https://forum.openwrt.org/t/tp-link-archer-c58-v1-eu-tp-link-wdr4300-v1-full-dump-original-firmware-art-u-boot