Joined: 05 Apr 2017 Posts: 981 Location: Louisiana, USA
Posted: Mon Jul 30, 2018 23:16 Post subject:
If you haven't overwritten the stock partition you can switch back with the 3x power switch method or via Telnet / SSH commands.
For the WRT32X the commands are:
fw_printenv boot_part
* This will give a 1 or 2 fw_setenv boot_part 1
or
fw_setenv boot_part 2
* Use opposite number returned from first command.
EDIT: I forgot to include that the above commands are for while on the stock OpenWrt Venom firmware.
While on DD-WRT the commands are:
ubootenv get boot_part
then
ubootenv set boot_part 1
or
ubootenv set boot_part 2
If you have overwritten the stock firmware the steps are a bit more complex. This was posted a while back:
ghoffman wrote:
i've spent a number of hours over the past two weeks trying to get dd-wrt on and off a wrt32x. to summarize:
stock -> ddwrt works by gui (flashes other partition) AND by mtd write (summarized above; pick your partition)
stock-> openwrt/lede works by ssh and sysupgrade (probably works by gui but i didnt try)
openwrt -> stock works by ssh/mtd write.
ddwrt -> stock: i had to enable ssh, then flash both mtd5 and mtd7 partions with stock flat firmware file, AND erase nvram partition (mtd erase nvram), then power cycle router. i cant completely explain why, but i think the ddwrt nvram values make openwrt or stock firmware hang, and issing the 'reboot' command at the ddwrt command line re-writes nvram. anyway, only by completely getting rid od ddwrt could i get back to stock.
so: from stock, you can get lede on one partition and dd-wrt on the other.
from dd-wrt: you have to get rid of dd-wrt remanants everywhere to get back to stock or lede.
the quick way to get back to a 'clean' setup is from serial, using the 'run update_both_images' uboot command. i think by flashing both mtd5 and mtd7 with stock, and earsing nvram, this accomplishes the same thing, without serial access.
short story - it's currently hard to get from dd-wrt back to stock, but it can be done without serial access.
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
Last edited by spuriousoffspring on Tue Jul 31, 2018 4:22; edited 1 time in total
I haven't personally tried the aforementioned method. However, I can confirm the attached file does successfully flash via USB-TTL Serial Cable.
Unless you are absolutely sure of what you are doing I would not recommend going any further!
The safest approach may be to wait and see if Brainslayer can add a 'return to stock' feature in one of the next DD-WRT builds. _________________ DD-WRT Installation & Setup TUTORIAL http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117
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
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
Last edited by spuriousoffspring on Mon Sep 03, 2018 18:14; edited 1 time in total
Joined: 05 Apr 2017 Posts: 981 Location: Louisiana, USA
Posted: Tue Jul 31, 2018 9:03 Post subject:
I just re-read @ghoffman's instructions and I forgot he says to flash both partitions.
After the first commands above you would also need to enter:
mtd -r -e kernel2 write venom.img kernel2
* You will have to copy the venom.img file with SCP again beforehand as it is erased after each reboot. _________________ DD-WRT Installation & Setup TUTORIAL http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117
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
Thank you
After both commands I should reboot the router ?
or I need to reboot it after each command and do it again for second kernel ?
Can I keep dd-wrt in 1 partition and factory in other, and switch between them ?
Joined: 05 Apr 2017 Posts: 981 Location: Louisiana, USA
Posted: Tue Jul 31, 2018 10:57 Post subject:
That's what the -r in the command is for. However, if the router does not reboot then just enter the command reboot _________________ DD-WRT Installation & Setup TUTORIAL http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117
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
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
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