Hello,
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.
My apologies, but what it TFTP going to do in this case? Once I perform the wget, the image is now stored in the /tmp directory. The problem is the write to memory, etc (mtd).
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 (1.0.0.168229).
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
2
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.
And why not? That is the default way of flashing an OEM firmware to a WRT1900AC series device in LEDE.
(the image checksum verification has changed so that LEDE sysupgrade does not accept the OEM image without -F. That has been discussed in several threads here)
Your own mtd output shows that in the mvebu WRT1900ACx series routers there is no "firmware" partition, so the generic advice about flashing with "mtd" to "firmware" simply does not work.
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.