OpenWrt Forum Archive

Topic: Problem with TP-MR3020. After Failsafe mode whats next?

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

Hi, after trying to install OpenWRT I've ran into some confusions and now I cannot connect anymore to the MR3020 using LAN. After searching hours on the net I come to the conclusion that I need to shout for help.
The MR3020 ethernet LED is not going ON and I am not able to connect to the device. Also there are no IPv4 Default Gateway IP. As you can see in the picture below.

http://i347.photobucket.com/albums/p450/resistancejav/TP%20Link/Afteripsetting4.jpg

After setting up a Satic IP. I was able to set the MR3020 in Failsafe mode and Telnet to the device using Putty with the ethernet cable directly connected to the PC.

http://i347.photobucket.com/albums/p450/resistancejav/TP%20Link/Afteripsetting2.jpg

I have tried the code mount_root with no succes. And the output is:

http://i347.photobucket.com/albums/p450/resistancejav/TP%20Link/Afteripsetting3.jpg

I have tried also Firstboot also with no success. And the output is:

http://i347.photobucket.com/albums/p450/resistancejav/TP%20Link/Afteripsetting5.jpg

Hopefully someone can help me. In advance many thanks for any help on this issue.

Now reboot your mr3020, see if you can telnet into it after normal bootup.

Strange, it looks like that you have an OpenWrt indeed, but it is missing some fundamental pre-init scripts and that  the jffs2 partition is not there.

If possible, try to reinstall the Attitutde Adjustment Beta 2 squashfs-factory (not jffs2 or sysupgrade) from (recommended) :
http://downloads.openwrt.org/attitude_a … actory.bin

Alternatively, you can try the less stable trunk snapshot:
http://downloads.openwrt.org/snapshots/ … actory.bin

The way to proceed is to get one of these files on your host PC and make it available to the MR3020 either by setting up an HTTP or FTP server on your PC, telnet to the MR3020 as you did, then:

# cd /tmp
# wget http://192.168.1.2/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
# sysupgrade -n openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

or

# cd /tmp
# wget ftp://192.168.1.2/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
# sysupgrade -n openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

Where "192.168.1.2" is your PC own IP static address. You can use the tab key to complete the long name smile

If everything is ok, the MR3020 should reboot automatically, and provide a telnet at 192.168.1.1, where you can change the root password and reboot to get access to the router using SSH as usual.

If you used the recommended AA beta 2 image, you should then have the LuCI admin web interface at http://192.168.1.1, where you can set up networking as you like.

Hope it helps!

EDIT: you should be able to use a single "sysupgrade" command without prior downloading the file with "wget", but this way, you are sure that you file is transfered onto the router!

(Last edited by Squonk on 4 Nov 2012, 15:48)

johan666 wrote:

Now reboot your mr3020, see if you can telnet into it after normal bootup.

Thanks for the reply johan666. I tried that several times and it doesn't connect. As I stated above the Ethernet connectivity LED on the TP-MR3020 doesn't go ON.

javresistance wrote:

Thanks for the reply johan666. I tried that several times and it doesn't connect. As I stated above the Ethernet connectivity LED on the TP-MR3020 doesn't go ON.

Then in failsafe mode,
after used "mount_root", issue command : rm -rf /overlay/etc
then reboot

Squonk wrote:
# cd /tmp
# wget http://192.168.1.2/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
# sysupgrade -n openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

wait a minute, noob question, why sysupgrade a factory image???

also, I always have seen flashing factory images with "mtd -r write blablabla firmware", what's the difference? isn't sysupgrade "complicated", and mtd more "complete" flashing (maybe better with the OP strange situation?)

Thanks

(Last edited by nebbia88 on 4 Nov 2012, 19:01)

Squonk wrote:

Strange, it looks like that you have an OpenWrt indeed, but it is missing some fundamental pre-init scripts and that  the jffs2 partition is not there.

If possible, try to reinstall the Attitutde Adjustment Beta 2 squashfs-factory (not jffs2 or sysupgrade) from (recommended) :
http://downloads.openwrt.org/attitude_a … actory.bin

Alternatively, you can try the less stable trunk snapshot:
http://downloads.openwrt.org/snapshots/ … actory.bin

