Can't get my archer c7 unbricked.. been trying all weekend

Here is what it outputs when i start it: https://imgur.com/a/aSyYNok

After using an auto typer to get the tpl command entered I can't type because of what is on the screen. https://imgur.com/a/UrduF8f

And the log:

SGMII in forced mode athr_gmac_sgmii_setup SGMII done : cfg1 0x800c0000 cfg2 0x7214 eth1: ba:be:fa:ce:08:41 eth1 up eth0, eth1 Setting 0x18116290 to 0x58b1214f dup 1 speed 1000 Using eth1 device TFTP from server 192.168.0.66; our IP address is 192.168.0.86 Filename 'ArcherC7v2_tp_recovery.bin'. Load address: 0x80060000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################ done Bytes transferred = 16384512 (fa0200 hex) original_product_id = ffffffff original_product_ver = ffffffff recovery_product_id = c7000002 recovery_product_ver = 01 auto update firmware: product id verify fail! Autobooting in 1 seconds

Booting image at 9f020000 ...
Uncompressing Kernel Image ... Stream with EOS marker is not supportedLZMA ERROR 1 - must RESET board to recover

U-Boot 1.1.4 (Apr 24 2015 - 13:53:04)

ap135 - Scorpion 1.0DRAM: sri Scorpion 1.0 ath_ddr_initial_config(178): (32bit) ddr2 init tap = 0x00000003 Tap (low, high) = (0x3, 0x1a) Tap values = (0xe, 0xe, 0xe, 0xe) 128 MB Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18 flash size 16MB, sector count = 256 Flash: 16 MB Using default environment

permalinkembedsaveeditdisable inbox repliesdeletereply

Hi,

The wiki states this:

If you're having problems getting 'tpl' to work, you may need a pull-up resistor inline on the TX side of the connection, see https://goo.gl/7KFvfb for details. The TX pullup is most likely needed in version 2 models of revision B (serial beginning with 215B…), 16MB flash memory. A pull-up resistor also resolved “bleed through” of binary data into the console on an Archer C7 with a serial number beginning with 2154.

The garbage you are seeing in your console seems consistent with this problem.

If I were you though I'd just go for the TFTP recovery option -- seems much easier.

LP,
Jure

This is what I get when trying tftp.. What firmware should I be trying to flash? The one I'm using is from TP-Links website.

*** Warning *** : PCIe WLAN Module not found !!!
In:    serial
Out:   serial
Err:   serial
Net:   ath_gmac_enet_initialize...
athrs_sgmii_res_cal: cal value = 0xe
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
Scorpion  ----> S17 PHY *
Vlan config...
TEST: FINAL REG VAL after TX Calibration - 0x46000000
TEST: FINAL XMII VAL after RX Calibration - 0x56000000
TEST: FINAL ETH_CFG VAL after RX Calibration - 0x00028001
athrs17_reg_init: complete
: cfg1 0x80000000 cfg2 0x7335
eth0: ba:be:fa:ce:08:41
eth0 up
athrs17_reg_init_wan done
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x800c0000 cfg2 0x7214
eth1: ba:be:fa:ce:08:41
eth1 up
eth0, eth1
Setting 0x18116290 to 0x58b1214f
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'ArcherC7v2_tp_recovery.bin'.
Load address: 0x80060000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################
done
Bytes transferred = 16384512 (fa0200 hex)
original_product_id = ffffffff
 original_product_ver = ffffffff
 recovery_product_id = c7000002
 recovery_product_ver = 01
 auto update firmware: product id verify fail!
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... Stream with EOS marker is not supportedLZMA ERROR 1 - must RESET board to recover

U-Boot 1.1.4 (Apr 24 2015 - 13:53:04)

ap135 - Scorpion 1.0DRAM:
sri
Scorpion 1.0
ath_ddr_initial_config(178): (32bit) ddr2 init
tap = 0x00000003
Tap (low, high) = (0x3, 0x1c)
Tap values = (0xf, 0xf, 0xf, 0xf)
128 MB
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
Using default environment

*** Warning *** : PCIe WLAN Module not found !!!
In:    serial
Out:   serial
Err:   serial
Net:   ath_gmac_enet_initialize...
athrs_sgmii_res_cal: cal value = 0xe
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
Scorpion  ----> S17 PHY *
Vlan config...
TEST: FINAL REG VAL after TX Calibration - 0x46000000
TEST: FINAL XMII VAL after RX Calibration - 0x56000000
TEST: FINAL ETH_CFG VAL after RX Calibration - 0x00028001
athrs17_reg_init: complete
: cfg1 0x80000000 cfg2 0x7335
eth0: ba:be:fa:ce:08:41
eth0 up
athrs17_reg_init_wan done
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x800c0000 cfg2 0x7214
eth1: ba:be:fa:ce:08:41
eth1 up
eth0, eth1
Setting 0x18116290 to 0x58b1214f
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... Stream with EOS marker is not supportedLZMA ERROR 1 - must RESET board to recover

