[SOLVED] WRT32X back to stock Firmware

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Goto page Previous  1, 2, 3, 4, 5  Next
Author Message
spuriousoffspring
DD-WRT Guru


Joined: 05 Apr 2017
Posts: 981
Location: Louisiana, USA

PostPosted: Tue Jul 31, 2018 15:17    Post subject: Reply with quote
Run SSH command cat /proc/mtd and post the output.
_________________
DD-WRT Installation & Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117

WRT32X DD-WRT Installation Procedure
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=315569

IPVanish OpenVPN Client Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308565

FIRMWARE: OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33)
MODEM: ARRIS SURFBoard SB8200
ROUTER: Linksys WRT32X
USB NAS: Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
Sponsor
sufgi123
DD-WRT Novice


Joined: 17 Apr 2015
Posts: 13

PostPosted: Tue Jul 31, 2018 15:29    Post subject: Reply with quote
root@WRT32X:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00200000 00020000 "u-boot"
mtd1: 00020000 00020000 "u_env"
mtd2: 00040000 00020000 "s_env"
mtd3: 005c0000 00020000 "unused_area"
mtd4: 00040000 00020000 "devinfo"
mtd5: 07b00000 00020000 "linux"
mtd6: 07800000 00020000 "ubi"
mtd7: 07b00000 00020000 "linux2"
mtd8: 07700000 00020000 "rootfs2"
mtd9: 00040000 00020000 "nvram"
mtd10: 00100000 00020000 "BBT"
spuriousoffspring
DD-WRT Guru


Joined: 05 Apr 2017
Posts: 981
Location: Louisiana, USA

PostPosted: Tue Jul 31, 2018 15:33    Post subject: Reply with quote
Ah....ok. MTD partitions are labeled differently in stock firmware vs DD-WRT.
Run same command, but replace kernel1 with linux and replace kernel2 with linux2

_________________
DD-WRT Installation & Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117

WRT32X DD-WRT Installation Procedure
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=315569

IPVanish OpenVPN Client Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308565

FIRMWARE: OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33)
MODEM: ARRIS SURFBoard SB8200
ROUTER: Linksys WRT32X
USB NAS: Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
spuriousoffspring
DD-WRT Guru


Joined: 05 Apr 2017
Posts: 981
Location: Louisiana, USA

PostPosted: Tue Jul 31, 2018 15:37    Post subject: Reply with quote
If that doesn't work you may have to add /tmp/ before the file name. I can't remember which way for DD-WRT.
mtd -e linux2 -r write /tmp/venom.img linux2

_________________
DD-WRT Installation & Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117

WRT32X DD-WRT Installation Procedure
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=315569

IPVanish OpenVPN Client Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308565

FIRMWARE: OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33)
MODEM: ARRIS SURFBoard SB8200
ROUTER: Linksys WRT32X
USB NAS: Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
sufgi123
DD-WRT Novice


Joined: 17 Apr 2015
Posts: 13

PostPosted: Tue Jul 31, 2018 16:48    Post subject: Reply with quote
It's works Smile
Thank you very much
spuriousoffspring
DD-WRT Guru


Joined: 05 Apr 2017
Posts: 981
Location: Louisiana, USA

PostPosted: Tue Jul 31, 2018 16:53    Post subject: Reply with quote
sufgi123 wrote:
It's works Smile
Thank you very much

That's great! Do me a small favor. Edit the title of this Topic to:
[SOLVED] WRT32X back to stock Firmware

_________________
DD-WRT Installation & Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117

WRT32X DD-WRT Installation Procedure
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=315569

IPVanish OpenVPN Client Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308565

FIRMWARE: OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33)
MODEM: ARRIS SURFBoard SB8200
ROUTER: Linksys WRT32X
USB NAS: Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
sufgi123
DD-WRT Novice


Joined: 17 Apr 2015
Posts: 13

PostPosted: Tue Jul 31, 2018 17:01    Post subject: Reply with quote
Did it
By the way, I update only one partition,
I couldn't access the second one after it reboot.
spuriousoffspring
DD-WRT Guru


Joined: 05 Apr 2017
Posts: 981
Location: Louisiana, USA

PostPosted: Tue Jul 31, 2018 17:36    Post subject: Reply with quote
Thanks! I'm sure your thread will benefit others.

Once you're back to the Venom GUI you should be able to manually upload & flash the stock Linksys firmware from the Router Administration section. This would overwrite the opposite partition with the Venom firmware as well.

Linksys WRT32X Support - Firmware Download
https://www.linksys.com/us//support-product/?pid=01t34000004FeJ0AAK

If for some reason that doesn't work, you simply need to SCP the venom.img to the /tmp folder again. Then SSH in and run:
mtd -e kernel1 -r write /tmp/venom.img kernel1
or
mtd -e kernel2 -r write /tmp/venom.img kernel2

