OpenWrt Forum Archive

Topic: TP-Link TL-MR3020 Support

The content of this topic has been archived between 16 Jun 2013 and 7 May 2018. Unfortunately there are posts – most likely complete pages – missing.

I build a new binary with the vfat and ext4 kernel modules included and flashed it to the device.
Finally I had to install the US- american codepage.
Now all runs fine on the 3020.

the gpsd hom page provides client tools to read from the gpsd-daemon.

I need the gpspipe tool to write the output of gpsd to a file on a usbstick

On ubuntu there is a package called gpsd-clients. Is it possible to add this to the opkg packages?

I try to use 3g modem Huaweii E173 with extroot on the onboard micro sd card reader using 2GB micro sd card. However I have some problems with usb_modeswitch. Only after rebooting 3 times I get the router booting from sd card and the modem usable, i.e. /dev/ttyUSB0 shows up. If I remove power, I have to reboot 3 times again to get all up and running.

Is there a way to improve this? Has anybody else solved this? Is it possible to boot from Huaweii E173 mass storage and use 3g modem after one single boot with OpenWRT?

(Last edited by sophitus on 1 May 2012, 20:41)

Hello everyone!
I came across this device and I was wondering if it supported FTDI drivers for the USB port. I am not referring to a serial connection via UART to my PC, but I want to connect a device on the USB Port. How does the connection usually work to the 3G modems?
Thx in advance!

tzippy wrote:

Hello everyone!
I came across this device and I was wondering if it supported FTDI drivers for the USB port. I am not referring to a serial connection via UART to my PC, but I want to connect a device on the USB Port. How does the connection usually work to the 3G modems?
Thx in advance!

Of coz there is FTDI module you can install.

johan666 wrote:
tzippy wrote:

Hello everyone!
I came across this device and I was wondering if it supported FTDI drivers for the USB port. I am not referring to a serial connection via UART to my PC, but I want to connect a device on the USB Port. How does the connection usually work to the 3G modems?
Thx in advance!

Of coz there is FTDI module you can install.

Thx a lot!

@1st sorry for my broken english
so i buy a new TP-Link TL-MR3020
and flash openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory via the webif from the orignal firmware!
everything is fine then i install luci.....everyhing ok!
then i recognize that the memory is too less!so i delet something i don`t need:like luci english txt.then reboot!!!


no telnet and no ssh!!!
luci is broken and is not showing!
the ip is working also via wlan!
my question is :can i restore the tl-mr3020-v1 to connect the telne??and install the luci again
the failsafe mode of the openwrt ??the button is :wps?? how long must i pusht the butten

kochi wrote:

@1st sorry for my broken english
so i buy a new TP-Link TL-MR3020
and flash openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory via the webif from the orignal firmware!
everything is fine then i install luci.....everyhing ok!
then i recognize that the memory is too less!so i delet something i don`t need:like luci english txt.then reboot!!!


no telnet and no ssh!!!
luci is broken and is not showing!
the ip is working also via wlan!
my question is :can i restore the tl-mr3020-v1 to connect the telne??and install the luci again
the failsafe mode of the openwrt ??the button is :wps?? how long must i pusht the butten

You removed luci-english ??
Then what do you expect luci to show ?  France ?
Install luci-english back to you 3020 !

No telnet.
If you changed the password, then insecure telnet will be turn off.
You should use ssh instead.

No ssh ?
What else you did to your router ??
What else you have done to your 3020 ?

You CANNOT delete anything inside, unless you Sure it is useless.
What the hell you thinking ??

Hi!
I have a problem with u-boot, i can't save environment variables
and mr3020 does not  ping response.
How can i save my environment variables ? (printsev, i have changed config with setenv but that does not save after reboot)
This is to run my tftp server but there aren't dialog between them.


U-Boot 1.1.4 (Nov 28 2011 - 09:34:00)

AP121 (ar9330) U-boot

DRAM:  32 MB
led turning on for 1s...
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
Fetching MAC Address from 0x81ff4228
Fetching MAC Address from 0x81ff4228
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:11:40:00
ag7240_phy_setup 
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:11:40:01
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
ag7240_phy_setup 
eth1 up
eth0, eth1
Autobooting in 1 seconds
hornet>
printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),2752k(rootfs),896k(uImage),64k(NVRAM),64k(ART)
bootcmd=bootm 0x9f020000
bootdelay=1
baudrate=115200
ethaddr=0xba:0xbe:0xfa:0xce:0x07:0x41
stdin=serial
stdout=serial
stderr=serial
netmask=255.255.255.0
ipaddr=192.168.1.4
serverip=192.168.1.25
ethact=eth0

