WRT32X - How to go back to stock firmware?

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Author Message
theseven
DD-WRT Novice


Joined: 12 Jan 2020
Posts: 3

PostPosted: Sun Jan 12, 2020 4:52    Post subject: WRT32X - How to go back to stock firmware? Reply with quote
Hi Guys,

I have the latest dd-wrt build installed and had changed the stock firmware. Did not keep a second partition.

Now I would to go back and not sure how to go about putting it back? Any help would be appreciated. Or link to post within the forum..
Sponsor
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 2779

PostPosted: Sun Jan 12, 2020 11:51    Post subject: Reply with quote
Do you have a TTL serial cable handy? There is a Telnet/SSH command line method, but I recommend having a backup plan.

https://www.amazon.com/Serial-Adapter-Signal-FT232RL-Windows/dp/B07RBKCW3S

https://www.amazon.com/ADAFRUIT-Industries-954-Serial-Raspberry/dp/B00DJUHGHI

https://www.amazon.com/Serial-Adapter-Signal-Prolific-Windows/dp/B07R8BQYW1

Both command line and serial recovery methods will require a converted-to-flat image file which is not provided by Linksys.

flat-FW_WRT32X_1.0.180404.58.img

Download the image and rename to venom.img to make life easier. Use WinSCP to copy the image your router's /tmp folder.

The command below will tell you which partition you are currently running.

ubootenv get boot_part

It will return a value of 1 or 2.

Please understand the risks for these types of command line flash.

From here I will provide an example assuming you are booted into partition 1.

mtd -e linux2 write /tmp/venom.img linux2

ubootenv set boot_part 2

reboot

Here is an alternate method as others have run this command while on partition 1.

Please note this command will automatically reboot.

mtd -e linux -r write /tmp/venom.img linux

Your experience may vary.

Keep in mind there is only linux or linux2 and linux1 doesn't exist! Also, don't erase one and then write to the other!

After rebooting into the stock firmware environment and everything appears okay please do a factory reset or hard reset.

If you want to overwrite the other partition as well, just go download the stock firmware from Linksys and upgrade as usual.

https://www.linksys.com/us/support-article/?articleNum=226203
theseven
DD-WRT Novice


Joined: 12 Jan 2020
Posts: 3

PostPosted: Tue Jan 14, 2020 7:50    Post subject: Reply with quote
Thanks Blkt, let me try the steps you listed.

blkt wrote:
Do you have a TTL serial cable handy? There is a Telnet/SSH command line method, but I recommend having a backup plan.

https://www.amazon.com/Serial-Adapter-Signal-FT232RL-Windows/dp/B07RBKCW3S

https://www.amazon.com/ADAFRUIT-Industries-954-Serial-Raspberry/dp/B00DJUHGHI

https://www.amazon.com/Serial-Adapter-Signal-Prolific-Windows/dp/B07R8BQYW1

Both command line and serial recovery methods will require a converted-to-flat image file which is not provided by Linksys.

flat-FW_WRT32X_1.0.180404.58.img

Download the image and rename to venom.img to make life easier. Use WinSCP to copy the image your router's /tmp folder.

The command below will tell you which partition you are currently running.

ubootenv get boot_part

It will return a value of 1 or 2.

Please understand the risks for these types of command line flash.

From here I will provide an example assuming you are booted into partition 1.

mtd -e linux2 write /tmp/venom.img linux2

ubootenv set boot_part 2

reboot

Here is an alternate method as others have run this command while on partition 1.

Please note this command will automatically reboot.

mtd -e linux -r write /tmp/venom.img linux

Your experience may vary.

Keep in mind there is only linux or linux2 and linux1 doesn't exist! Also, don't erase one and then write to the other!

After rebooting into the stock firmware environment and everything appears okay please do a factory reset or hard reset.

If you want to overwrite the other partition as well, just go download the stock firmware from Linksys and upgrade as usual.

https://www.linksys.com/us/support-article/?articleNum=226203
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) 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