User Tools

Site Tools


toh:tp-link:tl-mr12u

TP-Link TL-MR12U

A portable_router with an onboard 5200mAh rechargeable_battery. See also TP-Link TL-MR10U, TP-Link TL-MR11U and TP-Link TL-MR13U or TL-MR3020, TL-MR3040 and TL-WR703N.
Note: Many of these routers are marketed as a "3G travel router" but none actually include a 3G modem - the marketing term rather means that the OEM firmware supports USB 3G modems because it contains drivers for USB modems! Ignore that, because with OpenWrt ANY router with USB supports 3G hardware… ;-)

Supported Versions

Version/Model Launch Date S/N OpenWrt Version Supported Model Specific Notes
v1 2013-04 - ??? -

Hardware Highlights

CPU Ram Flash Network WLAN Standard
802.11
USB Serial JTag
AR9331@400MHz 32MiB 4MiB 1 x 10/100Mbit b/g/n 1T1R
150Mbps
1x USB 2.0,
microUSB for charging
Yes NO

Price: AliExpress - about 35 USD

Manufacturer's site: http://www.tp-link.com.cn/product_150m_288.html

Forum: https://forum.openwrt.org/viewtopic.php?id=45167

Keep the articles modular

Please include only model specific information, omit bla,bla and put everything generic into separate articles
generic.overview if you have no time to write certain stuff link to this
basic.config should lead the way, do not explain this again
DO NOT provide a complete howto here! Instead groom the general HowTos.

Installation

No image yet WiP

Please consult →generic.flashing and also TL-WR703N and TL-MR3020.

Flash Layout

Please check out the article Flash Layout. It contains an example and a couple of explanations.

OEM easy installation

FIXME The instructions below are for Broadcom devices and only serve as an example. Don't leave them in place if they do not apply to a particular device!

This section deals with how you install OpenWrt from a device freshly opened. Plus the steps required such as reset to factory defaults if the device has already been configured

Note: Reset router to factory defaults if it has been previously configured.

OEM installation using the TFTP method

Specific values you need

Bootloader tftp server IPv4 address FILL-IN
Bootloader MAC address (special) FILL-IN
Firmware tftp image http://downloads.openwrt.org/FILL-IN/openwrt-FILL-IN-generic-FILL-IN-squashfs-tftp.bin (NOTE: Name must contain "tftp")
TFTP Transfer Window FILL-IN seconds
TFTP Window Start approximately FILL-IN seconds after power on
TFTP Client Required IP Address FILL-IN

Upgrading OpenWrt

generic.sysupgrade

If you have already installed OpenWrt and like to reflash for e.g. upgrading to a new OpenWrt version you can upgrade using the mtd command line tool. It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing.

LuCI Web Upgrade Process

Terminal Upgrade Process

  • Login as root via SSH on 192.168.1.1
  • Use the following commands to upgrade.

cd /tmp/
wget http://http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc
sysupgrade /tmp/xxx.abc

  • If sysupgrade does not support this router, use the following commands.

cd /tmp/
wget http://http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc
mtd write /tmp/xxx.abc linux && reboot

Basic configuration

Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.

Specific Configuration

Interfaces

The default network configuration is:

Interface Name Description Default configuration
br-lan LAN & WiFi 192.168.1.1/24
vlan0 (eth0.0) LAN ports (1 to 4) None
vlan1 (eth0.1) WAN port DHCP
wl0 WiFi Disabled

Switch Ports (for VLANs)

Numbers 0-3 are Ports 1-4 as labeled on the unit, number 4 is the Internet (WAN) on the unit, 5 is the internal connection to the router itself. Don't be fooled: Port 1 on the unit is number 3 when configuring VLANs. vlan0 = eth0.0, vlan1 = eth0.1 and so on.

Port Switch port
Internet (WAN) 4
LAN 1 3
LAN 2 2
LAN 3 1
LAN 4 0

Failsafe mode

Buttons

hardware.button on howto use and configure the hardware button(s).

The Linksys WRT54GL has two buttons. They are Reset and Secure Easy Setup. Here, we merely name the buttons, so we can use them in the above Howto:

BUTTON Event
Reset reset
Secure Easy Setup ses

Hardware

Info

Architecture: MIPS
Vendor: Qualcomm Atheros
Bootloader: U-Boot
System-On-Chip: AR9132 rev 2 (MIPS 24Kc V7.4)
CPU/Speed 24Kc V7.4 400 Mhz
Flash-Chip: Spansion FL032PIF 32Mbit
Flash size: 4 MiB
RAM-Chip: Zintel A3S56D40FTP 252Mbit
RAM: 32 MiB
Wireless: Atheros AR9103 2.4ghz 802.11bgn
Ethernet: RealTek RTL8366RB Gigabit w/ vlan support swconfig
Internet: n/a (via external dongle: 3g/LTE)
USB: Yes 1 x 2.0, 1x MicroUSB for battery charging/power supply
Serial: Yes
JTAG: Yes
Battery: Li-ion 18650 LGABB41865

