OpenWrt Forum Archive

Topic: TP-Link WR2543ND (hw v1.2) running r30639

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

It's working with no special procedures (apart of the fact that trunk builds are lacking the web UI)!

A few very initial feedbacks are here
WiFi g+n is actually working: my device doesn't recognize 40 MHz  channels. By setting 20 MHz channels I've been able to connect.
Also USB seems to be working, at least with storage.
So far only the WiFi LEDs seems to me to be missing.
This is the boot log:

[    0.000000] Linux version 3.2.5 (openwrt@OpenWRTBuild) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sun Feb 19 11:10:16 MST 201
2
[    0.000000] MyLoader: sysp=00000000, boardp=00000000, parts=00000000
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7242 rev 1
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.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_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00004000
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 802e0cf0, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3
[    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: 16256
[    0.000000] Kernel command line:  board=TL-WR2543N console=ttyS0,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: 61684k/65536k available (2165k kernel code, 3852k reserved, 399k data, 196k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:48
[    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] MIPS: machine is TP-LINK TL-WR2543N/ND
[    0.130000] registering PCI controller with io_map_base unset
[    0.340000] bio: create slab <bio-0> at 0
[    0.350000] pci 0000:00:00.0: [168c:0030] type 0 class 0x000280
[    0.350000] pci 0000:00:00.0: invalid calibration data
[    0.350000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0001ffff 64bit]
[    0.350000] pci 0000:00:00.0: reg 30: [mem 0x00000000-0x0000ffff pref]
[    0.350000] pci 0000:00:00.0: supports D1
[    0.350000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.350000] pci 0000:00:00.0: PME# disabled
[    0.350000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[    0.360000] pci 0000:00:00.0: BAR 0: set to [mem 0x10000000-0x1001ffff 64bit] (PCI address [0x10000000-0x1001ffff])
[    0.370000] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[    0.370000] pci 0000:00:00.0: using irq 40 for pin 1
[    0.380000] Switching to clocksource MIPS
[    0.380000] NET: Registered protocol family 2
[    0.390000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.390000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.400000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.400000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.410000] TCP reno registered
[    0.410000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.420000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.430000] NET: Registered protocol family 1
[    0.430000] PCI: CLS 0 bytes, default 32
[    0.450000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.460000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.470000] msgmni has been set to 120
[    0.470000] io scheduler noop registered
[    0.480000] io scheduler deadline registered (default)
[    0.480000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.510000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.520000] console [ttyS0] enabled, bootconsole disabled
[    0.530000] m25p80 spi0.0: found s25sl064a, expected m25p80
[    0.540000] m25p80 spi0.0: max_read_len set to 64 bytes
[    0.540000] m25p80 spi0.0: s25sl064a (8192 Kbytes)
[    0.550000] 5 tp-link partitions found on MTD device spi0.0
[    0.560000] Creating 5 MTD partitions on "spi0.0":
[    0.560000] 0x000000000000-0x000000020000 : "u-boot"
[    0.570000] 0x000000020000-0x000000103ec4 : "kernel"
[    0.570000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.590000] 0x000000103ec4-0x0000007f0000 : "rootfs"
[    0.590000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.610000] mtd: partition "rootfs" set to be root filesystem
[    0.610000] mtd: partition "rootfs_data" created automatically, ofs=270000, len=580000 
[    0.620000] 0x000000270000-0x0000007f0000 : "rootfs_data"
[    0.630000] 0x0000007f0000-0x000000800000 : "art"
[    0.630000] 0x000000020000-0x0000007f0000 : "firmware"
[    0.650000] rtl8367 rtl8367: using GPIO pins 1 (SDA) and 6 (SCK)
[    0.650000] rtl8367 rtl8367: RTL8367R ver. 0 chip found
[    2.550000] rtl8367: probed
[    2.550000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    3.110000] TCP westwood registered
[    3.110000] NET: Registered protocol family 17
[    3.120000] Bridge firewalling registered
[    3.120000] 8021q: 802.1Q VLAN Support v1.8
[    3.150000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    3.160000] Freeing unused kernel memory: 196k freed
[    6.610000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[    6.960000] Button Hotplug driver version 0.4.1
[    7.000000] eth0: link up (1000Mbps/Full duplex)
[    7.030000] Registered led device: tp-link:green:usb
[    7.030000] Registered led device: tp-link:green:wps
...

This is /proc/cpuinfo

system type             : Atheros AR7242 rev 1
machine                 : TP-LINK TL-WR2543N/ND
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, 0x0ff8, 0x0ff8, 0x0ff8]
ASEs implemented        : mips16
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

And this is the motd:

BusyBox v1.19.3 (2012-02-18 23:34:43 MST) 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 (bleeding edge, r30639) ----------
  * 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
 -----------------------------------------------------

Anyone else testing this device?

(Last edited by uqbar on 23 Feb 2012, 16:04)

WiFi led still not working as of r30728 (2012.02.27)

Everything but Wifi led is OK with r30753 (2012.02.29).
There seems to be no "tp-link:green:wlan" item in the /sys virtual fs.

(Last edited by uqbar on 5 Mar 2012, 07:53)

Also for r30857 (2012.03.10) the only missing thing are the WiFi leds.

I installed a self-compiled OpenWRT trunk (r31285) on this device today [s]and for me 40 MHz isn't working either[/s]. Do you know if there is any progress with the wireless LEDs?

(Last edited by j8soot on 15 Apr 2012, 04:03)

Actually 40MHz is working fine at 5GHz:

config wifi-device 'radio0'
    option type 'mac80211'
        option macaddr 'aa:bb:cc:dd:ee:ff'
        list ht_capab 'LDPC'
        list ht_capab 'SHORT-GI-20'
        list ht_capab 'SHORT-GI-40'
        list ht_capab 'TX-STBC'
        list ht_capab 'RX-STBC1'
        list ht_capab 'DSSS_CCK-40'
        option channel '36'
        option txpower '20'
        option hwmode '11na'
        option htmode 'HT40+'
        option country 'GB'

config wifi-iface
    option device 'radio0'
    option network 'lan'
    option mode 'ap'
    option ssid 'wr2543nd'
    option encryption 'psk2'
    option key 'password'

I used LuCI to reconfigure the wireless from the 2.4GHz defaults to 5GHz and 40MHz. It did option hwmode '11na' and 40MHz worked whereas before I had manually configured with option hwmode '11an'.

j8soot wrote:

Do you know if there is any progress with the wireless LEDs?

None up to trunk build "r31291".

j8soot wrote:

Do you know if there is any progress with the wireless LEDs?

None as of Bleeding Edge, r31506 (2012.04.29):

# ls -l /sys/devices/platform/leds-gpio/leds/
drwxr-xr-x    2 root     root             0 Jan  1  1970 tp-link:green:usb
drwxr-xr-x    2 root     root             0 Jan  1  1970 tp-link:green:wps

Moreover, the LuCI web UI reports also a ath9k-phy0 which seems to be unresponsive to any led configuration.
Everything else seems to be working, but I have not checked all the features.

LEDs are working at least with r32656 (2012.07.11).
I haven't tested with earlier trunk releases.
What I have done is:

1. Go to System->LED Configuration
2. Create a LED profile like this:
2.1 Name: WIFI
2.2 LED Name: ath9k-phy0
2.3 Default State: uchecked
2.4 Trigger: netdev
2.5 Device: wlan0
2.6 Trigger mode: your choice (I've checked all three options)
2.7 Save&Apply

I have no 802.11a device to check the second wireless led. Anyone doing it?

The discussion might have continued from here.