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.

Thanks

I probably need a router in my car for the entertainment system. It will only have ocassionaly internet access when the phone is in the car dock (via usb tethering) and want to provide an approximate time with the router as NTP server
(my china gps does not have an RTC and looses time after each start (--> gps fix takes long)
but I have WiFi and Windows CE has a built in NTP client)

I thought about using a raspberry PI with openwrt and RTC "shield" but it is a bit oversized and I have a MR3020 here :-)

Is there any information what GPIOs can be used for this (there is limited documentation in the wiki)

(Last edited by d1dd1 on 23 Nov 2012, 11:05)

R6, R11, R12 could be Gpio0, 14 and 15. This is based purely on a visual comparison with the wr703n. I don't have an MR3020 to verify though.

robthebrew wrote:

R6, R11, R12 could be Gpio0, 14 and 15. This is based purely on a visual comparison with the wr703n. I don't have an MR3020 to verify though.

I may be able to check, as I have both TL-WR703N and TL-MR3020 routers, as well as a stereo x40 binocular, let me some time this WE.

But if you don't care much about the sliding 3G/WISP/AP button, you can easily (from a soldering point of view) access to GPIO 18 and 20, check the last picture from this blog (in French):
TL-MR3020 slider

On a software point of view, though, it is a little bit more difficult, since you will have to comment the sw1 and sw2 declarations in the "arch/mips/ath79/mach-tl-mr3020.c" kernel source file and recompile your own OpenWrt to make them available as GPIOs, then use the bit-banged i2c over gpio kernel module.

EDIT: EquinoxFR has located the unused GPIOs 7 and 29 on R15/R17:
http://www.equinoxefr.org/post/2012/11/ … -les-gpio/

(Last edited by Squonk on 23 Nov 2012, 13:59)

Thanks for your help guys !

I don't need the slider so I will probably use these.

I will hopefully find some time this weekend :-)

I will have to recompile openwrt anyways, as I have to enable the RTC support

(Last edited by d1dd1 on 23 Nov 2012, 14:04)

robthebrew wrote:
Squonk wrote:

EDIT: EquinoxFR has located the unused GPIOs 7 and 29 on R15/R17:
http://www.equinoxefr.org/post/2012/11/ … -les-gpio/

looks like the same resistors for the same GPIOs as 703.

Yes, as far as I can tell, they have "compatible" BOMs (Bills Of Materials).

However, the TL-MR3020 features a few additional components  that were "missing" in the TL-WR703N (like "U4", IMHO a voltage/reset supervisor chip), but all other active components are the same.

It looks like most passive components have the exact same reference, some are just added for the TL-MR3020 and "missing" for the TL-WR703N.

As for connectors, USB, miniUSB/microUSB and Ethernet RJ45 are different parts, but bear the same reference.

