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.

robthebrew>
==================
root@OpenWrt:/# ls /dev
bus        log        mtd1       mtd3       mtd5       mtdblock2  null       pts        ttyATH0    ttyS11     ttyS15     ttyS5      ttyS9      zero
console    mem        mtd1ro     mtd3ro     mtd5ro     mtdblock3  port       random     ttyS0      ttyS12     ttyS2      ttyS6      ttyUSB0
full       mtd0       mtd2       mtd4       mtdblock0  mtdblock4  ppp        shm        ttyS1      ttyS13     ttyS3      ttyS7      urandom
kmsg       mtd0ro     mtd2ro     mtd4ro     mtdblock1  mtdblock5  ptmx       tty        ttyS10     ttyS14     ttyS4      ttyS8      watchdog
root@OpenWrt:/#
==================

==================
root@OpenWrt:/# dmesg
[    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] MyLoader: sysp=444ba8b5, boardp=5fbcaeef, parts=ebc66edc
[    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 802ef080, 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-MR3020 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: 29008k/32768k available (2209k kernel code, 3760k 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: 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 s25sl032a, expected m25p80
[    0.500000] m25p80 spi0.0: s25sl032a (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-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.540000] 0x0000001096a8-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=2D0000, len=120000
[    0.570000] 0x0000002d0000-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: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
[    3.090000] Registered led device: tp-link:green:3g
[    3.090000] Registered led device: tp-link:green:wlan
[    3.100000] Registered led device: tp-link:green:lan
[    3.100000] Registered led device: tp-link:green:wps
[    5.180000] eth0: link up (100Mbps/Full duplex)
[    6.390000] JFFS2 notice: (441) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 12 of xref (0 dead, 2 orphan) found.
[    6.510000] eth0: link down
[    8.320000] Compat-drivers backport release: compat-drivers-2012-09-04-2-gddac993
[    8.330000] Backport based on wireless-testing.git master-2012-09-07
[    8.340000] compat.git: wireless-testing.git
[    8.370000] cfg80211: Calling CRDA to update world regulatory domain
[    8.370000] cfg80211: World regulatory domain updated:
[    8.380000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    8.390000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.400000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    8.400000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    8.410000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.420000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.760000] usbcore: registered new interface driver usbfs
[    8.770000] usbcore: registered new interface driver hub
[    8.780000] usbcore: registered new device driver usb
[    9.460000] ath: EEPROM regdomain: 0x0
[    9.460000] ath: EEPROM indicates default country code should be used
[    9.460000] ath: doing EEPROM country->regdmn map search
[    9.460000] ath: country maps to regdmn code: 0x3a
[    9.460000] ath: Country alpha2 being used: US
[    9.460000] ath: Regpair used: 0x3a
[    9.460000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    9.460000] Registered led device: ath9k-phy0
[    9.460000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[    9.490000] cfg80211: Calling CRDA for country: US
[    9.490000] cfg80211: Regulatory domain changed to country: US
[    9.490000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    9.500000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[    9.510000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[    9.520000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.530000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.530000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.540000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[    9.590000] PPP generic driver version 2.4.2
[    9.840000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.060000] NET: Registered protocol family 24
[   10.080000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.090000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[   10.090000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[   10.130000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[   10.150000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[   10.150000] hub 1-0:1.0: USB hub found
[   10.150000] hub 1-0:1.0: 1 port detected
[   10.180000] nf_conntrack version 0.5.0 (456 buckets, 1824 max)
[   10.420000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   10.460000] uhci_hcd: USB Universal Host Controller Interface driver
[   10.580000] usb 1-1: new full-speed USB device number 2 using ehci-platform
[   10.630000] usbcore: registered new interface driver usbserial
[   10.640000] USB Serial support registered for generic
[   10.810000] usbserial_generic 1-1:1.0: generic converter detected
[   10.810000] usb 1-1: generic converter now attached to ttyUSB0
[   10.820000] usbcore: registered new interface driver usbserial_generic
[   10.820000] usbserial: USB Serial Driver core
[   14.130000] device eth0 entered promiscuous mode
[   14.290000] eth0: link up (100Mbps/Full duplex)
[   14.300000] br-lan: port 1(eth0) entered forwarding state
[   14.300000] br-lan: port 1(eth0) entered forwarding state
[   16.300000] br-lan: port 1(eth0) entered forwarding state
==================

@openewrtn00b

Your modem driver is not properly installed , try install usbutils package.

opkg update
opkag install usbutils

lsusb

(Last edited by xopal on 26 Dec 2012, 21:39)

root@OpenWrt:/# opkg update
Downloading http://downloads.openwrt.org/attitude_a … ckages.gz.
Inflating http://downloads.openwrt.org/attitude_a … ckages.gz.
Updated list of available packages in /var/opkg-lists/attitude_adjustment.
root@OpenWrt:/# opkag install usbutils
/bin/ash: opkag: not found
root@OpenWrt:/# opkg install usbutils
Package usbutils (005-1) installed in root is up to date.
root@OpenWrt:/# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 19d2:fff5 ZTE WCDMA Technologies MSM

you installed
kmod-serial-option ?

post opkg list-installed

openewrtn00b wrote:

root@OpenWrt:/# dmesg
[    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
...
...
root@OpenWrt:/# opkg update
Downloading http://downloads.openwrt.org/attitude_a … ckages.gz.
Inflating http://downloads.openwrt.org/attitude_a … ckages.gz.

You should update the firmware from the beta2 (of mid-October) to rc1 (end of November). I didn't check if there was anything specific fixed for your modules, but there were some fixes to the generic network interface logic.

(Last edited by hnyman on 27 Dec 2012, 11:45)

agreed, then lsmod | grep usb
Looks like some part of usb-serial is missing.
Have you got:

kmod-usb-serial, and
kmod-usb-serial-option, and
kmod-usb-serial-wwan, or
kmod-usb-acm i.s.o. the last two, depending on dongle/phone hardware.
kmod-usb-serial-option is not available for 2.4 kernel, install kmod-usb-serial and put a line equivalent to "usbserial vendor=0x12d1 product=0x1003 maxSize=2048" in /etc/modules.d/60-usb-serial)

openewrtn00b wrote:

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

which one is for me? Do i understand correctly that i can upgrade via web GUI (System-Backup/Flash Firmware->Flash new firmware image)?

Squashfs as the file system. Sysupgrade (to upgrade from a live Openwrt system). Yes.

Just flashed my mr3020 v1.7 with OpenWrt 12.09-RC1 (Attitude Adjustment) and everything is working great. Updated wiki with this info.

Hi,

I want to upgrade from attitude adjustment 12.09-beta to 12.09-rc1.

Is there a way without serial-cable?

How must I do this?

I hope anyone can help me. :-)

Sure :-)

Just transfer the openwrt-*-sqashfs-sysupgrade.bin image to /tmp (ram disk) and use sysupgrade command.

wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-sysupgrade.bin
sysupgrade -n /tmp/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-sysupgrade.bin

I did it so. Flashing worked but now I can't login via SSH any longer.
SSH responds on 192.168.1.1 but my old root-pwd doesn't work and no any default combination.

Via WebIf I also can't login - on port 80 no service is listening - maybe it's because before flashing I removed luci!?

What can I do now?

Ah, via telnet it works - no password was set.

But luci is not installed any longer - which file must I flash to get a clean installation with all default packages or would it better to flash now the original TP-Link firmware and then reflashing OpenWrt?

(Last edited by onlineuser on 1 Jan 2013, 17:55)

onlineuser wrote:
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-sysupgrade.bin
sysupgrade -n /tmp/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-sysupgrade.bin

You flashed the trunk, NOT the 12.09-rc1, this is why you don't have LuCI.

Do the same thing again with the AA branch, whose last revision should be the RC1.

Thanks.
What do you mean with "AA branch" (ahhh - AA ==> Attitude Adjustment)?

Hm, in meantime I flashed the original TPLink firmware and now I will flash rc1. :-)

Now I took:

http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/ar71xx/generic/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

I needed some more space for openvpn.

Is there a way to use a sdcard for getting more space for openvn?
The 3020 has a usb port and the original firmware also supports usb sticks.

How can I tell openwrt to use external space (I can remeber from NSLU with unslung, but there it was complex).

(Last edited by onlineuser on 1 Jan 2013, 21:17)

The kernel (and all packages in general) tend to take more and more space as time goes by, hopefully not bloat but real new functionalities...

But this unfortunately is making the 4/32MB setup less and less usable sad

It is now difficult to have a firmware with LuCI (integrated by default in the AA branch) and still have enough space to be able to fit the required packages to pivot the root onto an external flash!

The only practical way out is to compile a firmware by yourself and put LuCI as an optional package and btw, put all the required packages for pivot root built-in.

@Onlineuser

If you need more space you can configure and use extroot. Look it up in the OpenWrt Wiki.

written_direcon wrote:

@Onlineuser

If you need more space you can configure and use extroot. Look it up in the OpenWrt Wiki.

Yes, but the problem is now that the AA branch comes with LuCI built-in, and that LuCI + everything required to get an extroot doesn't fit in 4MB Flash any more!

Then it's time to build AA by yourself!!

Squonk wrote:
written_direcon wrote:

@Onlineuser

If you need more space you can configure and use extroot. Look it up in the OpenWrt Wiki.

Yes, but the problem is now that the AA branch comes with LuCI built-in, and that LuCI + everything required to get an extroot doesn't fit in 4MB Flash any more!

it depends..

installing only

opkg install block-mount kmod-usb-storage kmod-fs-ext4

you get:

root@OpenWrt:/# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                    1088       632       456  58% /

so it's ok... i used to install also e2fsprogs, to partition and format the usb disk, now it's impossible.. you need to format it on your pc ^^

Cool!

When I use a usb-card-reader with a sdcard, do I need to take kmod-mmc instead of kmod-usb-storage?

Which partitions must be created on sdcard?

No.
You need kmod-usb2 & kmod-usb-storage + a filesystem kmod.

one ext2/3/4 partition and one swap partition ( then you'll use mkswap /dev/sda2 if you want..)

I use MiniTool Partition Wizard on a Windows PC for this :-)

Sorry, posts 326 to 325 are missing from our archive.