The way to proceed is to get one of these files on your host PC and make it available to the MR3020 either by setting up an HTTP or FTP server on your PC, telnet to the MR3020 as you did, then:

# cd /tmp
# wget http://192.168.1.2/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
# sysupgrade -n openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

or

# cd /tmp
# wget ftp://192.168.1.2/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
# sysupgrade -n openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

Where "192.168.1.2" is your PC own IP static address. You can use the tab key to complete the long name smile

If everything is ok, the MR3020 should reboot automatically, and provide a telnet at 192.168.1.1, where you can change the root password and reboot to get access to the router using SSH as usual.

If you used the recommended AA beta 2 image, you should then have the LuCI admin web interface at http://192.168.1.1, where you can set up networking as you like.

Hope it helps!

EDIT: you should be able to use a single "sysupgrade" command without prior downloading the file with "wget", but this way, you are sure that you file is transfered onto the router!

Thanks for the reply Squonk.
I forgot to mention. The way I'm connecting in Failsafe mode to the TP-MR3020 is directly connected with the Ethernet cable to the Laptop. Wireless on my Laptop is turned on and I'm connected to my ADSL wireless router wirelessly. Internet seems to be working when I open the browser, but when I try what you suggested in FTP and HTTP it doesn't connect and keeps trying until it gives up. See the picture below.

http://i347.photobucket.com/albums/p450/resistancejav/TP%20Link/connecting1.jpg

http://i347.photobucket.com/albums/p450/resistancejav/TP%20Link/connecting2.jpg

Is there a way to install the .bin file directly from my PC without connecting to the internet?

Here is the dmesg for info:

root@(none):/# dmesg
[    0.000000] Linux version 3.3.8 (matze@debian-dev) (gcc version 4.6.3 2012020                                                                             1 (prerelease) (Linaro GCC 4.6-2012.02) ) #4 Sun Sep 2 10:00:10 CEST 2012
[    0.000000] MyLoader: sysp=7ab7c29c, boardp=07ac6486, parts=24fed496
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.00                                                                             0MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00002000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00002000
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 802d39f0, node_mem_map 8100000                                                                             0
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8128 pages, LIFO batch:0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag                                                                             es: 8128
[    0.000000] Kernel command line:  board=TL-MR3020 console=ttyATH0,115200 root                                                                             fstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32                                                                              bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 29240k/32768k available (2111k kernel code, 3528k reserve                                                                             d, 401k data, 204k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, No                                                                             des=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.090000] gpiochip_add: registered GPIOs 0 to 29 on device: ath79
[    0.100000] MIPS: machine is TP-LINK TL-MR3020
[    0.340000] bio: create slab <bio-0> at 0
[    0.350000] Switching to clocksource MIPS
[    0.350000] NET: Registered protocol family 2
[    0.360000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.360000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.360000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.370000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.380000] TCP reno registered
[    0.380000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.390000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.390000] NET: Registered protocol family 1
[    0.400000] PCI: CLS 0 bytes, default 32
[    0.420000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.420000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY                                                                             ) (c) 2001-2006 Red Hat, Inc.
[    0.430000] msgmni has been set to 57
[    0.430000] io scheduler noop registered
[    0.440000] io scheduler deadline registered (default)
[    0.440000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.450000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UA                                                                             RT
[    0.450000] console [ttyATH0] enabled, bootconsole disabled
[    0.470000] m25p80 spi0.0: found s25sl032a, expected m25p80
[    0.470000] m25p80 spi0.0: s25sl032a (4096 Kbytes)
[    0.480000] 5 tp-link partitions found on MTD device spi0.0
[    0.480000] Creating 5 MTD partitions on "spi0.0":
[    0.490000] 0x000000000000-0x000000020000 : "u-boot"
[    0.490000] 0x000000020000-0x0000000fffd8 : "kernel"
[    0.500000] mtd: partition "kernel" must either start or end on erase block b                                                                             oundary or be smaller than an erase block -- forcing read-only
[    0.510000] 0x0000000fffd8-0x0000003f0000 : "rootfs"
[    0.510000] mtd: partition "rootfs" must either start or end on erase block b                                                                             oundary or be smaller than an erase block -- forcing read-only
[    0.530000] mtd: partition "rootfs" set to be root filesystem
[    0.530000] mtd: partition "rootfs_data" created automatically, ofs=3B0000, l                                                                             en=40000
[    0.540000] 0x0000003b0000-0x0000003f0000 : "rootfs_data"
[    0.550000] 0x0000003f0000-0x000000400000 : "art"
[    0.550000] 0x000000020000-0x0000003f0000 : "firmware"
[    0.580000] ag71xx_mdio: probed
[    0.580000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    1.130000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.1:00 [uid=                                                                             004dd041, driver=Generic PHY]
[    1.140000] TCP cubic registered
[    1.140000] NET: Registered protocol family 17
[    1.150000] Bridge firewalling registered
[    1.150000] 8021q: 802.1Q VLAN Support v1.8
[    1.160000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.170000] Freeing unused kernel memory: 204k freed
[    3.500000] Registered led device: tp-link:green:3g
[    3.500000] Registered led device: tp-link:green:wlan
[    3.500000] Registered led device: tp-link:green:lan
[    3.500000] Registered led device: tp-link:green:wps
[    7.130000] eth0: link up (100Mbps/Full duplex)
root@(none):/#
javresistance wrote:

Is there a way to install the .bin file directly from my PC without connecting to the internet?

Start your own http server, that's it.

Yes, sysupgrade is more complicated, but it normally takes care of killing all services that would access the Flash memory and switch to ramfs, then reboots automatically once performed...

But you are right, in this particular case where everything is broken anyway, maybe "mtd -r write ... firmware" may prove to work better and has better chances to work!

So:

# cd /tmp
# wget http://192.168.1.2/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
# mtd write openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin firmware
# reboot -f

... might be more appropriate.

Or use WinSCP!! Works fine after setting the password on the OpenWrt router.

Do you have a Web server running on your PC, which is accessible even if you have a firewall on your PC (disable it temporarily, in case), and that has the downloaded firmware file in the web root directory?

Given the broken situation, I don't think it is possible to change the password, as the mtd overlay is not available, so SCP may not work.

johan666 wrote:
javresistance wrote:

Thanks for the reply johan666. I tried that several times and it doesn't connect. As I stated above the Ethernet connectivity LED on the TP-MR3020 doesn't go ON.

Then in failsafe mode,
after used "mount_root", issue command : rm -rf /overlay/etc
then reboot

I tried that and it still not working . The Ethernet LED on the TP-MR3020 doesn't go ON. I am still able to enter Failsafe.

root@(none):/# mount_root
mount: mounting /dev/mtdblock3 on /tmp/overlay failed: Invalid argument
/sbin/mount_root: line 1: pi_include: not found
/sbin/mount_root: line 1: pi_include: not found
/sbin/mount_root: line 1: set_jffs_mp: not found
/sbin/mount_root: line 1: determine_root_device: not found
/sbin/mount_root: line 1: can't create /.extroot.md5sum: Read-only file system
switching to jffs2
root@(none):/# rm -rf /overlay/etc
root@(none):/# reboot
root@(none):/#

if you have windows i suggest a simple webserver:

http://mongoose.googlecode.com/files/mongoose-3.3.exe

just place in a dir containing

http://downloads.openwrt.org/attitude_a … actory.bin

start it, eventually disable firewall on your pc and then

cd /tmp
wget http://192.168.1.2:8080/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
mtd write openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin firmware
reboot -f

hope it helps wink

(Last edited by nebbia88 on 4 Nov 2012, 20:02)

nebbia88 wrote:

if you have windows i suggest a simple webserver:

http://mongoose.googlecode.com/files/mongoose-3.3.exe

just place in a dir containing

http://downloads.openwrt.org/attitude_a … actory.bin

start it, eventually disable firewall on your pc and then

cd /tmp
wget http://192.168.1.2:8080/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
mtd write openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin firmware
reboot -f

hope it helps wink

How can I thank you enough nebbia88. I've followed your instructions carefully and the TP-MR3020 is up and running I am able to change my passwd in Telnet and ssh into the device again. Also Ethernet LED goes ON again.
One problem I have now is to finish setting up OpenWRT. Which instruction on the net do you recommend I proceed with after this issue has happened?

(Last edited by javresistance on 4 Nov 2012, 21:00)

Nice to know it's alive again!

You should have also luci for configuration: http://192.168.1.1

There is no universal tutorial.. Configuration depends on your needs, if you explain what do you need specifically from the router maybe we can point you in the right wiki page xD

start from here

http://wiki.openwrt.org/doc/howto/basic.config

nebbia88 wrote:

Nice to know it's alive again!

You should have also luci for configuration: http://192.168.1.1

There is no universal tutorial.. Configuration depends on your needs, if you explain what do you need specifically from the router maybe we can point you in the right wiki page xD

start from here

http://wiki.openwrt.org/doc/howto/basic.config

Thanks for the link. Another issue I'm at right now is that I'm still unable to connect the MR3020 to the internet. Right now I have an ethernet cable connected directly to my ADSL wireless router. I tried e.g opkg update and this is the result:

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09-beta2/ar71xx/generic/packages/Packages.gz.
wget: bad address 'downloads.openwrt.org'
Collected errors:
 * opkg_download: Failed to download http://downloads.openwrt.org/attitude_adjustment/12.09-beta2/ar71xx/generic/packages/Packages.gz, wget returned 1.
root@OpenWrt:~#


My needs for the MR3020 are:

  1. Connect to the internet wirelessly using a 3g/4g USB dongel

  2. File sharing from a USB drive connected to the MR3020

  3. A private network with chatting

In Luci this is how my LAN is setup:

http://i347.photobucket.com/albums/p450/resistancejav/Capture.jpg

Maybe here is the problem why its not connecting to the internet?

javresistance wrote:

In Luci this is how my LAN is setup:

Maybe here is the problem why its not connecting to the internet?

So, what is your network ?
Do you have any router other than mr3020 ?
what you connect the mr3020 to ?  mr3020 connect to router ?  or mr3020 just connected directly to your pc ??

According to your screenshot, you look lack of networking basic knowledge.
IP 192.168.1.2 <- your mr3020 ip
gateway 192.168.1.1 <- your router ip ?  do you know what gateway is ?
dns 192.168.1.2 <- why you point dns to yourself ?

johan666 wrote:
javresistance wrote:

In Luci this is how my LAN is setup:

Maybe here is the problem why its not connecting to the internet?

So, what is your network ?
Do you have any router other than mr3020 ?
what you connect the mr3020 to ?  mr3020 connect to router ?  or mr3020 just connected directly to your pc ??

According to your screenshot, you look lack of networking basic knowledge.
IP 192.168.1.2 <- your mr3020 ip
gateway 192.168.1.1 <- your router ip ?  do you know what gateway is ?
dns 192.168.1.2 <- why you point dns to yourself ?

Thanks all for the help. And also thank you Johan for letting me know what Gateway is. I was able to figure out what the problem was. Not bad for someone that never had networking lessons. I was able to get Piratebox up and running. Thanks again!

Thanks this post, javresistance and guys for your experience, I have the same problem but now... my router is now alive too!!

Thanks again!

Hi there,

I got the same problem as javresistance and thanks to your reply I was able to get it work ... until I tried to ping google.com

I tried two tutorials : David Darts and the one from Pabell.

My OS is Windows 7.

My Home router IP address is 192.168.2.1
My computer IP address is 192.168.2.11

My network configuration on the OpenWrt router is :

config interface 'loopback'                                                               
        option ifname 'lo'                                                               
        option proto 'static'                                                             
        option ipaddr '127.0.0.1'                                                         
        option netmask '255.0.0.0'                                                       

config interface 'lan'                                                                   
        option ifname 'eth0'                                                             
        option type 'bridge'                                                             
        option proto 'static'                                                             
        option ipaddr '192.168.2.27'                                                       
        option netmask '255.255.255.0'                                                   
        option gateway '192.168.2.1'                                                     
        list dns '192.168.2.1'                                                           
        list dns '8.8.8.8'

I also edit the firewall configuration and turn the Wifi features.

Thanks for any help you can provide

The discussion might have continued from here.