Archer C7 (ac1750) V4 (TW) revert to stock firmware?

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2
Author Message
Uncle Luke
DD-WRT Novice


Joined: 26 Dec 2016
Posts: 8

PostPosted: Fri Dec 01, 2017 22:55    Post subject: Reply with quote
j796160836 wrote:
Hi Uncle Luke, thanks your video tutorial.
But for mine model, it maybe change to this.

(Not tested yet)
erase 0x9f040000 +f80000
cp.b 0x81000000 0x9f040000 0xf80000

0x9f040000 is image address for.
+f80000 is for flash size (refer OpenWRT article 16MB Flash size)
How about 0x81000000 ? Can you explain this one, please?



Firstly, sorry, but I can't help you with your serial typing issue! I have no idea of what could be wrong there!

Secondly, I’m not a coder or programmer I just followed the videos and substituted the info obtained in PuTTY from my router and it has worked every time! 0x81000000 is the load address in my router.

In PuTTY when you type - tftpboot - then ctrl-C to stop the scroll to take note of the IP address at the line that reads "TFTP from server" below that line there should be a line... "Filename 'XXXXXXXX.img'", then below that there should be a line...
"Load address: XxXXXXXXXX" (in my Archer C7 the “Load address” is - 0x81000000)

Further in the process after you type - erase 0x9f040000 +f80000 (or whatever from your router) it erases the sectors, in the next step you type…
cp.b (plus) "Load Address" (plus) 0x9f040000 (plus) 0xf80000 (or whatever your routers addresses are)

My Archer version 2 exact example --> cp.b 0x81000000 0x9f020000 0xfb0000

But, if you now have Lede installed and working it should be easy to revert back to stock using same TFTP method!

Popular site for stripped firmware if you need it (again don’t know for sure if version 2 will work)…
http://www.friedzombie.com/tplink-stripped-firmware/

You may also be able to revert to stock TP-Link directly using the “Flash new firmware image” option in Lede! Remember to un-tick “Keep Settings”

Actually I switched over to Lede awhile back, now on version 17.01.4, router seems to be liking it!

Some good info for Version 4 here…
https://forum.lede-project.org/t/archer-c7-v4-support/3924/38
And here (near the top)…
http://downloads.lede-project.org/snapshots/targets/ar71xx/generic/

Hope that helps!


Last edited by Uncle Luke on Fri Dec 01, 2017 23:22; edited 3 times in total
Sponsor
Uncle Luke
DD-WRT Novice


Joined: 26 Dec 2016
Posts: 8

PostPosted: Fri Dec 01, 2017 23:05    Post subject: Reply with quote
j796160836 wrote:
Here is the log for press reset button for 3 sec. checksum bad

Quote:

U-Boot 1.1.4 (Aug 10 2017 - 18:22:29)

ap152 - Dragonfly 1.0

DRAM: 128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 395k for U-Boot at: 87f9c000
Reserving 16448k for malloc() at: 86f8c000
Reserving 44 Bytes for Board Info at: 86f8bfd4
Reserving 36 Bytes for Global Data at: 86f8bfb0
Reserving 128k for boot params() at: 86f6bfb0
Stack Pointer at: 86f6bf98
Now running in RAM - U-Boot at: 87f9c000
Flash Manuf Id 0xc8, DeviceId0 0x40, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
Using default environment

In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
athr_mgmt_init ::done
Dragonfly ----> S17 PHY *
athrs17_reg_init: complete
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Setting 0x181162c0 to 0x40802100
run command setenv serverip 192.168.0.66;setenv ipaddr 192.168.0.86
run command tftp 0x80060000 ArcherC7v4_tp_recovery.bin
Trying eth0
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'ArcherC7v4_tp_recovery.bin'.
Load address: 0x80060000

Loading: checksum bad
checksum bad
##checksum bad
###############################################################
#################################################################
########################checksum bad
#checksum bad
########################################
########checksum bad
#########################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#########################################Tftp server tranfer fail!
tftpboot firmware failed, now start normally.
factory boot check integer ok.
factory boot load fs uboot len 131072 to addr 0x80010000.
Hit any key to stop autoboot: 0
## Starting application at 0x80010000 ...