It seems that the flash partition containing the product version was erased and therefore the TFTP program is not able to match it to the stock firmware.

You should TFTP flash with OpenWRT.

LP,
Jure

Okay I tried to flash a couple of the .bin files from: https://wiki.openwrt.org/toh/tp-link/archer-c5-c7-wdr7500

Can you point me to exactly which file i need to flash? Thanks so much for your help!!!!

Log after trying to flash an OpenWRT firmware:

eth1 up
eth0, eth1
Setting 0x18116290 to 0x58b1214f
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'ArcherC7v2_tp_recovery.bin'.
Load address: 0x80060000
Loading: ####################
Abort
original_product_id = ffffffff
 original_product_ver = ffffffff
 recovery_product_id = c7000002
 recovery_product_ver = 01
 auto update firmware: product id verify fail!
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... Stream with EOS marker is not supportedLZMA ERROR 1 - must RESET board to recover

U-Boot 1.1.4 (Apr 24 2015 - 13:53:04)

https://downloads.lede-project.org/releases/17.01.4/targets/ar71xx/generic/lede-17.01.4-ar71xx-generic-archer-c7-v2-squashfs-factory.bin

I got the same thing using that. Am I supposed to be changing the filename to "ArcherC7v2_tp_recovery.bin"

Here's the log:

eth1: ba:be:fa:ce:08:41
eth1 up
eth0, eth1
Setting 0x18116290 to 0x58b1214f
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'ArcherC7v2_tp_recovery.bin'.
Load address: 0x80060000
Loading: #################################
Abort
original_product_id = ffffffff
 original_product_ver = ffffffff
 recovery_product_id = c7000002
 recovery_product_ver = 01
 auto update firmware: product id verify fail!
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... Stream with EOS marker is not supportedLZMA ER                                              ROR 1 - must RESET board to recover

U-Boot 1.1.4 (Apr 24 2015 - 13:53:04)

Either make a copy and change the name, or if you're on a system that supports it, symlink it. From the last time I soft-bricked one:

$ ls -l /private/tftpboot/
total 59820
lrwxr-xr-x  1 root  wheel        61 Feb 21 09:39 ArcherC7v2_tp_recovery.bin -> lede-17.01.4-ar71xx-generic-archer-c7-v2-squashfs-factory.bin

yes.

Although, if I read your situation correctly - you're not in an ideal situation.

u-boot seems to be fine, good.
but u-boot-env (which is located at the end of the u-boot partition, the last 4k of it) is at least partially damaged, probably shot alltogether, bad.

The easiest approach might be to build yourself a firmware image with adapted (and 'wrong') product_id/ product_ver. But you'll still have to fix your u-boot-env, which -besides the hwid- also contains the MAC address of your router.

1 Like

...or an initramfs image to tftpboot.

But you'll still have to fix your u-boot-env and hope that ART wasn't damaged, otherwise it's game over.

1 Like

Or tell me how it’s done :grinning:

1 Like

I, as well would like to know the "magic" in backing up at least the u-boot-env. At one time I tries the command-line utility, but there were some offset numbers I couldn't find, as I recall.

https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/ar71xx/image/generic-tp-link.mk;h=b3b5fdf19015828b711a9ef8fe641d4dcb5f0cf2;hb=HEAD#l103

1 Like

What do I do with this?

You'll have to configure 0xffffffff instead of 0xc7000002 for building an image and you may encounter similar fun with the region code.

How do i build the image?

https://openwrt.org/docs/guide-developer/build-system/start

You'll need to create a "patch" for the file indicated above. I'd get the build system running without any changes, then worry about the patch.

1 Like

I'm such a noob lol.. Is there a video you know of that I can follow. All of this is like a foreign language to me. Once again thank you so much everybody for the help.

First step is to install a solid, up-to-date Linux-based system, either on physical hardware or in a virtual machine.

For the former, I personally prefer Debian with Ubuntu a close second (Ubuntu is a little more user-friendly than Debian). For the latter, if you need a virtual machine, VirtualBox seems to work well for me on the Mac platform, as well as for others on the Windows platform. I'd suggest at least 32 GB for the drive, 64 GB is better ("dynamic allocation, or whatever they call it") and a bare minimum of 4 GB RAM.

1 Like

Okay I'm getting that setup right now:)