A big difference though is that the TL-MR3020 is RoHs and CE/FCC compliant, the TL-WR703N is not (that's why it is so easy to desolder smile).

(Last edited by Squonk on 23 Nov 2012, 18:57)

Hi everyone,

I just finished my mod. on router 3020 hardware version 1.6.

I'm really happy now with my nano router, hmm.. what next, maybe overclock the cpu to 600~800 Mhz would be nice big_smile

U-Boot 1.1.4 (Nov 23 2012 - 14:43:55)

AP121 (ar9330) U-boot

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

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
blah blah blah ...
blah blah blah ...
blah blah blah ...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
ag7240_phy_setup 
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
ag7240_phy_setup 
eth1 up
eth0, eth1
Autobooting in 3 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.3.8 (blogic@Debian-60-squeeze-64-minimal) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Sat Oct 20 12:31:22 UTC 2012
[    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: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00004000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00004000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=TL-MR3020 console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 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: 61496k/65536k available (2209k kernel code, 4040k reserved, 412k data, 212k 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-MR3020
[    0.350000] bio: create slab <bio-0> at 0
[    0.360000] Switching to clocksource MIPS
[    0.360000] 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: 2048 (order: 2, 16384 bytes)
[    0.370000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.380000] TCP: Hash tables configured (established 2048 bind 2048)
[    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.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 120
[    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.480000] console [ttyATH0] enabled, bootconsole disabled
[    0.490000] m25p80 spi0.0: found w25q128, expected m25p80
[    0.490000] m25p80 spi0.0: w25q128 (16384 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-0x0000001096a8 : "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] 0x0000001096a8-0x000000ff0000 : "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=2D0000, len=D20000 
[    0.570000] 0x0000002d0000-0x000000ff0000 : "rootfs_data"
[    0.570000] 0x000000ff0000-0x000001000000 : "art"
[    0.580000] 0x000000020000-0x000000ff0000 : "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:00 [uid=004dd041, driver=Generic PHY]
[    1.170000] TCP cubic registered
[    1.170000] NET: Registered protocol family 17
[    1.180000] Bridge firewalling 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: 212k freed
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
[    6.380000] JFFS2 notice: (441) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 14 of xref (0 dead, 4 orphan) found.
switching to jffs2
- init -

Please press Enter to activate this console. [    8.280000] Compat-drivers backport release: compat-drivers-2012-09-04-2-gddac993
[    8.280000] Backport based on wireless-testing.git master-2012-09-07
[    8.290000] compat.git: wireless-testing.git
[    8.320000] cfg80211: Calling CRDA to update world regulatory domain
[    8.320000] cfg80211: World regulatory domain updated:
[    8.330000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    8.340000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.350000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    8.350000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    8.360000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.370000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.710000] usbcore: registered new interface driver usbfs
[    8.720000] usbcore: registered new interface driver hub
[    8.720000] usbcore: registered new device driver usb
[    9.400000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[    9.410000] cfg80211: Calling CRDA for country: US
[    9.410000] cfg80211: Regulatory domain changed to country: US
[    9.420000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    9.430000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[    9.440000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[    9.440000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.450000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.460000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.470000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[    9.530000] PPP generic driver version 2.4.2
[    9.780000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.000000] NET: Registered protocol family 24
[   10.020000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.020000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[   10.030000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[   10.070000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[   10.090000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[   10.090000] hub 1-0:1.0: USB hub found
[   10.090000] hub 1-0:1.0: 1 port detected
[   10.120000] nf_conntrack version 0.5.0 (964 buckets, 3856 max)
[   10.350000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   13.560000] device eth0 entered promiscuous mode



BusyBox v1.19.4 (2012-10-12 05:19:00 UTC) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 ATTITUDE ADJUSTMENT (Attitude Adjustment, r33883)
 -----------------------------------------------------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   13.1M    476.0K     12.7M   4% /
/dev/root                 2.0M      2.0M         0 100% /rom
tmpfs                    30.1M     76.0K     30.1M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock3           13.1M    476.0K     12.7M   4% /overlay
overlayfs:/overlay       13.1M    476.0K     12.7M   4% /
root@OpenWrt:/# free
             total         used         free       shared      buffers
Mem:         61708        16548        45160            0         1784
-/+ buffers:              14764        46944
Swap:            0            0            0
root@OpenWrt:/# cat /proc/cpuinfo
system type        : Atheros AR9330 rev 1
machine            : TP-LINK TL-MR3020
processor        : 0
cpu model        : MIPS 24Kc V7.4
BogoMIPS        : 265.42
wait instruction    : yes
microsecond timers    : yes
tlb_entries        : 16
extra interrupt vector    : yes
hardware watchpoint    : yes, count: 4, address/irw mask: [0x0000, 0x0180, 0x0000, 0x0008]
ASEs implemented    : mips16
shadow register sets    : 1
kscratch registers    : 0
core            : 0
VCED exceptions        : not available
VCEI exceptions        : not available

root@OpenWrt:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00010000 "u-boot"
mtd1: 000e96a8 00010000 "kernel"
mtd2: 00ee6958 00010000 "rootfs"
mtd3: 00d20000 00010000 "rootfs_data"
mtd4: 00010000 00010000 "art"
mtd5: 00fd0000 00010000 "firmware"
root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 90:F6:52:59:51:EC  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 90:F6:52:59:51:EC  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:480 errors:0 dropped:0 overruns:0 frame:0
          TX packets:480 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:32640 (31.8 KiB)  TX bytes:32640 (31.8 KiB)

wlan0     Link encap:Ethernet  HWaddr 90:F6:52:59:51:EC  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32 
          RX bytes:1358 (1.3 KiB)  TX bytes:10682 (10.4 KiB)
xopal wrote:

I'm really happy now with my nano router, hmm.. what next, maybe overclock the cpu to 600~800 Mhz would be nice big_smile

Let me find you some work here tongue

  • Integrate a High-Speed hub, so that the USB port works also with Low-Speed and Full-Speed devices

  • Boot as USB device in DFU and have the ability to flash the device from it

  • Do the same thing on an even smaller TL-WR703N smile

I own a mr3020 and it works as a audioplayer (with usb-hub with stick (extroot) and usb-audiocard) with mpd. by some reason I don't want to power it by micro-usb cable, so I have to solder power directly on the board. my question: where are the right soldering pad for power-5V and power-GND? of course I could solder it directly behind the micro-usb socket but there everything is so tiny... Are there better pads? by searching this a found some hints but I'm not sure if theses pads (see below) are the right ones and I don't want to blow my mr3020 up. any tips?
soldering power

Yes, they are!

I own both TL-WR703N and TL-MR3020 routers, which are "sister" designs, as they share 90% of their schematic.

I performed the reverse-engineering of the TL-WR703N PCB here: http://squonk42.github.com/TL-WR703N/

The R113 pad close to the Ethernet jack you chose for the Power 5V is "+5V0" on my schematic, and is directly connected to the miniUSB (microUSB for TL-WR703N) 5V power supply pin, so it is OK to use it for this purpose.

As for the GND round pads, there are only a single one in the TL-WR703N (the "GND" pad under the "SPI Flash" label in my schematic), and they deserve the same purpose: provide a SHIELD connection for an external antenna close to the different RF shunts J1/J2/J4. As they are all connected directly to GND, you can take whichever you prefer (I would avoid the one close to the populated J4, though) for GND and be safe.

I don't know if this is interesting for you, but as stated in my schematic, by populating the R113 using a big blob of solder, you bypass the U6 USB current-distribution switch. This allows supplying the router from the USB (not miniUSB) connector.

(Last edited by Squonk on 27 Nov 2012, 10:22)

Squonk wrote:

I don't know if this is interesting for you, but as stated in my schematic, by populating the R113 using a big blob of solder, you bypass the U6 USB current-distribution switch. This allows supplying the router from the USB (not miniUSB) connector.

With this bridge I could power it up by the normal/big usb connector, right? So as I mentioned I'm using a usb-hub with stick and audiocard. Would it be possible to power mr3020 up through the usb-hub (opposite direction as usual: usb-power-adapter>usb-cable>usb-hub>mr3020)?

From an MR3020 point of view yes, but it all depends on the USB hub itself: hubs usually provide power to their downstream ports through overcurrent protection switch chips, but I dont think they will do the same for the upstream port...

What I said is mostly useful for self-powered custom boards, that can thus power the MR3020 through the same USB cable used to exchange data with the router.

I think I bricked my TL-MR3020 messing around with custom firmware build settings. My 3020 didn't like the custom CFLAGS I used and now the only led that lights up is the green led power light. I'm not able to ssh into it nor ping it. I thought I would try to use a USB to ttl serial connection so I purchased this one from ebay:

serial connector

I only have the TX, RX and ground connected to the router. Here is the serial output that I received when I connected to the router:

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...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
ag7240_phy_setup
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
ag7240_phy_setup
eth1 up
eth0, eth1
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 3.3.8 (user@ubuntu) (gcc version 4.6.4 20121106 (prerelease) (Linaro GCC 4.6-2012.11) ) #1 Wed Nov 21 23:34:14 MST 2012
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
SoC: Atheros AR9330 rev 1
Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
Early memory PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line:  board=TL-MR3020 console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29480k/32768k available (1938k kernel code, 3288k reserved, 348k data, 168k init, 0k highmem)
SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:51
Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
gpiochip_add: registered GPIOs 0 to 29 on device: ath79
MIPS: machine is TP-LINK TL-MR3020
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
console [ttyATH0] enabled, bootconsole disabled
console [ttyATH0] enabled, bootconsole disabled
m25p80 spi0.0: found s25sl032a, expected m25p80
m25p80 spi0.0: s25sl032a (4096 Kbytes)
5 tp-link partitions found on MTD device spi0.0
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x0000000ed148 : "kernel"
mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
0x0000000ed148-0x0000003f0000 : "rootfs"
mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=1F0000, len=200000
0x0000001f0000-0x0000003f0000 : "rootfs_data"
0x0000003f0000-0x000000400000 : "art"
0x000000020000-0x0000003f0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.1:00 [uid=004dd041, driver=Generic PHY]
TCP cubic registered
NET: Registered protocol family 17
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 168k freed
FPU emulator disabled, make sure your toolchainwas compiled with software floating point support (soft-float)

There's no other output, and it just stops right there. I attempted to type something into the Putty but I'm not able to. Does anyone know why I would not be able to type anything into Putty?

Edit: I was able to connect to the router via serial in linux. I get the exact same return and I'm not able to type anything into the terminal window.

Update: I was having problems with keyboard input because the usb to ttl device pin out diagram I was supplied with when I purchased the device was wrong. I eventually noticed the tiny print underneath the pins which provided accurate pin locations.

(Last edited by kindle on 8 Dec 2012, 08:36)

Follow the instructions here: http://wiki.openwrt.org/toh/tp-link/tl- … al.console
Note: you have to type in the tpl as soon as the "Autobooting in 1 second" appears on the screen.
If it still isn't working, you may need the resistor mentioned in the same section.

I'm trying to run pulseaudio on the MR3020 with a USB-audio sound card.

I've got http://downloads.openwrt.org/snapshots/ … actory.bin running, but can't seen to find a way to squeeze the pulseaudio files onto it.

I have also tried setting up an SSHFS (again not enough space to install the sshfs packages) so that I can remount overlay and run and get some more space.

What's the best way to buy just a bit more space to install the pulseaudio server and usb audio kmod?

d1dd1 wrote:

(my china gps does not have an RTC and looses time after each start (--> gps fix takes long)

My GPS provides time before having a fix. I just ask gpsd for NMEA data, parse it with a small shell script and set the time the gps receiver reports.
After that, chronyd waits for a real fix (chrony wont work without fix for whatever reason) and then continues to adjust the time.

Not the first time someone asked for that.. I should write a wiki article or something..

//edit:
My point is: Perhaps your GPS too has the time before accquiring a fix. Have you checked the NMEA data, etc?

(Last edited by Cypher on 2 Dec 2012, 20:57)

opkg update?

You should also state the 3g modem ur using!

nebbia88> that worked! Thanks!

luisfmoreira> ZTE - AC2726 or ADU-520A (for now i tried only ZTE)

I'm trying now to connect to ISP, but it isn't connecting. First time i did a mistake and used "3g" as proto, and there was an errors in logs. Now i changed to correct option:
config interface 'wan'
      option ifname 'ppp0'
      option device '/dev/ttyUSB0'
      option username 'card'
      option password 'card'
      option proto 'evdo'

but now when i run ifup wan it just doesn't work without any errors in logread... I feel that i did something wrong, but have no idea what exactly... sad

Reconfigured /etc/config/network finally:

===============
config interface 'wan'
        option _orig_ifname 'ppp0'
        option _orig_bridge 'false'
        option proto '3g'
        option device '/dev/ttyUSB0'
        option service 'evdo'
        option username 'card'
        option password 'card'
===============

but getting this error in log:

===============
Dec 26 18:04:00 OpenWrt daemon.info pppd[3589]: Exit.
Dec 26 18:04:00 OpenWrt daemon.notice netifd: Interface 'wan' is now down
Dec 26 18:04:01 OpenWrt daemon.notice pppd[3642]: pppd 2.4.5 started by root, uid 0
Dec 26 18:04:02 OpenWrt local2.info chat[3646]: abort on (BUSY)
Dec 26 18:04:02 OpenWrt local2.info chat[3646]: abort on (NO CARRIER)
Dec 26 18:04:02 OpenWrt local2.info chat[3646]: abort on (ERROR)
Dec 26 18:04:02 OpenWrt local2.info chat[3646]: abort on (NO DIAL TONE)
Dec 26 18:04:02 OpenWrt local2.info chat[3646]: abort on (NO ANSWER)
Dec 26 18:04:02 OpenWrt local2.info chat[3646]: abort on (DELAYED)
Dec 26 18:04:02 OpenWrt local2.info chat[3646]: report (CONNECT)
Dec 26 18:04:02 OpenWrt local2.info chat[3646]: timeout set to 10 seconds
Dec 26 18:04:02 OpenWrt local2.info chat[3646]: send (AT^M)
Dec 26 18:04:02 OpenWrt local2.info chat[3646]: expect (OK)
Dec 26 18:04:10 OpenWrt daemon.warn pppd[3642]: Child process /usr/sbin/chat -t5 -v -E -f /etc/chatscripts/evdo.chat (pid 3645) terminated with signal 15
Dec 26 18:04:10 OpenWrt daemon.err pppd[3642]: Connect script failed
Dec 26 18:04:11 OpenWrt daemon.info pppd[3642]: Exit.
Dec 26 18:04:11 OpenWrt daemon.notice netifd: Interface 'wan' is now down
Dec 26 18:04:11 OpenWrt daemon.notice pppd[3699]: pppd 2.4.5 started by root, uid 0
Dec 26 18:04:12 OpenWrt local2.info chat[3646]: alarm
Dec 26 18:04:12 OpenWrt local2.info chat[3646]: Failed
Dec 26 18:04:12 OpenWrt local2.info chat[3703]: abort on (BUSY)
Dec 26 18:04:12 OpenWrt local2.info chat[3703]: abort on (NO CARRIER)
Dec 26 18:04:12 OpenWrt local2.info chat[3703]: abort on (ERROR)
Dec 26 18:04:12 OpenWrt local2.info chat[3703]: abort on (NO DIAL TONE)
Dec 26 18:04:12 OpenWrt local2.info chat[3703]: abort on (NO ANSWER)
Dec 26 18:04:12 OpenWrt local2.info chat[3703]: abort on (DELAYED)
Dec 26 18:04:12 OpenWrt local2.info chat[3703]: report (CONNECT)
Dec 26 18:04:12 OpenWrt local2.info chat[3703]: timeout set to 10 seconds
Dec 26 18:04:12 OpenWrt local2.info chat[3703]: send (AT^M)
Dec 26 18:04:12 OpenWrt local2.info chat[3703]: expect (OK)
Dec 26 18:04:22 OpenWrt local2.info chat[3703]: alarm
Dec 26 18:04:22 OpenWrt local2.info chat[3703]: Failed
Dec 26 18:04:22 OpenWrt daemon.err pppd[3699]: Connect script failed
Dec 26 18:04:23 OpenWrt daemon.info pppd[3699]: Exit.
Dec 26 18:04:23 OpenWrt daemon.notice netifd: Interface 'wan' is now down
Dec 26 18:04:23 OpenWrt daemon.notice pppd[3747]: pppd 2.4.5 started by root, uid 0
Dec 26 18:04:24 OpenWrt local2.info chat[3751]: abort on (BUSY)
Dec 26 18:04:24 OpenWrt local2.info chat[3751]: abort on (NO CARRIER)
Dec 26 18:04:24 OpenWrt local2.info chat[3751]: abort on (ERROR)
Dec 26 18:04:24 OpenWrt local2.info chat[3751]: abort on (NO DIAL TONE)
Dec 26 18:04:24 OpenWrt local2.info chat[3751]: abort on (NO ANSWER)
Dec 26 18:04:24 OpenWrt local2.info chat[3751]: abort on (DELAYED)
Dec 26 18:04:24 OpenWrt local2.info chat[3751]: report (CONNECT)
Dec 26 18:04:24 OpenWrt local2.info chat[3751]: timeout set to 10 seconds
Dec 26 18:04:24 OpenWrt local2.info chat[3751]: send (AT^M)
Dec 26 18:04:24 OpenWrt local2.info chat[3751]: expect (OK)
Dec 26 18:04:34 OpenWrt local2.info chat[3751]: alarm
Dec 26 18:04:34 OpenWrt local2.info chat[3751]: Failed
Dec 26 18:04:34 OpenWrt daemon.err pppd[3747]: Connect script failed
Dec 26 18:04:35 OpenWrt daemon.info pppd[3747]: Exit.
Dec 26 18:04:35 OpenWrt daemon.notice netifd: Interface 'wan' is now down
Dec 26 18:04:35 OpenWrt daemon.notice pppd[3795]: pppd 2.4.5 started by root, uid 0
Dec 26 18:04:36 OpenWrt local2.info chat[3799]: abort on (BUSY)
Dec 26 18:04:36 OpenWrt local2.info chat[3799]: abort on (NO CARRIER)
Dec 26 18:04:36 OpenWrt local2.info chat[3799]: abort on (ERROR)
Dec 26 18:04:36 OpenWrt local2.info chat[3799]: abort on (NO DIAL TONE)
Dec 26 18:04:36 OpenWrt local2.info chat[3799]: abort on (NO ANSWER)
Dec 26 18:04:36 OpenWrt local2.info chat[3799]: abort on (DELAYED)
Dec 26 18:04:36 OpenWrt local2.info chat[3799]: report (CONNECT)
Dec 26 18:04:36 OpenWrt local2.info chat[3799]: timeout set to 10 seconds
Dec 26 18:04:36 OpenWrt local2.info chat[3799]: send (AT^M)
Dec 26 18:04:36 OpenWrt local2.info chat[3799]: expect (OK)
Dec 26 18:04:46 OpenWrt local2.info chat[3799]: alarm
Dec 26 18:04:46 OpenWrt local2.info chat[3799]: Failed
Dec 26 18:04:46 OpenWrt daemon.err pppd[3795]: Connect script failed
Dec 26 18:04:47 OpenWrt daemon.info pppd[3795]: Exit.
Dec 26 18:04:47 OpenWrt daemon.notice netifd: Interface 'wan' is now down
Dec 26 18:04:47 OpenWrt daemon.notice pppd[3845]: pppd 2.4.5 started by root, uid 0
Dec 26 18:04:49 OpenWrt local2.info chat[3850]: abort on (BUSY)
Dec 26 18:04:49 OpenWrt local2.info chat[3850]: abort on (NO CARRIER)
Dec 26 18:04:49 OpenWrt local2.info chat[3850]: abort on (ERROR)
Dec 26 18:04:49 OpenWrt local2.info chat[3850]: abort on (NO DIAL TONE)
Dec 26 18:04:49 OpenWrt local2.info chat[3850]: abort on (NO ANSWER)
Dec 26 18:04:49 OpenWrt local2.info chat[3850]: abort on (DELAYED)
Dec 26 18:04:49 OpenWrt local2.info chat[3850]: report (CONNECT)
Dec 26 18:04:49 OpenWrt local2.info chat[3850]: timeout set to 10 seconds
Dec 26 18:04:49 OpenWrt local2.info chat[3850]: send (AT^M)
Dec 26 18:04:49 OpenWrt local2.info chat[3850]: expect (OK)
===============

What are the outputs of dmesg and ls /dev ?