U-Boot 1.1.4 (Aug 10 2017 - 18:22:1Cool

ap152 - Dragonfly 1.0

DRAM: 128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 122k for U-Boot at: 87fe0000
Reserving 16448k for malloc() at: 86fd0000
Reserving 44 Bytes for Board Info at: 86fcffd4
Reserving 36 Bytes for Global Data at: 86fcffb0
Reserving 128k for boot params() at: 86faffb0
Stack Pointer at: 86faff98
Now running in RAM - U-Boot at: 87fe0000
Flash Manuf Id 0xc8, DeviceId0 0x40, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
Using default environment

In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
athr_mgmt_init ::done
Dragonfly ----> S17 PHY *
athrs17_reg_init: complete
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Setting 0x181162c0 to 0x40802100
Hit any key to stop autoboot: 0
## Booting image at 9f040000 ...
Bad Magic Number
ath>


See highlighted text in Log you posted...
j796160836
DD-WRT Novice


Joined: 20 Nov 2017
Posts: 15

PostPosted: Sat Dec 02, 2017 1:51    Post subject: Reply with quote
Uncle Luke wrote:
Popular site for stripped firmware if you need it (again don’t know for sure if version 2 will work)…
http://www.friedzombie.com/tplink-stripped-firmware/

Yeah, I have already check that site but V4 stripped firmware is missing, only have V2.

But
Archer C7 AC1750 v2 use Qualcomm Atheros QCA9558 CPU
Archer C7 AC1750 v4 use Qualcomm Atheros QCA9561 CPU
(Refer to LEDE router database)
I thinks V2 firmware is totally incapable with V4.

---

Uncle Luke wrote:
0x81000000 is the load address in my router.

below that line there should be a line... "Filename 'XXXXXXXX.img'", then below that there should be a line...
"Load address: XxXXXXXXXX" (in my Archer C7 the “Load address” is - 0x81000000)

cp.b (plus) "Load Address" (plus) 0x9f040000 (plus) 0xf80000 (or whatever your routers addresses are)
My Archer version 2 exact example --> cp.b 0x81000000 0x9f020000 0xfb0000


Yeah, maybe your are right
So it will be

erase 0x<image address> +<image size>
cp.b 0x<load address> 0x<image address> 0x<image size>

So in my case Archer C7 V4, it will be

(Not tested yet)
erase 0x9f040000 +f80000
cp.b 0x80060000 0x9f040000 0xf80000

But here
https://git.lede-project.org/?p=source.git;a=commit;h=9887afb1afcf387f6892315413e610a6816df463

Give the 0x81000000 for instruction.

Quote:
Flash instruction under U-Boot, using UART:

1. tftp 0x81000000 lede-ar71xx-...-sysupgrade.bin
2. erase 0x9f040000 +$filesize
3. cp.b $fileaddr 0x9f040000 $filesize
4. reset


Which one is correct? 0x81000000 or 0x80060000 ?

---

Uncle Luke wrote:
Some good info for Version 4 here…
https://forum.lede-project.org/t/archer-c7-v4-support/3924/38
And here (near the top)…
http://downloads.lede-project.org/snapshots/targets/ar71xx/generic/

Yeah, that's introduction what I use to recover to LEDE.

That article have give me the right introduction.

Quote:
Flash instruction using TFTP recovery:
1. Set PC to fixed ip address 192.168.0.66
2. Download lede-ar71xx-generic-archer-c7-v4-squashfs-factory.bin
and rename it to ArcherC7v4_tp_recovery.bin
3. Start a tftp server with the file tp_recovery.bin in its root directory
4. Turn off the router
5. Press and hold Reset button
6. Turn on router with the reset button pressed and wait ~15 seconds
7. Release the reset button and after a short time
the firmware should be transferred from the tftp server
8. Wait ~30 second to complete recovery.


Don't forget connect via SSH (username root / no password) to the device and running the following two commands:
Code:
opkg update
opkg install luci

unless you won't get the web interface
drumbyte
DD-WRT Novice


Joined: 09 May 2018
Posts: 2

PostPosted: Wed May 16, 2018 6:50    Post subject: I'm in the router again without having to use a serial cable Reply with quote
I had the same exact problem, no lights! I was able to get into my router again by using this file: https://downloads.lede-project.org/snapshots/targets/ar71xx/generic/openwrt-ar71xx-generic-archer-c7-v4-squashfs-factory.bin

Renaming it to ArcherC7v4_tp_recovery.bin and flashing with tftpd32. After that I was able to repeat the process using the original untouched firmware from Tp-link website!
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum