Setup OpenWrt on TP-Link TL-MR3020 with 3G Connection

Less than 3 hours after I purchased the 3G/4G Wireless N Router TP-Link,  model TL-MR3020 the router already been flashed with custom firmware you know OpenWrt 🙂

This guide is just my notes, as somehow I need to re-flash again but I glad if it helps you.

450x270

The original version before flash.

Firmware Version:  3.14.2 Build 120817 Rel.55520n
Hardware Version:  MR3020 v1 0000000

Download the openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

Alternative: https://dl.dropboxusercontent.com/u/60626137/TL-MR3020/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

Connect Ethernet cable to computer, and open the URL http://192.168.0.254 using web browser and use the default username: admin password:admin to login if you’ve not change it before.

Select System Tools-> Firmware Upgrade from the menu, choose the bin file above and click the upgrade button.

Let the entire process of upgrade uninterrupted for a while. After all finished the web will show something like unable to connect, don’t worry this is because OpenWrt has change the IP address.

You can now login to the luci (OpenWrt web interface) by using new IP address, it should be 192.168.1.1 (http://192.168.1.1) the username is root without password.

You have successfully installed OpenWrt on the router, in case you need to setup 3G connection using USB Dongle you can follow the instruction below.

I use ZTE MF-190 3G modem,

zte-mf-190

From the luci, navigate to System->Software and install the following packages

The router need to have internet connection in order to perform the package installation, you can plug the ethernet cable to your computer and follow the guide from this post http://madet.my/2014/04/how-to-share-3g-internet-from-windows-pc-to-wifi-router/

comgt
kmod-usb-serial
kmod-usb-serial-option
kmod-usb-serial-wwan
usb-modeswitch
usb-modeswitch-data
luci-proto-3g

Reboot the router.

SSH to the IP 192.168.1.1 (for Windows use Putty) login as root without password for default.

If you run

It should display the modem connected to the USB port.

 

The output above shows the ZTE is connected to port 02, as I have attached the dongle on USB hub.

The serial ports should showed up,

Next, from the luci add new interface on Network->Interfaces.

Name: wan

Protocol: UMTS/GPRS/EV-DO

add-interface-3g

Configure the interface as following screenshot.

openwrt-3g-tlmr3020

The modem device should be ttyUSB<port number> you got from the previous  “cat /proc/bus/usb/devices” command.

You may leave APN empty.

Click “Save & Apply”.

You now can get the internet from Ethernet or  can enable the Wifi.