Environment size: 381/65532 bytes
hornet>

Just an advice:

you must change this firmware download link

Installation
Currently only OpenWRT developer versions support the hardware. Download the lastest trunk snapshot here (http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin).
(at Wiki TL-MR3020 page http://wiki.openwrt.org/toh/tp-link/tl-mr3020#installation)

to the failsafe firmware link

http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-jffs2-factory.bin

.

As far as I can understand (too late, unfortunately) the linked firmware does not allow failsafe recovery like the second one.

Because of network bad configuration I made, I can't connect to my 3020 and therefore became bricked (theorically, since it boots well but I can't place connections, neither by wifi nor by rj45). I have a new one now, but I'm afraid to install openwrt again.

Be aware.

Regards.

Any way, anyone knows if internet 3g/4g connection under 3020 runs faster with openwrt?

Using original firmware (last one, March 2012) and Vodafone 4g K5005 (huawei 398) I have reached 21Mbps of download and 2mbps of upload, while in a windows 7 palmtop I can reach 51Mbps. I made a sucessful connection with this pen at 3020 running openwrt but I didn't test speed since when connected to router over wifi or rj45 I had no internet connection (only inside the router). It was while reconfiguring router network that I lost all connections and therefore bricked it :\

If someone had already tested connection speed with this pen and openwrt, please post speed information.

Regards.

i don't think openwrt /original firmware supports 4G LTE usb connection yet - that's why you only get 21mbps max (3G+ only)
chat, comgt, usb-modeswitch ...ala need to be updated to support this kind of connection.
If i look in the past how 3G support was added to linux (openwrt)...I don't think will see support for the next 1-2 years...

did anyone know, why wan connection using Huawei EC1260-2 evdo modem always disconnected after few minutes when share it via wifi?
try bring up the wan connection up again is not possible using 'ifup wan' (only possible if reboot)
when share wan connection via lan is working fine.

I have run into some difficulties installing openwrt on the TL-MR3020.

I installed the latest MR3020 firmware from the snapshots/trunk directory (http://downloads.openwrt.org/snapshots/ … actory.bin)

I used the following steps:
1) Switch function mode to WISP
2) log in on the original software
3) uploaded openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin using the GUI firmware upgrade option
4) wait until the router resets by itself.
5) try to connect to 192.168.1.1

I managed to upload the firmware and the MR3020 appears to boot, but I can't connect to it. It won't respond to ping request and when I use a packet sniffer there is no ethernet traffic coming from the MR3020 at all.

Power and WPS leds turn solid green after half a minute, pressing the WPS button or moving the function switch during the boot process results in a fast blinking WPS led (recovery mode?)

Undeterred I opened the case (bye bye warranty!) and added a serial port with some equipment I had around the house. I can connect, issue commands and verify OpenWRT is present, it is working but the ethernet connection is not. On my network switch I can see that during the boot process there is a 100 mbit link, when everything is loaded the connection is only 10 mbit.

What has gone wrong? Or more to the point, did I do something wrong?

** update **

Another user mentioned a similar problem with another TP-link router and the same 5/29/2012 firmware (https://forum.openwrt.org/viewtopic.php … 52#p168452)

(Last edited by sgt_smith on 29 May 2012, 21:29)

sgt_smith wrote:

I have run into some difficulties installing openwrt on the TL-MR3020.

I installed the latest MR3020 firmware from the snapshots/trunk directory (http://downloads.openwrt.org/snapshots/ … actory.bin)

I used the following steps:
1) Switch function mode to WISP
2) log in on the original software
3) uploaded openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin using the GUI firmware upgrade option
4) wait until the router resets by itself.
5) try to connect to 192.168.1.1

I managed to upload the firmware and the MR3020 appears to boot, but I can't connect to it. It won't respond to ping request and when I use a packet sniffer there is no ethernet traffic coming from the MR3020 at all.

Power and WPS leds turn solid green after half a minute, pressing the WPS button or moving the function switch during the boot process results in a fast blinking WPS led (recovery mode?)

Undeterred I opened the case (bye bye warranty!) and added a serial port with some equipment I had around the house. I can connect, issue commands and verify OpenWRT is present, it is working but the ethernet connection is not. On my network switch I can see that during the boot process there is a 100 mbit link, when everything is loaded the connection is only 10 mbit.

What has gone wrong? Or more to the point, did I do something wrong?

** update **

Another user mentioned a similar problem with another TP-link router and the same 5/29/2012 firmware (https://forum.openwrt.org/viewtopic.php … 52#p168452)

Beware that ordinary openwrt firmware DO NOT include WebUI, and wifi is disabled by default.
You can only connect with TELNET after fresh flash.
For the details, study openwrt->documents on the website before do anything.

(Last edited by johan666 on 29 May 2012, 21:58)

johan666 wrote:

Beware that ordinary openwrt firmware DO NOT include WebUI, and wifi is disabled by default.
You can only connect with TELNET after fresh flash.
For the details, study openwrt->documents on the website before do anything.

Thank you for the reminder, I am very aware of this.
That is why I mentioned the fact that it is not responding to ping packets and has no ethernet activity.

Without a ping reply or arp traffic telnet isn't going to work either.

a little side note, ive notice the wiki states that the serial should be set to 115200,n,8,1 but i like apparently some other people got random garbage that looked like a chineese font or equal, by changing this to 115200,n,7,1 makes this readable (im using putty) the reason for this is probably the origin of the router retailer. mine was purchased in bangkok.

wonderful post, I have learned much

I have three units, two will not bring up eth0, confirmed with wireshark, and checked via serial,  have tried a few images and confirmed hardware is good by re flashing TP firmware. All are labled as Ver 1.7 and the only difference is in the serial No's.
Working unit is SN1247xxxxx Non working SN1248xxxxx. Not sure if the hardware has changed, any pointers appreciated.

alfa33 wrote:

I have three units, two will not bring up eth0, confirmed with wireshark, and checked via serial,  have tried a few images and confirmed hardware is good by re flashing TP firmware. All are labled as Ver 1.7 and the only difference is in the serial No's.
Working unit is SN1247xxxxx Non working SN1248xxxxx. Not sure if the hardware has changed, any pointers appreciated.

How did you reflash the original firmware using serial?
Since I have no eth0 and no USB support I can't get a new image on it.

Just activate WiFi and SCP the original firmware to /tmp

What serial NO's do you have? I see there are a few commits to the AR71xx code recently, still not sure if hardware or software problem, (using same image on all three) which leads me to think there is a hardware change.

I note this from the WR703N Wiki
"Quote"
"mtd write openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin firmware
Note that this will not destroy the contents of the file system, so any old modules under /lib/modules/x.y.z will still get loaded."
"Quote"

So I might not be replacing the AR71xx modules when doing an mtd write, will have another look..

(Last edited by alfa33 on 30 May 2012, 05:40)

Hi guys,

Somebody wrote:

Try putting this into your /etc/config/system, it may not be the niftiest way out but works perfectly for me!

For this to work, you want to have 1 ap mode, 1 client mode entry and a 3G wan in /etc/config/network.

If you want clarity, make the script out of each individual button handler entry.

config button
        option action 'released'
        option button 'BTN_1'
        option handler 'logger "BTN_1 released: Enabling 3g" && (uci set network.wan.auto=0 && uci commit network && ifup wan) && logger "3G enabled"'

config button
        option action 'pressed'
        option button 'BTN_1'
        option handler 'logger "BTN_1 pressed: Disabling 3G" && (uci set network.wan.auto=0 && uci commit network && ifdown wan) && logger "3G disabled"'

config button
        option action 'pressed'
        option button 'BTN_0'
        option handler 'logger "BTN_0 pressed: Disabling WISP " && (for i in -1; do local net=$(uci get wireless.@wifi-iface[${i}].network); uci set wireless.@wifi-iface[${i}].disabled=1; uci set network.${net}.auto=0; uci commit && ifdown ${net}; done) && logger "WISP disabled"'

config button
        option action 'released'
        option button 'BTN_0'
        option handler 'logger "BTN_0 released: Enabling WISP" && (for i in -1; do local net=$(uci get wireless.@wifi-iface[${i}].network); uci del wireless.@wifi-iface[${i}].disabled 2>/dev/null; uci del network.${net}.auto 2>/dev/null; uci commit; ifup ${net}; done) && logger "WISP enabled"'

I am not sure how to create/define/format the "For this to work, you want to have 1 ap mode, 1 client mode entry and a 3G wan in /etc/config/network".

Thanks

I have tftp loaded build r31650 and the Ethernet port is still not coming up, reloaded TP original firmware and Ethernet is fine, looks more like new hardware is causing my problem. Version 1.7 on sticker.

edit

Tried loading latest r31954 same issue.

From new MR3020 (Not Working)


root@OpenWrt:/sbin# devstatus eth0
{
        "type": "Network device",
        "up": true,
        "link": false,
        "link-advertising": [

        ],
        "link-supported": [

        ],
        "speed": "10H",
        "mtu": 1500,
        "macaddr": "90:f6:52:be:6b:a7",
        "txqueuelen": 1000,
        "statistics": {
                "collisions": 0,
                "rx_frame_errors": 0,
                "tx_compressed": 0,
                "multicast": 0,
                "rx_length_errors": 0,
                "tx_dropped": 0,
                "rx_bytes": 0,
                "rx_missed_errors": 0,
                "tx_errors": 0,
                "rx_compressed": 0,
                "rx_over_errors": 0,
                "tx_fifo_errors": 0,
                "rx_crc_errors": 0,
                "rx_packets": 0,
                "tx_heartbeat_errors": 0,
                "rx_dropped": 0,
                "tx_aborted_errors": 0,
                "tx_packets": 0,
                "rx_errors": 0,
                "tx_bytes": 0,
                "tx_window_errors": 0,
                "rx_fifo_errors": 0,
                "tx_carrier_errors": 0
        }
}

From Older MR3020 (Working)

root@AR-17-MR:/sbin# devstatus eth0
{
        "type": "Network device",
        "up": true,
        "link": true,
        "link-advertising": [
                "10H",
                "10F",
                "100H",
                "100F",
                "1000F"
        ],
        "link-supported": [
                "10H",
                "10F",
                "100H",
                "100F",
                "1000F"
        ],
        "speed": "100F",
        "mtu": 1500,
        "macaddr": "90:f6:52:a2:70:3f",
        "txqueuelen": 1000,
        "statistics": {
                "collisions": 0,
                "rx_frame_errors": 0,
                "tx_compressed": 0,
                "multicast": 0,
                "rx_length_errors": 0,
                "tx_dropped": 0,
                "rx_bytes": 20466,
                "rx_missed_errors": 0,
                "tx_errors": 0,
                "rx_compressed": 0,
                "rx_over_errors": 0,
                "tx_fifo_errors": 0,
                "rx_crc_errors": 0,
                "rx_packets": 203,
                "tx_heartbeat_errors": 0,
                "rx_dropped": 31,
                "tx_aborted_errors": 0,
                "tx_packets": 88,
                "rx_errors": 0,
                "tx_bytes": 9874,
                "tx_window_errors": 0,
                "rx_fifo_errors": 0,
                "tx_carrier_errors": 0
        }
}

(Last edited by alfa33 on 30 May 2012, 10:53)

alfa33 wrote:

I have three units, two will not bring up eth0, confirmed with wireshark, and checked via serial,  have tried a few images and confirmed hardware is good by re flashing TP firmware. All are labled as Ver 1.7 and the only difference is in the serial No's.
Working unit is SN1247xxxxx Non working SN1248xxxxx. Not sure if the hardware has changed, any pointers appreciated.

I have the same problem... By WiFi all working good. S/N is 1218xxxxxxx, VER. 1.6. Any suggestions?
I found something intrersting on this page - http://wiki.openwrt.org/toh/tp-link/tl-mr3020 in Installation section:

Currently only OpenWRT developer versions support the hardware. Download the lastest trunk snapshot here. As of 5/29, the most recent firmware does not allow access to the router via the ethernet port and thus telnet will not work. An older version of the firmware that works is available for download here.

but link is broken....

(Last edited by AlexSpb on 30 May 2012, 17:45)

A question to the serial connector, can I mod a rs 232 cable to an ttdi 3.v  an link it to an rs232 serial usb adaotor?
I also bricked my router because the ethernet does not work so i need a serial connection; a detailed how to to flash the tp-link firmware over wifi would be nice.
(if another post has the answer pelase post a link)
Thux

The MR3020 Ver 1.7 confirmed as not having Ethernet access using trunk r31650  and newer builds flashed via tftp and also from the TP firmware update web page. Other users with Ver 1.6 hardware have Ethernet working after downgrading to r31650.

Two units originally flashed with r31954 reflashed to r31650 no ethernet.
One new unit flashed from TP firmware upgrade page to r31650 no ethernet

I've also tried a multitude of trunks from the last three week, none are able to bring up the Ethernet port, although original TP firmware works fine. Have tried different network switches, changed flow control, negotiation, 10M, 100M, switch says link is up but no traffic. TP3020 says link is down.

Does anyone have any pointers on how to get the Ethernet port working?

Many thanks.