dangowrt / owrt-ubi-installer

OpenWrt firmware installer for the Linksys E8450 aka. Belkin RT3200
GNU General Public License v2.0
393 stars 50 forks source link

Mtd3 seems likes its a backup of openwrt snapshot #86

Open ghost opened 2 years ago

ghost commented 2 years ago

So recently I flashed openwrt the using the guide provided here but I forgot to backup the mtd so I can revert to the original manufacturer u boot bootloader and firmware. Is there any way to revert a firmware without a backup or any tool or is someone has a backup?

-Thanks for your help.

dangowrt commented 2 years ago

The installer itself stores a backup of the previous bootchain (not the stock firmware itself, but that you can download easily from either vendor). Unless you have re-run the installer or otherwise completely wiped the flash, this is still going to be there. See instructions here on how to copy it from the device to your computer.

The files you now got are referred to as "minimal backup"

You may then follow the restore procedure

ghost commented 2 years ago

My mtd3 is 125mb but seems like its a copy of the openwrt snapshot bc everytime I restore to the vendor firmware it goes right to the openwrt login page. I even waited 5 mins for it it reboot after refreshing the mtds and then waited 5 mins for the power cycle.

dangowrt commented 2 years ago

@TuckerEck did you ever re-run the *installer.itb after you had initially flashed OpenWrt? If so, the "previous bootchain" in the boot_backup will be what ever is found in the flash at the time you run last run the installer.

huyz commented 1 year ago

@ghost It sounds like you did a full backup (https://github.com/dangowrt/owrt-ubi-installer#device-flash-complete-backup-procedure) after you had already installed OpenWrt. So unless I'm mistaken, that explains why mtd3 would be of OpenWrt, not the stock firmware (which you'll have to download from the vendor).

huyz commented 1 year ago

I wish the instructions had https://github.com/dangowrt/owrt-ubi-installer#device-flash-complete-backup-procedure at the top before the installation part. That way people wouldn't forget to backup the proper mtd3.

dangowrt commented 1 year ago

The thing is that you will hardly ever really need a complete backup including mtd3. As long as Belkin/Linksys provide their firmware files for download on their servers, you can as well just take the firmware from there and use only the partial backup of /dev/mtd3 the installer does and puts into boot_backup UBI volume.