[SOLVED] revert to stock FW for archer c25 v1

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
UnIoN
DD-WRT Novice


Joined: 08 Nov 2012
Posts: 8

PostPosted: Wed Aug 11, 2021 11:37    Post subject: [SOLVED] revert to stock FW for archer c25 v1 Reply with quote
Hi, i installed wrt from betas and it is working fine.

yet i still would like to revert back to stock but cannot find any information about this topic for this device.

Do you have a revert file or possibly know the amount of bytes i need to strip to create one from BootCut?

Thank you
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14126
Location: Texas, USA

PostPosted: Wed Aug 11, 2021 14:44    Post subject: Reply with quote
I just now back-tracked to see that this device was actually now supported. I have no information on this device, whatsoever. There is no information in the OpenWRT wiki regarding returning to stock, either. This might turn into a learning opportunity Cool

Stock firmware: https://www.tp-link.com/en/support/download/archer-c25/v1/#Firmware

I have found the following information on the OpenWRT forum, though:

https://forum.openwrt.org/t/solved-archer-c25-bricked/17742

https://forum.openwrt.org/t/archer-c25-v1-bricked/91763

https://forum.openwrt.org/t/ac900-archer-c25-tftp-boot/54902

My question, though, is... why have you not been reporting successful flashes in the build threads? It has been fully supported since r42287.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
UnIoN
DD-WRT Novice


Joined: 08 Nov 2012
Posts: 8

PostPosted: Wed Aug 11, 2021 15:08    Post subject: Reply with quote
regarding stripping the firmware, sadly i cannot use it this way because i do not have a pc to connect to the router with fixed ip address 192.168.0.66

So either i need a webrevert from someone or i need direction how to add the dd-wrt header from terminal without ui.



this is the stock binwalk result
Code:
DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
22628         0x5864          U-Boot version string, "U-Boot 1.1.4 (Jun 21 2016 - 15:57:03)"
22676         0x5894          CRC32 polynomial table, big endian
23980         0x5DAC          uImage header, header size: 64 bytes, header CRC: 0x7939282, created: 2016-06-21 07:57:03, image size: 41105 bytes, Data Address: 0x80010000, Entry Point: 0x80010000, data CRC: 0x8222E0FE, OS: Linux, CPU: MIPS, image type: Firmware Image, compression type: lzma, image name: "u-boot image"
24044         0x5DEC          LZMA compressed data, properties: 0x6C, dictionary size: 8388608 bytes, uncompressed size: 99760 bytes
65150         0xFE7E          uImage header, header size: 64 bytes, header CRC: 0x995566FC, created: 2016-07-25 13:17:09, image size: 1041806 bytes, Data Address: 0x80060000, Entry Point: 0x80060000, data CRC: 0x88751452, OS: Linux, CPU: MIPS, image type: Multi-File Image, compression type: lzma, image name: "MIPS OpenWrt Linux-3.3.8"
65222         0xFEC6          LZMA compressed data, properties: 0x6D, dictionary size: 8388608 bytes, uncompressed size: 3040056 bytes
1107583       0x10E67F        Squashfs filesystem, little endian, version 4.0, compression:xz, size: 6296384 bytes, 1591 inodes, blocksize: 131072 bytes, created: 2016-07-25 13:24:11

i should be able to strip from 65150 but that still requires the special dd-wrt header
UnIoN
DD-WRT Novice


Joined: 08 Nov 2012
Posts: 8

PostPosted: Wed Aug 11, 2021 15:12    Post subject: Reply with quote
kernel-panic69 wrote:

My question, though, is... why have you not been reporting successful flashes in the build threads? It has been fully supported since r42287.

i am really sorry about that
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14126
Location: Texas, USA

PostPosted: Wed Aug 11, 2021 15:27    Post subject: Reply with quote
The normal method for creating a webrevert file is using a hex editor.

This thread is about (a) different router(s), but the idea is the same; I would have to look at the webflash file vs. stock firmware, I am no expert on this procedure.

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=302851

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
UnIoN
DD-WRT Novice


Joined: 08 Nov 2012
Posts: 8

PostPosted: Wed Aug 11, 2021 17:08    Post subject: Reply with quote
I can't figure out what crc32 here exactly means, crc32 from what part? The whole file? only the header?

I grabbed the dd-wrt update file and extracted the header. Than did a hexdump of both files the header only and the whole update file. But neither one producing the same crc32 that the update file has. Any idea what part i need to take?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14126
Location: Texas, USA

PostPosted: Fri Sep 03, 2021 22:19    Post subject: Reply with quote
Not sure if you ever gained any ground here, but here is a file to test reverting from webUI. I make no guarantees that this file will work or that it won't brick your router. If it does work, please let me know.

EDIT: The previously attached file most likely didn't contain the correct checksum. As noted below, TFTP recovery is the proper method of reverting to stock, so therefore use that method. Also, in regard to your CRC32 question I believe that the checksum calculation is the contents of the file with no header, whatsoever. That is if what I read in another thread that LOM interjected on regarding bad files I had created for another device. I will have to look at this later in the right perspective.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net


Last edited by kernel-panic69 on Sat Aug 06, 2022 15:09; edited 3 times in total
UnIoN
DD-WRT Novice


Joined: 08 Nov 2012
Posts: 8

PostPosted: Sat Sep 04, 2021 7:16    Post subject: Reply with quote
thank you for your help i really really appreciate it. i will test this the next time i am at the router location (summer vacation time) that could take a couple months, sorry.
UnIoN
DD-WRT Novice


Joined: 08 Nov 2012
Posts: 8

PostPosted: Sat Aug 06, 2022 9:09    Post subject: Reply with quote
just wanted to let anyone know, i did not succeed in creating a revert file but i tried a revert to stock with the original tp-link firmware (untouched without removing header) and TFTP and this worked.

download latest tp-link firmware
download tftpd (32 or 64)
connect your tp-link with LAN to a computer,
set IP Address to static 192.168.0.66
extract tp-link firmware to folder
rename firmware file to ArcherC25v1_recovery.bin
start tftpd and select in server mode folder with firmware
power off tp-link and hold the reset button for 5-10 sec while powering up
wait, device should download the firmware and updating, this will take like 2 mins
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14126
Location: Texas, USA

PostPosted: Sat Aug 06, 2022 14:04    Post subject: Reply with quote
Thanks for the update. I edited my post above and removed the attached file because it was most likely not going to work, anyway. This device is one of the devices that you do not need a stripped firmware file to TFTP because of the newer u-boot version and fwrecovery process. I didn't realize this at the time of your original posting.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Display posts from previous:    Page 1 of 1
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