I'm having a problem reverting from OpenWRT (LEDE 17.01.2) back to the default Linksys firmware for my WRT1900v1. From the wiki, it indicates to the do the following (I have edited with my commands):
Could not open mtd device: firmware
Can't open device for writing!
Does anyone have any suggestions on how to get my unit back to the factory firmware? I am also confused if I have to do anything with the flash.layout (hopefully not - hopefully it is as simple as downloading the correct image as I have attempted above)
Since my device previously had DDWRT, I do not believe that the original firmware (original Linksys or otherwise) is on the different partitions.
Well there was previously DDWRT and then that was wiped out and replaced by LEDE. Is there any way to check to see what is currently in the partitions before I perform this command? I don't need to have different firmware (LEDE, DDWRT, default) stored in the different partitions - I just want to get back to the default firmware.
and they both seem to disagree with the documentation on the wiki.
At any rate, have you tried booting the other partition, either programmatically or with the power switch. If dd-wrt boots on the other partition you could try to load OEM from there; if memory serves there was some special image used to accomplish that, but I have not been there in many years.
Or, if you have a TTL serial cable. I am not sure about tftp with this, I think you actually have to set the IP, but maybe there is a default.
Low and behold, in partition 2 was the original Linksys EOM firmware (188.8.131.52229).
My question is this, I should be able to easily upgrade from the Linksys OEM firmware to DDWRT, but should I go back to LEDE first and do any type of factory reset, restore, etc so that there are no remnants left over? The DDWRT will probably over-write the LEDE (assuming I perform the upgrade from the Linksys web GUI).
Ok, here is the latest update. Thanks to everyone, I was able to revert both of my WRT1900ACv2 back to the OEM firmware (simply by switching partitions). Now I am focusing back to focusing on my WRT1900ACv1 device. When I check the active partition, it is currently:
root@LEDE:~# /usr/sbin/fw_printenv -n boot_part
When I try numerous times to switch the partition to '1' by the power switch (which worked on both of my v2 devices), it always stays in partition 2. The leads me to believe that there is only one partition with firmware in it (partition 2) with.
That did the trick! There was a scary moment... while pinging the gateway, I received "PING: transmit failed. General failure" error messages to the screen for 10 minutes after performing the upgrade. However, after power cycling the device, it booted in the Linksys OEM firmware.