Got a new TP-Link TL-WDR4310 v1.0 today So... the first thing I did was to open the case.
Atheros AR9344 CPU Radio AR9580-AR1A and AR8327N Gigabit Switch
8 MB Flash Spansion Flash Memory FL064KIF
128 MB RAM Hynix DDR2 H5PS5162GFR (2 Chips)
Then added pins on the serial port header and booted :
U-Boot 1.1.4 (Mar 6 2012 - 20:37:39)
U-boot DB120
DRAM: 128 MB
id read 0x100000ff
flash size 8MB, sector count = 128
Flash: 8 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ag934x_enet_initialize...
No valid address in Flash. Using fixed address
wasp reset mask:c03300
WASP ----> S17 PHY *
: cfg1 0x7 cfg2 0x7114
eth0: ba:be:fa:xx:xx:xx <---EDIT
athrs17_reg_init: complete
eth0 up
eth0
Autobooting in 1 seconds
## Booting image at 9f020000 ...
Uncompressing Kernel Image ... OK
Starting kernel ...
Booting Atheros AR934x
Linux version 2.6.31--LSDK-9.2.0_U6.616 (root@localhost.localdomain) (gcc version 4.3.3 (GCC) ) #1 Tue Mar 6 20:40:37 PST 2012
Ram size passed from bootloader =128M
flash_size passed from bootloader = 8
CPU revision is: 0001974c (MIPS 74Kc)
ath_sys_frequency: cpu srif ddr srif cpu 560 ddr 450 ahb 225
Determined physical RAM map:
memory: 08000000 @ 00000000 (usable)
Zone PFN ranges:
Normal 0x00000000 -> 0x00008000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00008000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:128k(u-boot),1024k(kernel),6912k(rootfs),64k(config),64k(ART) mem=128M
PID hash table entries: 512 (order: 9, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 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: 113180k/131072k available (1637k kernel code, 17728k reserved, 399k data, 112k init, 0k highmem)
NR_IRQS:128
plat_time_init: plat time init done
Calibrating delay loop... 279.55 BogoMIPS (lpj=559104)
Mount-cache hash table entries: 512
****************ALLOC***********************
Packet mem: 8022d380 (0xe00000 bytes)
********************************************
NET: Registered protocol family 16
PCI init:ath_pcibios_init
ath_pcibios_init(294): PCI CMD write: 0x356
registering PCI controller with io_map_base unset
current_wifi_value == 0x0
bio: create slab <bio-0> at 0
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: PME# disabled
Returning IRQ 64
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
ATH GPIOC major 0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 221
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xb8020000 (irq = 19) is a 16550A
console [ttyS0] enabled
PPP generic driver version 2.4.2
NET: Registered protocol family 24
5 cmdlinepart partitions found on MTD device ath-nor0
Creating 5 MTD partitions on "ath-nor0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000120000 : "kernel"
0x000000120000-0x0000007e0000 : "rootfs"
0x0000007e0000-0x0000007f0000 : "config"
0x0000007f0000-0x000000800000 : "ART"
->Oops: flash id 0xef4017 .
TCP cubic registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
athwdt_init: Registering WDT success
ath_otp_init: Registering OTP success
ath_clksw_init: Registering Clock Switch Interface success
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 112k freed
init started: BusyBox v1.01 (2012.02.11-02:20+0000) multi-call binary
This Board use 2.6.31
xt_time: kernel timezone is -0000
nf_conntrack version 0.5.0 (2048 buckets, 5120 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
ip_tables: (C) 2000-2006 Netfilter Core Team
insmod: cannot open module `/lib/modules/2.6.31/kernel/iptable_raw.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/flashid.ko': No such file or directory
PPPoL2TP kernel driver, V1.0
PPTP driver version 0.8.3
insmod: cannot open module `/lib/modules/2.6.31/kernel/harmony.ko': No such file or directory
Now flash open!
(none) mips #1 Tue Mar 6 20:40:37 PST 2012 (none)
(none) login: Now flash open!
ATHR_GMAC: Length per segment 1536
ATHR_GMAC: fifo cfg 3 01f00140
ATHR_GMAC: RX TASKLET - Pkts per Intr:100
ATHR_GMAC: Mac address for unit 0:bfff0000
ATHR_GMAC: ff:ff:ff:ff:ff:ff
ATHR_GMAC: Max segments per packet : 1
ATHR_GMAC: Max tx descriptor count : 128
ATHR_GMAC: Max rx descriptor count : 128
ATHR_GMAC: Mac capability flags : 2381
athr_gmac_ring_alloc Allocated 2048 at 0x8784a000
athr_gmac_ring_alloc Allocated 2048 at 0x879de800
WASP ----> S17 PHY *
Setting Drop CRC Errors, Pause Frames and Length Error frames
Hello, nat module!
thread: napt_ct_scan create success pid:95
netlink_kernel_create succeeded at tp_rule_nl_prot: [29]
isis_ip_intf_entry_add id[0] for vid[1]
isis_ip_intf_entry_add id[1] for vid[2]
Adding ACL rules for SSDP 18 - upnp_ssdp_add_acl_rules
Adding ACL rules for IGMP QUERY 19 - upnp_ssdp_add_acl_rules
Adding ACL rules for IPv4 IGMP Streaming Pass-Through 20 - upnp_ssdp_add_acl_rules
ACL is not yet enabled. Enabling...
ACL(Index 95) For packet From Wan Port and TTL is zero
######## S17 SSDK init succeeded! ########
athrs17_reg_init:done
Setting PHY...
configure the RGMII
Phy setup Complete
napt_ct_scan_thread: time: 4
napt_hash_init
set the age mode = 1
device eth0.1 entered promiscuous mode
device eth0 entered promiscuous mode
SET WAN MAC:8c-21-0a-xx-xx-xx <---EDIT
isis_ip_intf_entry_add id[1] for vid[2]
Now flash open!
br0: port 1(eth0.1) entering forwarding state
ACL Rule(Index 94) For Packet From WAN to LAN Port And Dip is in lan net
nf_conntrack_rtsp v0.6.21 loading
nf_nat_rtsp v0.6.21 loading
asf: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 0.9.17.1 (AR5416, AR9380, REGOPS_FUNC, WRITE_EEPROM, 11D)
ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
ath_dfs: Version 2.0.0
Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
ath_ahb: 9.2.0_U10.1020 (Atheros/multi-bss)
__ath_attach: Set global_scn[0]
ACBKMinfree = 48
ACBEMinfree = 32
ACVIMinfree = 16
ACVOMinfree = 0
CABMinfree = 48
UAPSDMinfree = 0
Restoring Cal data from Flash
dfs_attach: use DFS enhancements
DFS min filter rssiThresh = 18
DFS max pulse dur = 151 ticks
ath_get_caps[5105] rx chainmask mismatch actual 3 sc_chainmak 0
ath_get_caps[5080] tx chainmask mismatch actual 3 sc_chainmak 0
SC Callback Registration for wifi0
wifi0: Atheros 9340: mem=0xb8100000, irq=2
ath_pci: 9.2.0_U10.1020 (Atheros/multi-bss)
__ath_attach: Set global_scn[1]
ACBKMinfree = 48
ACBEMinfree = 32
ACVIMinfree = 16
ACVOMinfree = 0
CABMinfree = 48
UAPSDMinfree = 0
Restoring Cal data from Flash
dfs_attach: use DFS enhancements
DFS min filter rssiThresh = 18
DFS max pulse dur = 151 ticks
ath_get_caps[5105] rx chainmask mismatch actual 7 sc_chainmak 0
ath_get_caps[5080] tx chainmask mismatch actual 7 sc_chainmak 0
SC Callback Registration for wifi1
wifi1: Atheros 9580: mem=0x10000000, irq=64 hw_base=0xb0000000
dfs_init_radar_filters: Unknown dfs domain 0
wlan_vap_create : enter. devhandle=0x86db42c0, opmode=IEEE80211_M_HOSTAP, flags=0x1
wlan_vap_create : exit. devhandle=0x86db42c0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
VAP device ath0 created
DES SSID SET=TP-LINK_2.4GHz_D99C97
ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
device ath0 entered promiscuous mode
br0: port 2(ath0) entering forwarding state
ieee80211_ioctl_siwmode: imr.ifm_active=918144, new mode=3, valid=1
br0: port 2(ath0) entering disabled state
DES SSID SET=TP-LINK_2.4GHz_D99C97
br0: port 2(ath0) entering forwarding state
TP_RULE_SWITCH_WAN_TYPE
br0: port 2(ath0) entering disabled state
br0: starting userspace STP failed, starting kernel STP
br0: topology change detected, propagating
br0: port 2(ath0) entering forwarding state
dfs_init_radar_filters: Unknown dfs domain 0
wlan_vap_create : enter. devhandle=0x87bd82c0, opmode=IEEE80211_M_HOSTAP, flags=0x1
wlan_vap_create : exit. devhandle=0x87bd82c0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
VAP device ath1 created
DES SSID SET=TP-LINK_5GHz_D99C98
ieee80211_ioctl_siwmode: imr.ifm_active=66176, new mode=3, valid=1
Found best 11na chan: 149
br0: port 1(eth0.1) entering disabled state
br0: topology change detected, propagating
br0: port 1(eth0.1) entering forwarding state
device ath1 entered promiscuous mode
br0: topology change detected, propagating
br0: port 3(ath1) entering forwarding state
ieee80211_ioctl_siwmode: imr.ifm_active=852608, new mode=3, valid=1
br0: port 3(ath1) entering disabled state
DES SSID SET=TP-LINK_5GHz_D99C98
br0: topology change detected, propagating
br0: port 3(ath1) entering forwarding state
br0: port 3(ath1) entering disabled state
br0: topology change detected, propagating
br0: port 3(ath1) entering forwarding state
fuse init (API version 7.12)
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Port Status 1c000004
ath-ehci ath-ehci.0: ATH EHCI
ath-ehci ath-ehci.0: new USB bus registered, assigned bus number 1
ehci_reset Intialize USB CONTROLLER in host mode: 13
ehci_reset Port Status 1c000000
ath-ehci ath-ehci.0: irq 3, io mem 0x1b000000
ehci_reset Intialize USB CONTROLLER in host mode: 13
ehci_reset Port Status 1c000000
ath-ehci ath-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
SCSI subsystem initialized
usb 1-1: new high speed USB device using ath-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
GPL NetUSB up!
kc 88 : run_telnetDBGDServer start
kc 225 : init_DebugD end
INFO16B9: NetUSB 1.161, 0002061F : Feb 29 2012 15:22:09
INFO16BB: AUTH ISOC
INFO16BC:
usbcore: registered new interface driver KC NetUSB General Driver
INFO0076: init proc : PAGE_SIZE 4096
INFO1715: Check mac address
INFO1575: sleep to wait br0 to wake up
INFO02D0: use dev Name br0
INFO157E: sleep to wait br0 end.
INFO1597: UDP_BROAD 7437 tcpPort:625868800
INFO02D0: use dev Name br0
my server name : TL-WDR4310
INFO14CE: tcpConnector() started...
TP_RULE_NAT:enable hardware nat
INFO13AB: Bind to br0
TP_RULE_SWITCH_WAN_TYPE
TL-WDR4310 mips #1 Tue Mar 6 20:40:37 PST 2012 (none)
TL-WDR4310 login: root
Password: 5up <---EDIT
Jan 1 00:01:08 login[74]: root login on `ttyS0'
BusyBox v1.01 (2012.02.11-02:20+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
cat /proc/cpuinfo
system type : Atheros AR934x
processor : 0
cpu model : MIPS 74Kc V4.12
BogoMIPS : 279.55
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0a40, 0x0640, 0x0158]
ASEs implemented : mips16 dsp
shadow register sets : 1
core : 0
VCED exceptions : not available
VCEI exceptions : not available
cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00010000 "u-boot"
mtd1: 00100000 00010000 "kernel"
mtd2: 006c0000 00010000 "rootfs"
mtd3: 00010000 00010000 "config"
mtd4: 00010000 00010000 "ART"
# cat /proc/devices
Character devices:
1 mem
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
10 misc
21 sg
77 ATH_GPIOC
90 mtd
108 ppp
128 ptm
136 pts
180 usb
189 usb_device
238 ar7240_gpio_chrdev
239 ar7240_flash_chrdev
Block devices:
259 blkext
8 sd
31 mtdblock
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
cat /proc/meminfo
MemTotal: 113456 kB
MemFree: 87728 kB
Buffers: 3176 kB
Cached: 10508 kB
SwapCached: 0 kB
Active: 4992 kB
Inactive: 11020 kB
Active(anon): 2328 kB
Inactive(anon): 0 kB
Active(file): 2664 kB
Inactive(file): 11020 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 2348 kB
Mapped: 2176 kB
Slab: 5408 kB
SReclaimable: 440 kB
SUnreclaim: 4968 kB
PageTables: 260 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 56728 kB
Committed_AS: 7712 kB
VmallocTotal: 1048404 kB
VmallocUsed: 136 kB
VmallocChunk: 1039080 kB
cat /proc/iomem
00000000-07ffffff : System RAM
00002000-0019b72f : Kernel code
0019b730-001ff5ff : Kernel data
10000000-17ffffff : PCI memory space
10000000-1001ffff : 0000:00:00.0
10000000-1001ffff : ath
10020000-1002ffff : 0000:00:00.0
18020000-18020fff : serial8250.0
18127000-18127dfe : ath-pciep.0
1b000000-1bffffff : ath-ehci.0
1b000000-1bffffff : ehci_hcd
b8020000-b802001f : serial
# ps
PID Uid VmSize Stat Command
1 root 392 S init
2 root SW< [kthreadd]
3 root SW< [ksoftirqd/0]
4 root SW< [events/0]
5 root SW< [khelper]
6 root SW< [async/mgr]
7 root SW< [kblockd/0]
8 root SW [pdflush]
9 root SW [pdflush]
10 root SW< [kswapd0]
17 root SW< [mtdblockd]
18 root SW< [unlzma/0]
71 root 2532 S /usr/bin/httpd
74 root 440 R -sh
75 root 2532 S /usr/bin/httpd
76 root 2532 S /usr/bin/httpd
79 root 792 S ushare -d -x -f /tmp/ushare.conf
80 root 364 S /usr/bin/httpd
86 root 344 S syslogd -C -l 7
90 root 288 S klogd
95 root SW< [napt_ct_scan]
246 root 352 S /sbin/udhcpc -h TL-WDR4310 -i eth0.2 -p /tmp/wr841n/u
247 root 212 S /sbin/udhcpc -h TL-WDR4310 -i eth0.2 -p /tmp/wr841n/u
251 root 332 S /usr/sbin/udhcpd /tmp/wr841n/udhcpd.conf
288 root 2532 S /usr/bin/httpd
309 root 2532 S /usr/bin/httpd
310 root 2532 S /usr/bin/httpd
416 root 616 S hostapd /tmp/topology.conf
417 root 2532 S /usr/bin/httpd
419 root 2532 S /usr/bin/httpd
420 root 2532 S /usr/bin/httpd
421 root 2532 S /usr/bin/httpd
427 root 2532 S /usr/bin/httpd
432 root 2532 R /usr/bin/httpd
441 root 2532 S /usr/bin/httpd
539 root 612 S hostapd /tmp/topology_5G.conf
542 root 2532 S /usr/bin/httpd
547 root 2532 S /usr/bin/httpd
554 root 2532 S /usr/bin/httpd
555 root 2532 S /usr/bin/httpd
558 root 204 S /sbin/tphotplug -d
559 root 2532 S /usr/bin/httpd
572 root SW< [khubd]
593 root SW [ telnetDBGD ]
594 root SW [ acktelnetDBGD ]
596 root SW [NU VM]
597 root SW [NU UDP]
598 root SW [NU TCP]
599 root 2532 S /usr/bin/httpd
600 root 2532 R /usr/bin/httpd
601 root 2532 S /usr/bin/httpd
602 root 2532 S /usr/bin/httpd
605 root 2532 S /usr/bin/httpd
609 root 304 S /usr/bin/lld2d br0 ath0
612 root 792 S ushare -d -x -f /tmp/ushare.conf
613 root 792 S ushare -d -x -f /tmp/ushare.conf
615 root 792 S ushare -d -x -f /tmp/ushare.conf
616 root 792 S ushare -d -x -f /tmp/ushare.conf
617 root 792 S ushare -d -x -f /tmp/ushare.conf
619 root 792 S ushare -d -x -f /tmp/ushare.conf
620 root 792 S ushare -d -x -f /tmp/ushare.conf
630 root 396 R ps
# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock2 5248 5248 0 100% /
(Last edited by ldpinney on 30 Apr 2012, 02:49)