How to restore TP-Link MR-3420 V5 to factory firmware

How to restore TP-Link MR-3420 V5 to factory firmware

Comments 17

If you’ve upgraded your TP-Link MR-3420 V5 to OpenWRT firmware, you might find that you can no longer flash back the original system firmware. Trying to flash the official firmware from TP-Link results in a “soft brick” (all lights light up and then WAN lights up orange and the router reboots).

If you already have a soft-bricked router, re-flash OpenWRT using a TFTP server, like shown in my tutorial here.

Log in to OpenWRT with SSH (192.168.1.1, user root, password empty or whatever you set) and execute the following commands:

cd /tmp
wget http://95.179.196.143/milankragujevic-com-uploads-HTTPonly/mr3420v5-recovery/code.bin -O code.bin
dd if=code.bin of=tplink.bin skip=257 bs=512
mtd -e firmware -r write /tmp/tplink.bin firmware

Your router will reboot and will be flashed with factory firmware.

In the SSH console your log should look something like this:

[email protected]:/tmp# wget http://165.227.135.2/mr3420v5-recovery_code.bin -O code.
bin
Downloading 'http://165.227.135.2/mr3420v5-recovery_code.bin'
Connecting to 165.227.135.2:80
Writing to 'code.bin'
code.bin             100% |*******************************|  7936k  0:00:00 ETA
Download completed (8126976 bytes)
[email protected]:/tmp# dd if=code.bin of=tplink.bin skip=257 bs=512
15616+0 records in
15616+0 records out
[email protected]:/tmp# mtd -e firmware -r write /tmp/tplink.bin firmware
Unlocking firmware ...
Erasing firmware ...

Writing from /tmp/tplink.bin to firmware ...  [w]

Rebooting ...

After the router reboots, it is very important to reset it to factory default settings, or else you might have problems after rebooting it.

Press and hold the WPS/Reset button until the router reboots, then open http://192.168.1.1/ and follow the quick setup wizard.

If you encounter any problems, please comment below and I’ll try to help you.

0
❤️
0
👍
0
😲
0
😢
0
😠
0

Comments (17)

Please be civil when commenting. Think before writing, don't spam, self promote, bully, harass or harm anyone. Please read the Comment Policy before posting. Comments are moderated.
See all 17 comments

adnanshaon

adnanshaon

I can restore my router using this process. Thanks . Thank you vary Much. This process really works. But I have to use WinScp. With WinScp i Can restore. Thanks again.

Reply · 6 months ago · #518

Vaclav

Vaclav

Hi Milan,

what is please the latest link to the bin file I cannot access it here

wget http://136.244.102.68/mr3420v5_recovery_code.bin -O code.bin

neither

wget http://95.179.196.143/milankragujevic-com-uploads-HTTPonly/mr3420v5-recovery/code.bin -O code.bin

Can you please provide the valid link or the file?

Thanks in advance

Reply · 8 months ago · #437

Vaclav

...replying to Milan Kragujevic

Vaclav

Thank you very much you saved my day!

PS: I just copied the file directly to /tmp using WinSCP, easier than to look for free hosting :-)

Reply · 8 months ago · #439

NS Sreenivas

NS Sreenivas

Thank you very much for your note on restoring tp-linking router. It worked perfectly and saved me in throwing away the router. I had installed Openwrt and trying to roll it back to factory firmware and then i got into this soft brick status. Really appreciate it your solution.

After rebooting the router, typing 192.168.1.1. still took me to url http://192.168.1.1/cgi-bin/luci and it is showing a garbled screen with save, login buttons and with No / yes button below to reboot. Below these buttons, it shows as tp-link router.

Then i tried http://tplinkwifi.net and it took me tp-link router page correctly and there i could setup the router and upgrade it to latest version

Thank you very much

Reply · 10 months ago · #384

Handoko Tejo Atmoko

Handoko Tejo Atmoko

