OpenWrt Forum Archive

Topic: Need help unbricking a MR3020...

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

Hey guys,

My first post here on openWRT forums. Hoping some of you guys can give me some input on how to solve the problem I have been having.

I have recently acquired a MR3020 for airplay purposes via USB audio. While trying to flash a firmware via Windows/Firefox after rebooting the device does not seem to be working or accessible via telnet.

Entering failsafe openWRT works, the LED flashes and I am able to enter telnet to 192.168.1.1. However the problem is when I use the command passwd it is a "read-only" file. Now when I try the command mount_root, it says invalid.

I am stuck on how to restore a factory firmware on the device. I want to get it back to the original firmware if anything. Or get it to work.

Not sure where I messed up but any input would be greatly appreciated!

Much thanks.

It doesn't sound bricked. Have you tried ssh root@192.168.1.1 with password?

(Last edited by Xotic750 on 3 May 2016, 14:28)

I've never set a password before... Is there a default password? I have no tried to SSH yet. I am using a windows machine, just got ubuntu dual-boot to my other laptop.

Someone else had a problem with connecting with ssh in the threads and he had to disable the Windows firewall before he could connect.

(Last edited by Xotic750 on 3 May 2016, 14:32)

Xotic750 wrote:

Someone else had a problem with connecting with ssh in the threads and he had to disable the Windows firewall before he could connect.

Using my linux machine I still couldn't SSH or Telnet in regular operation mode.
In failsafe, I can only Telnet and not SSH.

What does nmap 192.168.1.1 show when you device is in regular operation?

When I run nmap to the MR3020, it says hosts seems down.

I think you can transfer  15.05.1 image to your router and use sysupgrade to flash

aru wrote:

I think you can transfer  15.05.1 image to your router and use sysupgrade to flash

Not sure how I can transfer the new image and flash over...
Is there an easier way that doesn't require me to type all this random stuff into the terminal to get it going?
I tried the netcat solution on windows and it doesn't work. Not even sure what else I can do....
Perhaps there's a way on Linux?

put the image on your linux box web server and use wget to fetch.
And nc is also a nice way.

aru wrote:

put the image on your linux box web server and use wget to fetch.
And nc is also a nice way.

Any step by step guide to do that?
Sorry but I am new to the whole linux OS and openWRT stuff.

ichiban wrote:

Any step by step guide to do that?
Sorry but I am new to the whole linux OS and openWRT stuff.

Connect MR3020 wan port to another working router lan port, and your computer connect to MR3020 lan port.   login to MR3020 by telnet, execute following commands
opkg update
opkg install luci
/etc/init.d/uhttpd start

(Last edited by aru on 4 May 2016, 03:51)

aru wrote:
ichiban wrote:

Any step by step guide to do that?
Sorry but I am new to the whole linux OS and openWRT stuff.

Connect MR3020 wan port to another working router lan port, and your computer connect to MR3020 lan port.   login to MR3020 by telnet, execute following commands
opkg update
opkg install luci
/etc/init.d/uhttpd start

Can you update the router in the failsafe mode? Or does it have to be in Normal Operation mode, because in Normal Operation mode the MR3020 cannot be found or host is unreachable.

And the MR3020 does not have a lan-port. It is only a single port mini-router...

(Last edited by ichiban on 4 May 2016, 05:17)

ichiban wrote:

Can you update the router in the failsafe mode? Or does it have to be in Normal Operation mode, because in Normal Operation mode the MR3020 cannot be found or host is unreachable.

And the MR3020 does not have a lan-port. It is only a single port mini-router...

OK. You can flash firmware in failsafe mode.
https://wiki.openwrt.org/doc/howto/generic.failsafe
See the latest one: Flash new firmware in failsafe mode

cat yourfirmware.bin | pv -b | nc -l -p 3333

nc linux.machine.ip.192.168.1.2 3333 > /tmp/yourfirmware.bin

These commands don't work in terminal on my ubuntu install.

Anyone help?

aru wrote:
ichiban wrote:

Can you update the router in the failsafe mode? Or does it have to be in Normal Operation mode, because in Normal Operation mode the MR3020 cannot be found or host is unreachable.

And the MR3020 does not have a lan-port. It is only a single port mini-router...

OK. You can flash firmware in failsafe mode.
https://wiki.openwrt.org/doc/howto/generic.failsafe
See the latest one: Flash new firmware in failsafe mode

I tried NC via windows and when I type the commands it doesn't do anything.
There is nothing that shows up on the prompt and the router does nothing.
Is it bricked?

Do not panic, it is actually pretty hard to brick a router, unless you unplug it in the middle of flashing or do anything bordering stupid. If it can load to the point you can telnet in, even in failsafe, that is a pretty good sign that it is still functioning, even if the file system may be corrupted or something.