Photos

Check this site: Photos of The TP-Link's New MR12U

Photos of The TP-Link's New MR12U

Model Number

Front:

mr12u_2.jpg

Back:

mr12u_3.jpg

Opening the case

Note: This will void your warranty!

  • The casing is glued on the edges and its hard to open. Be cerfull, PCB is screwed to smaller part of the housing.

Serial

port.serial general information about the serial port, serial port cable, etc.

How to connect to the Serial Port of this specific device:

Photo of PCB with markings

JTAG

port.jtag general information about the JTAG port, JTAG cable, etc.

How to connect to the JTAG Port of this specific device:

Photo of PCB with markings

Debricking

Bootloader Mods

  1. you could read about bootloader in general and about Das U-Boot in particular.

U-Boot 1.1.4 modification for routers

Forum member pepe2k made a modification of U-Boot 1.1.4 for Qualcomm Atheros SoCs based devices (the project is still being developed, so new devices and SoCs will be supported in the future). Up to date information, binary images and sources can be found on official GitHub repository.

This modification started from wr703n-uboot-with-web-failsafe project, but supports more devices, all modern web browsers, has a lot of improvements and other modifications (like U-Boot NetConsole, custom commands, overclocking possibilities etc.).

More information:

Hardware mods

  1. as a beginner, you really should inform yourself about soldering in general and then obtain some practical experience!

128MiB RAM Mod

I²C GPIO Mod

I²C Tiny-USB Mod

Bootlogs

OEM bootlog

PUT HERE YOUR BOOTLOG

OpenWrt bootlog