* Use the opposite of the partition you first flashed.
** Remember: once on stock firmware, MTD5 & MTD7 are named kernel1 & kernel2 (respectively)
** On DD-WRT MTD5 & MTD7 are named linux & linux2 (respectively)

_________________
DD-WRT Installation & Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117

WRT32X DD-WRT Installation Procedure
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=315569

IPVanish OpenVPN Client Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308565

FIRMWARE: OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33)
MODEM: ARRIS SURFBoard SB8200
ROUTER: Linksys WRT32X
USB NAS: Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
sufgi123
DD-WRT Novice


Joined: 17 Apr 2015
Posts: 13

PostPosted: Tue Jul 31, 2018 17:41    Post subject: Reply with quote
I can;t connect winSCP or shh. I get that the password is wrong.
I did flash again the stock firmware through GUI.
Hope it did it in both partitions.
spuriousoffspring
DD-WRT Guru


Joined: 05 Apr 2017
Posts: 981
Location: Louisiana, USA

PostPosted: Tue Jul 31, 2018 20:06    Post subject: Reply with quote
Anytime you change firmware type or erase a partition the SSH Key changes. PuTTY and WinSCP should give a warning followed by an 'update SSH Key prompt' and allow you to continue.

Everytime you flash firmware from the User Interface (Linksys, DD-WRT, OpenWrt, etc...) it always goes to the opposite, inactive partition.
If you were able to automatically or manually upload & upgrade from Linksys Venom GUI without errors - you now have Linksys firmware on both partitions.

The easiest way to see what partition is currently in use is with Telnet / SSH:

Linksys Venom & OpenWrt
fw_printenv boot_part
* SSH Port 22 is enabled by default.

DD-WRT
ubootenv get boot_part
* SSH Port 22 is disabled by default in DD-WRT. Unless enabled, you must use Telnet port 23

_________________
DD-WRT Installation & Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117

WRT32X DD-WRT Installation Procedure
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=315569

IPVanish OpenVPN Client Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308565

FIRMWARE: OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33)
MODEM: ARRIS SURFBoard SB8200
ROUTER: Linksys WRT32X
USB NAS: Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
Chuckiebob
DD-WRT Novice


Joined: 11 Jan 2018
Posts: 7

PostPosted: Sat Aug 11, 2018 15:30    Post subject: Reply with quote
spuriousoffspring wrote:
Thanks! I'm sure your thread will benefit others.


Yes indeed. Thank you to all who contributed to this solution. I was playing around with different firmwares and wound up with both partitions not having stock Linksys firmware. I thought I was screwed. I followed your instructions and was able to flash back to Linksys, and then back to DD-WRT. For me, the grass wasn't greener on the other side. Thanks again! Cool
surfing
DD-WRT Novice


Joined: 01 Sep 2018
Posts: 14

PostPosted: Sun Sep 02, 2018 18:49    Post subject: mtd Flash Reply with quote
I was looking over your mtd instructions and had a question. Is it required to do a reboot (-r) on the first instance of mtd? This would save a boot and another wget of the image wouldn't it?

mtd -e linux write /tmp/linksysfw.img linux

mtd -e linux2 -r write /tmp/linksysfw.img linux2


It could be I am not fully understanding!
spuriousoffspring
DD-WRT Guru


Joined: 05 Apr 2017
Posts: 981
Location: Louisiana, USA

PostPosted: Sun Sep 02, 2018 22:06    Post subject: Reply with quote
It's not necessary to mtd write both partitions. With the stock firmware back on one partition you have your choice of upgrading the stock Venom image or upgrading to DD-WRT.
Both of which will overwrite the alternate partition.

_________________
DD-WRT Installation & Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117

WRT32X DD-WRT Installation Procedure
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=315569

IPVanish OpenVPN Client Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308565

FIRMWARE: OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33)
MODEM: ARRIS SURFBoard SB8200
ROUTER: Linksys WRT32X
USB NAS: Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
surfing
DD-WRT Novice


Joined: 01 Sep 2018
Posts: 14

PostPosted: Sun Sep 02, 2018 22:26    Post subject: mtdb Reply with quote
That makes more sense - thanks for clarifying. I read earlier where it was entered twice.
Sissmic
DD-WRT Novice


Joined: 30 Sep 2018
Posts: 1

PostPosted: Sun Sep 30, 2018 9:23    Post subject: Reply with quote
Thank you so much for the commands !
I bought a wtr32x on Amazon warehouse that comes with ddwrt....

I try so many ways and tutorials, but your post save me in a sec ! Smile
Goto page Previous  1, 2, 3, 4, 5  Next Display posts from previous:    Page 2 of 5
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT 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