You may want to try this, before going crazy with the failsafe. It was quite a while ago when I flashed my TL-MR3020 with 12.09, if I remember correctly it will straight away provide a DHCP on its sole LAN port when it went up after initial flashing. Pretty sure you've tried this, but if you haven't, please do. (In case I didn't make myself clear: switch your IPv4 setting to 'obtain IP address automatically')

After initial flashing, the device should be accessible through web GUI http://192.168.1.1 or SSH. If you use Windows, use putty or tutty or other SSH client of your choice (plenty of them around, just google it). I don't think normal mode  will be available via telnet.

If all these did not work... then we start reading the failsafe article.

wiputc wrote:

After initial flashing, the device should be accessible through web GUI http://192.168.1.1 or SSH. If you use Windows, use putty or tutty or other SSH client of your choice (plenty of them around, just google it). I don't think normal mode  will be available via telnet.

If all these did not work... then we start reading the failsafe article.

I've tried all this... been trying to ping 192.168.1.1 and no luck. The only way to access the router is via failsafe mode via 192.168.1.1 when ipv4 settings set to 192.168.1.2.

Does anyone have a proper step-by-step guide on how to flash a firmware in failsafe mode for a MR3020?
I am trying the commands that are listed in the failsafe generic article and it doesn't seem to do anything.

http://i.imgur.com/E21PYFF.png

(Last edited by ichiban on 9 May 2016, 16:19)

Is the procedure that you are following?

https://wiki.openwrt.org/doc/howto/gene … lsafe_mode

NOTE: there is a bug report that sometimes firstboot or mtd-r erase rootfs_data may not work and "hangs". If that happens then the files can be deleted using the "rm…" method. The overlay is "on top" of the SquashFS so deleting overlay files just leaves the original SquashFS files showing.

from

Wiping JFFS2 file system ('Factory reset' to default config)

This procedure is safe (it will restore the default setup and not brick your router).
It will clear the JFFS2 partition, resetting all custom settings and removing all installed packages, logs, dumps, and temp files, the OpenWrt equivalent of a factory reset. If you need any of these, take a backup to some other device in failsafe mode before doing this.
Run mount_root first (see above) to mount the JFFS2 partition. Once the JFFS2 partition is mounted for read/write, use any of these commands to erase the files on it, which resets the router:

firstboot
mtd -r erase rootfs_data (this will reboot the device as part of the process)
rm -r /overlay/*  (or /overlay/upper/* on some routers)
NOTE: there is a bug report that sometimes firstboot or mtd-r erase rootfs_data may not work and "hangs". If that happens then the files can be deleted using the "rm…" method. The overlay is "on top" of the SquashFS so deleting overlay files just leaves the original SquashFS files showing.

followed by reboot if the rm method is used?

Finished/reboot - If you are done with failsafe mode use reboot to reboot

Xotic750 wrote:

Is the procedure that you are following?

https://wiki.openwrt.org/doc/howto/gene … lsafe_mode

NOTE: there is a bug report that sometimes firstboot or mtd-r erase rootfs_data may not work and "hangs". If that happens then the files can be deleted using the "rm…" method. The overlay is "on top" of the SquashFS so deleting overlay files just leaves the original SquashFS files showing.

from

Wiping JFFS2 file system ('Factory reset' to default config)

This procedure is safe (it will restore the default setup and not brick your router).
It will clear the JFFS2 partition, resetting all custom settings and removing all installed packages, logs, dumps, and temp files, the OpenWrt equivalent of a factory reset. If you need any of these, take a backup to some other device in failsafe mode before doing this.
Run mount_root first (see above) to mount the JFFS2 partition. Once the JFFS2 partition is mounted for read/write, use any of these commands to erase the files on it, which resets the router:

firstboot
mtd -r erase rootfs_data (this will reboot the device as part of the process)
rm -r /overlay/*  (or /overlay/upper/* on some routers)
NOTE: there is a bug report that sometimes firstboot or mtd-r erase rootfs_data may not work and "hangs". If that happens then the files can be deleted using the "rm…" method. The overlay is "on top" of the SquashFS so deleting overlay files just leaves the original SquashFS files showing.

followed by reboot if the rm method is used?

Finished/reboot - If you are done with failsafe mode use reboot to reboot

The RM method did not work. So I tried the MTD method.
Even after the reboot the router cannot be accessed via 192.168.1.1. It always says the host is unreachable.
The only way to still access the router still is via the failsafe mode.

http://i.imgur.com/aMZ5DSj.png

The instructions say

Run mount_root first

I don't see that in your screenshot?

Xotic750 wrote:

The instructions say

Run mount_root first

I don't see that in your screenshot?

It doesn't matter, I've tried it before. Tried it even running the mtd command. After reboot the router doesn't do anything. 192.168.1.1 is still unreachable.
http://i.imgur.com/gPoxqah.png

Sidenote to ichiban: Why are you taking pictures of your screen, when simple copy & paste (+usage of the <code> tag) would be sufficient?

Coupled with BB @ Bleeding Edge.

This will all end in tears (but more interesting than watching paint dry).