OpenWrt Forum Archive

Topic: Simple fast way to revert to stock firmware

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

Here is a fast and simple way to put your stock firmware back on your router from any 3rd party firmware.  I haven't found anything that is simple and fast so I put this together and this should only take you a couple of mins to do.

I have done this with the following routers and firmwares with no problems

TP Link TL-WR1034ND OpenWRT/MLPPP, OpenWRT and DD-WRT
TEW-632BRP v1.1       OpenWRT and DD-WRT

1. download latest firmware for your routers (makes it easy to rename it to something simple like tplink.bin)
2. download winscp (google it its FREE)
3. reset your router to default settings with a hard reset
4. login to your router 192.168.1.1 with the SCP protocol
5. upload your firmware to the /tmp directory (do not change directory!)
6. push ctrl+t or click on commands menu than on open terminal
7. type this command in:

        mtd -r write firmware.bin firmware  (change firmware.bin to your bin)

*** This will install the firmware and will reboot your router and than you will get a message in winscp that you are not connected to the router this is normal and good.  Once the router has been rebooted close winscp and continue

8. go back to your browser and login to your router with the stock firmware
9. IMPORTANT now use the stock firmware webgui upgrade option to rewrite the stock firmware or you can have the option to switch to another 3rd party firmware, but you MUST write the firmware again with the webgui
10. All DONE!!

Enjoy!

(Last edited by phukit on 23 Jan 2012, 18:06)

Thanks, works in Tp-link TL-MR3220

I was trying to revert from openwrt back to stock firmware on my Netgear WNDR3800.

I have flashed the firmware the way you have described but after rebooting my the router the power led does not stop blinking and a can not connect to the router anymore sad

Hi

I am new to openwrt and tried it out but find that my wifi speed slowed down and that it has a rather complicated usb support. So I wanted to switch back to firmware bzw. try different software as well to compare it to the performance with openwrt. I own a Netgear WNDR 3800 as well and when I lock into the Router via Winscp I am able to copy the image File of the original Netgear firmware into the tmp folder but the Comand :

mtd -r write WNDR3800.img (via Comander)  is not working.

what am I doing wrong?

Iam runing the squashfs-factory OpenWrt Backfire 10.03.1 image right now.

I really would appreciate some help. Thanks

Marcusza wrote:

Hi
mtd -r write WNDR3800.img (via Comander)  is not working.

not for Marcusza, but for the one who reads it:

1. erase firmware partition (be patient, it's a long process):
# mtd -r erase firmware

2. after the router reboots, you will see that the power led is blinking. it's ok.

3.use standard method for routers with tftp server to upload stock firmware.
f.e. with gnu/linux and atftp:
$ sudo ip route add 192.168.1.1 dev eth0
$ afttp -p --option "timeout 1" --no-source-port-checking -l <file with firmware> 192.168.1.1

Hi

New to this so please bare with me.

Router is a Lynsys wt54g2 v4.  This was flashed with OpenWRT but I do want to try other builds so need to flash back to original firmware.  Finally found this as it is no longer on Lynsys site.

I have tries this method but continually get an error message saying it cant open the file with error code 0.  Logged in as root etc any ideas ?

phukit wrote:

*** This will install the firmware and will reboot your router and than you will get a message in winscp that you are not connected to the router this is normal and good.  Once the router has been rebooted close winscp and continue

Please, help!
This didn't happen. I followed every step and now my router is bricked/looping!

I turn it on and the lights are blinking like crazy.
If I press the reset button for a few seconds, it is recognized by the computer for 10 seconds, and then it disappears again!
It became unstable for me to access and insert codes.
I can't believe this! I bought this thing today!
You can find me faster sendind me an email: lwjacob@hotmail.com

which router?

phukit wrote:

Hi,

Here is a fast and simple way to put your stock firmware back on your router from any 3rd party firmware.  I haven't found anything that is simple and fast so I put this together and this should only take you a couple of mins to do.

I have done this with the following routers and firmwares with no problems

TP Link TL-WR1034ND OpenWRT/MLPPP, OpenWRT and DD-WRT
TEW-632BRP v1.1       OpenWRT and DD-WRT

1. download latest firmware for your routers (makes it easy to rename it to something simple like tplink.bin)
2. download winscp (google it its FREE)
3. reset your router to default settings with a hard reset
4. login to your router 192.168.1.1 with the SCP protocol
5. upload your firmware to the /tmp directory (do not change directory!)
6. push ctrl+t or click on commands menu than on open terminal
7. type this command in:

        mtd -r write firmware.bin firmware  (change firmware.bin to your bin)

*** This will install the firmware and will reboot your router and than you will get a message in winscp that you are not connected to the router this is normal and good.  Once the router has been rebooted close winscp and continue

8. go back to your browser and login to your router with the stock firmware
9. IMPORTANT now use the stock firmware webgui upgrade option to rewrite the stock firmware or you can have the option to switch to another 3rd party firmware, but you MUST write the firmware again with the webgui
10. All DONE!!

Enjoy!

can you upload a video tutorial about this process .?

phukit wrote:

Here is a fast and simple way to put your stock firmware back on your router

I have done this with the following routers and firmwares with no problems

TP Link TL-WR1034ND OpenWRT/MLPPP, OpenWRT and DD-WRT
TEW-632BRP v1.1       OpenWRT and DD-WRT

Thanks for taking the time to outline the process with very simple and easy steps, but I have a bricked failure. Yes, I knew the risks. smile

Just thought I would add a post as the HooToo Nano TM02 with OpenWrt is bricked. Not blaming you, just a warning to anyone who tries it. Not to try it - that is.

WinSCP got part way through and returned an error, "failed to erase file." Probably a lack of internal memory thing. Still, for 18-bucks I am not crying as the USB access with OpenWrt was not working, so no great shakes.

I tried op's method but could not get winscp to login to the router. Winscp asks for a password which I do not have. I did reset the openwrt to default before doing that. So I do not know what password it is asking.
Can someone help me with that?

tdot wrote:

I tried op's method but could not get winscp to login to the router. Winscp asks for a password which I do not have. I did reset the openwrt to default before doing that. So I do not know what password it is asking.
Can someone help me with that?

login to router via telnet and set password (type passwd command). I recommend you use putty telnet ssh client software

phukit wrote:

1. download latest firmware for your routers (makes it easy to rename it to something simple like tplink.bin)
2. download winscp (google it its FREE)
3. reset your router to default settings with a hard reset
4. login to your router 192.168.1.1 with the SCP protocol
5. upload your firmware to the /tmp directory (do not change directory!)
6. push ctrl+t or click on commands menu than on open terminal
7. type this command in:

        mtd -r write firmware.bin firmware  (change firmware.bin to your bin)

*** This will install the firmware and will reboot your router and than you will get a message in winscp that you are not connected to the router this is normal and good.  Once the router has been rebooted close winscp and continue

8. go back to your browser and login to your router with the stock firmware
9. IMPORTANT now use the stock firmware webgui upgrade option to rewrite the stock firmware or you can have the option to switch to another 3rd party firmware, but you MUST write the firmware again with the webgui
10. All DONE!!

Enjoy!

Has this info made it into the wiki? If yes: where? if no: when will you add it?

frietpan wrote:

Has this info made it into the wiki? If yes: where? if no: when will you add it?

Unless you want to keep bricking Tp-Link routers
Tp-Link routers you need a strpped file 1043 has stripped files on the web but not the rest of the models.
Here 2 pages with stripped firmware ftp://tplink-forum.pl/orgin_bez_boot/
http://www.friedzombie.com/tplink-stripped-firmware/
If you have LuCi from there

(Last edited by danymarc on 8 Sep 2015, 22:07)

danymarc wrote:
frietpan wrote:

Has this info made it into the wiki? If yes: where? if no: when will you add it?

Unless you want to keep bricking Tp-Link routers
Tp-Link routers you need a strpped file 1043 has stripped files on the web but not the rest of the models.
Here 2 pages with stripped firmware ftp://tplink-forum.pl/orgin_bez_boot/
http://www.friedzombie.com/tplink-stripped-firmware/
If you have LuCi from there

I just get tired trying to figure out, how to back to the original firmware of my TL-MR3220 v2. I just download the stripped firmware from the second site (updated today) and put it into my router. Flash again from the original firmware upgrade menu, and voilá, just like the first time!

By the way, anyone knows how to build a firmware just to use the USB 2.0 port on this router, because, the openwrt firmware isn't allowing to install the basic packages to make an extroot there because there is very few space available to store.

Thank you very much for the tip!

(Last edited by m.aguirre.g on 25 Dec 2015, 08:47)

Hi
I have a Vizio xwr100 run on openwrt-ar71xx-generic-xwr100-squashfs-sysupgrade. The new platform is hard for me to config and connection is not stable. I wish to go back to my stock firmware. Could anyone help me?
I am newbie so do not much about flashing. Please guide me to revert to stock firmware.

m.aguirre.g wrote:

By the way, anyone knows how to build a firmware just to use the USB 2.0 port on this router, because, the openwrt firmware isn't allowing to install the basic packages to make an extroot there because there is very few space available to store.

You can compile your own firmware from scratch, but if you only want to remove/add packages you may want to look up OpenWrt Image Builder.

Work like a charm with my TL-WR741ND. Nice tutorial phukit.

I recomend use mobaXterm it have SCP and SHH plus it is free for personal use.

Worked for my TP-Link WR841ND v9 (on the back it says 9.2) with a slight difference: after the reboot at step no. 7, my router IP adress became 192.168.0.1 instead of remaining at the old 192.168.1.1.

I don`t understand step no. 9 procedure. What`s the importance of that? After reverting back to stock firmware I tried doing the software upgrade of the router, but it gave an error: "File name too long".
According to TP-Link website, my router has the latest version of official firmware.

Cristian wrote:

Worked I don`t understand step no. 9 procedure. What`s the importance of that?

Simple, step #1 is missing info. as you can read on post #3 he bricked his router, why, cause he didn't use a firmware without boot, if you have a 1043 and some others models, you get away with step #1 i.e. if you have like a 741 V4 you will brick it.
to answer your post, if you go back to stock with firmware without boot, you must do step #9.
If you read my previous post there is a link to stripped (or no boot) firmware, using this link for downloading your firmware would be the safest way to go back to stock
In case your router is not on those 2 links, in this  link, is the way to strip firmware http://www.gargoyle-router.com/phpbb/vi … amp;t=4816 this is the missing line dd if=orig.bin of=tplink.bin skip=257 bs=512

(Last edited by danymarc on 7 Jul 2016, 18:26)

Using Netgear WNDR3400v2.  Flashed OpenWrt Barrier Breaker 14.07 r42625.  I have had problems with it so I am looking to go back to stock.  I am following the instructions at the top of this post.  When I get to step 7, I have a problem.  When I execute "mtd -r write firmware.chk firmware"  (note: the netgear names it's files with a chk extension.  I renamed my file to be firmware.chk)  I get a response of

   Please specify the correct file or use -f to force.
   Image check failed.

I am leery of using the -f option.  Thoughts?

Also, I am curious about this and the tftp process.  This may be off topic, but the tftp route seems to simply upload a file.  What makes it start the firmware update?  Why can't the scp command work similarly by putting it into the same place as tftp?

The discussion might have continued from here.