[ 0.000000] Linux version 3.3.8 (cezary@eko.one.pl) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Wed Jul 3 21:27:19 CEST 2013 [ 0.000000] MyLoader: sysp=fa89c804, boardp=69cd3b24, parts=31a09c82 [ 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.000MHz [ 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 802fdda0, node_mem_map 81000000 [ 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 pages: 8128 [ 0.000000] Kernel command line: board=TL-MR3040 console=ttyATH0,115200 rootfstype=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: 28940k/32768k available (2255k kernel code, 3828k reserved, 425k data, 216k init, 0k highmem) [ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=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-MR3040 [ 0.350000] bio: create slab at 0 [ 0.360000] Switching to clocksource MIPS [ 0.370000] NET: Registered protocol family 2 [ 0.370000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.370000] TCP established hash table entries: 1024 (order: 1, 8192 bytes) [ 0.370000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.380000] TCP: Hash tables configured (established 1024 bind 1024) [ 0.390000] TCP reno registered [ 0.390000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.400000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.400000] NET: Registered protocol family 1 [ 0.410000] PCI: CLS 0 bytes, default 32 [ 0.430000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.430000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.440000] msgmni has been set to 56 [ 0.440000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) [ 0.450000] io scheduler noop registered [ 0.450000] io scheduler deadline registered (default) [ 0.460000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled [ 0.470000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART [ 0.480000] console [ttyATH0] enabled, bootconsole disabled [ 0.490000] m25p80 spi0.0: found en25q32b, expected m25p80 [ 0.490000] m25p80 spi0.0: en25q32b (4096 Kbytes) [ 0.500000] 5 tp-link partitions found on MTD device spi0.0 [ 0.510000] Creating 5 MTD partitions on "spi0.0": [ 0.510000] 0x000000000000-0x000000020000 : "u-boot" [ 0.520000] 0x000000020000-0x00000010ece4 : "kernel" [ 0.520000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.530000] 0x00000010ece4-0x0000003f0000 : "rootfs" [ 0.540000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.550000] mtd: partition "rootfs" set to be root filesystem [ 0.560000] mtd: partition "rootfs_data" created automatically, ofs=390000, len=60000 [ 0.570000] 0x000000390000-0x0000003f0000 : "rootfs_data" [ 0.570000] 0x0000003f0000-0x000000400000 : "art" [ 0.580000] 0x000000020000-0x0000003f0000 : "firmware" [ 0.600000] ag71xx_mdio: probed [ 0.610000] eth0: Atheros AG71xx at 0xb9000000, irq 4 [ 1.160000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY] [ 1.170000] TCP cubic registered [ 1.170000] NET: Registered protocol family 17 [ 1.170000] Bridge firewalling registered [ 1.180000] Ebtables v2.0 registered [ 1.180000] 8021q: 802.1Q VLAN Support v1.8 [ 1.190000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2. [ 1.200000] Freeing unused kernel memory: 216k 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 [ 6.830000] JFFS2 notice: (440) jffs2_build_xattr_subsystem: complete building xattr subsystem, 2 of xdatum (1 unchecked, 1 orphan) and 40 of xref (0 dead, 26 orphan) found. [ 7.620000] SCSI subsystem initialized [ 7.850000] usbcore: registered new interface driver usbfs [ 7.850000] usbcore: registered new interface driver hub [ 7.860000] usbcore: registered new device driver usb [ 8.190000] eth0: link up (100Mbps/Full duplex) [ 8.430000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 8.440000] ehci-platform ehci-platform: Generic Platform EHCI Controller [ 8.440000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1 [ 8.480000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000 [ 8.500000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00 [ 8.500000] hub 1-0:1.0: USB hub found [ 8.500000] hub 1-0:1.0: 1 port detected [ 8.570000] Initializing USB Mass Storage driver... [ 8.570000] usbcore: registered new interface driver usb-storage [ 8.580000] USB Mass Storage support registered. [ 28.960000] eth0: link down [ 29.560000] Compat-drivers backport release: compat-drivers-2013-01-21-1 [ 29.570000] Backport based on wireless-testing.git master-2013-02-22 [ 29.570000] compat.git: wireless-testing.git [ 29.750000] cfg80211: Calling CRDA to update world regulatory domain [ 29.750000] cfg80211: World regulatory domain updated: [ 29.760000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 29.770000] cfg80211: (2400000 KHz - 2483000 KHz @ 40000 KHz), (N/A, 3000 mBm) [ 29.770000] cfg80211: (5140000 KHz - 5860000 KHz @ 40000 KHz), (N/A, 3000 mBm) [ 30.770000] ath: EEPROM regdomain: 0x0 [ 30.770000] ath: EEPROM indicates default country code should be used [ 30.770000] ath: doing EEPROM country->regdmn map search [ 30.770000] ath: country maps to regdmn code: 0x3a [ 30.770000] ath: Country alpha2 being used: US [ 30.770000] ath: Regpair used: 0x3a [ 30.780000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' [ 30.790000] Registered led device: ath9k-phy0 [ 30.790000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2 [ 30.790000] cfg80211: Calling CRDA for country: US [ 30.800000] cfg80211: Regulatory domain changed to country: US [ 30.800000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 30.810000] cfg80211: (2400000 KHz - 2483000 KHz @ 40000 KHz), (N/A, 3000 mBm) [ 30.820000] cfg80211: (5140000 KHz - 5860000 KHz @ 40000 KHz), (N/A, 3000 mBm) [ 31.060000] PPP generic driver version 2.4.2 [ 31.150000] tun: Universal TUN/TAP device driver, 1.6 [ 31.150000] tun: (C) 1999-2004 Max Krasnyansky [ 31.270000] GRE over IPv4 demultiplexor driver [ 31.290000] ip_gre: Unknown symbol icmpv6_send (err 0) [ 31.420000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 32.020000] NET: Registered protocol family 24 [ 32.170000] nf_conntrack version 0.5.0 (455 buckets, 1820 max) [ 32.590000] PPTP driver version 0.8.5 [ 33.360000] xt_time: kernel timezone is -0000 [ 34.250000] Hooked IMQ after mangle on PREROUTING [ 34.250000] Hooked IMQ after nat on POSTROUTING [ 34.260000] IMQ driver loaded successfully. (numdevs = 2, numqueues = 1) [ 34.490000] Netfilter messages via NETLINK v0.30. [ 34.550000] ip_set: protocol 6 [ 35.300000] usbcore: registered new interface driver cdc_acm [ 35.300000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters [ 35.460000] usbcore: registered new interface driver usbserial [ 35.470000] USB Serial support registered for generic [ 35.470000] usbcore: registered new interface driver usbserial_generic [ 35.480000] usbserial: USB Serial Driver core [ 35.530000] usbcore: registered new interface driver cdc_ether [ 35.620000] usbcore: registered new interface driver cdc_ncm [ 35.730000] USB Serial support registered for GSM modem (1-port) [ 35.740000] usbcore: registered new interface driver option [ 35.740000] option: v0.7.2:USB Driver for GSM modems [ 35.870000] USB Serial support registered for Sierra USB modem [ 35.880000] usbcore: registered new interface driver sierra [ 35.880000] sierra: v.1.7.16:USB Driver for Sierra Wireless USB modems [ 40.720000] device eth0 entered promiscuous mode [ 41.460000] eth0: link up (100Mbps/Full duplex) [ 41.460000] br-lan: port 1(eth0) entered forwarding state [ 41.470000] br-lan: port 1(eth0) entered forwarding state [ 43.470000] br-lan: port 1(eth0) entered forwarding state [ 62.710000] ipt_bandwidth: timezone shift of 60 minutes detected, adjusting [ 62.720000] old minutes west=0, new minutes west=-60

Notes

Tags

toh/tp-link/tl-mr12u.txt · Last modified: 2013/12/22 13:27 by pepe2k