I have some problem with Dimas Rio Pridana.

hi, by following tutorial finally i can flash the stock factory firmware, but i got problem when trying to login router web setting. i dunno why the router address always redirect to http://192.168.1.1/cgi-bin/luci and when i trying to enter the password nothing happened. i also reset the router by pressing the reset button after the flash complete to make sure that the router back to original factory setting. can u help me please, thanks :)

Sorry i just copy paste, because i have same problem with her.

Reply · 11 months ago · #356

Handoko Tejo Atmoko

...replying to Handoko Tejo Atmoko

Handoko Tejo Atmoko

Thanks, it's working for me now :)

Reply · 9 months ago · #404

Rafy772

...replying to Handoko Tejo Atmoko

Rafy772

I don't know if your problem is already solved by yourself but in case not try to login to the router using incognito mode or you could also try clearing all your browser history and cache.

Reply · 10 months ago · #373

Dimas Rio Pradana

Dimas Rio Pradana

hi, by following d362ec8de.png tutorial finally i can flash the stock factory firmware, but i got problem when trying to login router web setting. i dunno why the router address always redirect to http://192.168.1.1/cgi-bin/luci and when i trying to enter the password nothing happened. i also reset the router by pressing the reset button after the flash complete to make sure that the router back to original factory setting. can u help me please, thanks :)

Reply · 1 year ago · #329

Teguh Wiryanto

Teguh Wiryanto

i was succesfully do that, but i failed to flash became openwrt again, tftpd not work again, any solution?

Reply · 1 year ago · #240

Amatsukaze

Amatsukaze

hi :)
i try :
wget http://95.179.196.143/milankragujevic-com-uploads-HTTPonly/mr3420v5-recovery/code.bin -O code.bin
but get error : failed: Connection refused.,

can you help me? thanks

Reply · 1 year ago · #213

Milan Kragujevic

...replying to Amatsukaze

Milan Kragujevic Admin

Hi, try this:

wget http://136.244.102.68/mr3420v5_recovery_code.bin -O code.bin

Sorry for the mistake, I changed server IP.

If you encounter more issues, download file to PC via this link: https://milankragujevic.com...

Then, host it somewhere over HTTP and download that to the router (the router cannot download HTTPS content, and my domain is HTTPS-only. )

Reply · 1 year ago · #214

Gregor Leban

Gregor Leban

[email protected]:~# wget https://milankragujevic.com....
bin -O code.bin
wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.
[email protected]:~#

opkg install libustream-mbedtls

Writing to 'code.bin'
code.bin 99% |****************************** | 7932k - stalled -Connection error: Connection timed out
[email protected]:~# dd if=code.bin of=tplink.bin skip=257 bs=512
dd: can't open 'tplink.bin': No space left on device
[email protected]:~# mtd -e firmware -r write /tmp/tplink.bin firmwar

What to do?

Reply · 1 year ago · #118

Milan Kragujevic

...replying to Gregor Leban

Milan Kragujevic Admin

reset to factory OpenWrt defaults, then FIRST cd to /tmp, which is ramdisk, so you don't run out of space. Also it is advisable to download the file over HTTP instead of SSL because then you don't need libustream-mbedtls.

Reply · 1 year ago · #122

Gregor Leban

...replying to Milan Kragujevic

Gregor Leban

Thanks!

cd /tmp

I uploaded to http if anyone will need :)

wget http://krneki.6te.net/code.bin -O code.bin
dd if=code.bin of=tplink.bin skip=257 bs=512
mtd -e firmware -r write /tmp/tplink.bin firmware

Reply · 1 year ago · #131

Gregor Leban

...replying to Milan Kragujevic

Gregor Leban

Hi, do you know where can I upload file to http?

Reply · 1 year ago · #123

Milan Kragujevic

...replying to Gregor Leban

Milan Kragujevic Admin

Anywhere, get a free hosting...

Reply · 1 year ago · #125


Scroll to top