Have you considered upgrading DD-WRT and then flashing Linksys firmware from GUI?
How? When I flash stock or a newer build of dd-wrt from partition 2, partition 1 won't boot. Basically, I can't use anything but the existing build of dd-wrt on partition 2.
Upgrade the DDWRT on you partition that boots and then try flashing Stock firmware ?
How?! Flashing a new build of dd-wrt from partition 2 flashes it to partition 1. Partition 1 won't boot no matter what I flash to it - stock, or any build of dd-wrt.
Another question to someone - how can I get the stock firmware to /tmp? FTP doesn't allow the root user to login, and other users can't access /tmp. I can't use wget, as there's no internet access from within dd-wrt like there is with OpenWrt.
Alternatively, could I run mtd -e linux (or is it linux1?)just to erase partition 1, and that might allow me to flash stock to it via the GUI in dd-wrt on partition 2?
Yes. It would be helpful if you were specific about which section I've apparently glossed over.
If it's about how to switch partitions, yes, I have done that via SSH. As soon as I direct it to boot partition 1, it fails and I have to power cycle it three times in order to boot from partition 2.
Joined: 08 May 2018 Posts: 14210 Location: Texas, USA
Posted: Thu Mar 26, 2020 21:05 Post subject:
You can force it to flash to the "good" partition to upgrade. Your only other option is serial recovery and flashing both partitions back to stock firmware. _________________ "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
You can force it to flash to the "good" partition to upgrade.
How?
When I flash it from the GUI, it doesn't report that the flash is unsuccessful. It simply doesn't boot to it when I manually restart it after the flash.
Like I said, I have no internet connection from within ssh, despite it being configured correctly. I'm not sure if that's typical of dd-wrt to not have internet access from within ssh.
Do NOT manually restart after a GUI flash, it does that for you automatically.
Consider a hard reset and reconfigure your settings, while powered on hold the red reset button for 10 seconds.
I left it 20 minutes last night and it didn't restart after the flash was completed. I checked via ssh and the uptime was the same.
I've tried resetting. The reset button doesn't work after powering on with partition 1 set, and resetting partition 2 simply resets partition 2 to factory defaults.
Are you saying that I should have internet access from within ssh if it's configured correctly?
Both partitions share the same nvram space for configuration.
If you can access the web on your computer, you should also be able to use wget.
OK, so I've reset partition 2 many times, so that should have reset partition 1. Partition 1 must have had a bad flash.
I'll have another go at configuring the internet. I use it as a NAS rather than a router, so I disabled DHCP, set a static IP in the same subnet, and set the gateway to 192.168.1.254, which is the IP of my 5G router.