Router Info :
- FCC ID :TE7WR841HPV2
- SOC: Atheros AR9344 BC2A
- FLASH: Winbond 2sq54FVSIG 8MB
- RAM: Zentel A3R12E40DBF-8E DDR2 SDRAM 64 MB
Some necessary information :
# cat /proc/cmdline
console=ttyS0,115200 root=31:2 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:128k(u-boot),1024k(kernel),6912k(rootfs),64k(config),64k(art) mem=64M
# cat /proc/cpuinfo
system type : Atheros AR934x
processor : 0
c4Kc V4.12
Bogo : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw 0x0000, 0x0ff8, 0x0003, 0x0010]
ASEs implemented : mips16 dsp
shadow register sets : 1
core : 0
VCED exceptions : not available
VCEI exceptions : not available
# cat /proc/meminfo
MemTotal: 56784 kB
MemFree: 35880 kB
BB
0 kB
Active: 4604 kB
Inactive: 2le): 2440 kB
Inactive(file): 7216 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages
Slab: 4700 kB
SReclaimable: 324 kB
SUnreclaim: 4376 kB
PageTables: 200 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 28392 kB
Committed_AS: 4636 kB
VmallocTotal: 1048404 kB
VmallocUsed: 2804 kB
VmallocChunk: 1035216 kB
# cat /proc/devices
Character devices:
1 mem
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
10 misc
77 ATH_GPIOC
90 mtd
108 ppp
128 ptm
136 pts
238 ar7240_gpio_chrdev
239 ar7240_flash_chrdev
Block devices:
259 blkext
31 mtdblock
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"
# ifconfig -a
ath0 Link encap:Ethernet HWaddr EC:08:6B:60:51:C2
UP BROADCAST RUNNING MULTICAST MTU:2290 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:2201 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ath7 Link encap:Ethernet HWaddr EC:08:6B:60:51:C2
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1353 errors:2 dropped:2 overruns:0 frame:0
TX packets:115 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:89733 (87.6 KiB) TX bytes:5326 (5.2 KiB)
br0 Link encap:Ethernet HWaddr EC:08:6B:60:51:C2
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1732 errors:0 dropped:0 overruns:0 frame:0
TX packets:1326 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:101102 (98.7 KiB) TX bytes:286401 (279.6 KiB)
eth0 Link encap:Ethernet HWaddr EC:08:6B:60:51:C1
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:881 errors:0 dropped:0 overruns:0 frame:0
TX packets:2676 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:82102 (80.1 KiB) TX bytes:383073 (374.0 KiB)
eth1 Link encap:Ethernet HWaddr EC:08:6B:60:51:C3
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4320 (4.2 KiB) TX bytes:2318 (2.2 KiB)
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: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)
wifi0 Link encap:UNSPEC HWaddr EC-08-6B-60-51-C2-00-45-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24060 errors:0 dropped:0 overruns:0 frame:0
TX packets:22608 errors:1521 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:2 Memory:b8100000-b811ffff
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.ec086b6051c2 yes eth0
ath0
ath7
Here is the serial log
U-Boot 1.1.4 (Build from LSDK-9.5.3.16 at Nov 24 2015 - 15:58:51)
U-Boot DB120
Wasp 1.2
DRAM: 64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 126k for U-Boot at: 83fe0000
Reserving 192k for malloc() at: 83fb0000
Reserving 44 Bytes for Board Info at: 83faffd4
Reserving 36 Bytes for Global Data at: 83faffb0
Reserving 128k for boot params() at: 83f8ffb0
Stack Pointer at: 83f8ff98
Now running in RAM - U-Boot at: 83fe0000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x17
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
No valid address in Flash. Using fixed address
wasp reset mask:c02200
WASP ----> S27 PHY
s27 reg init
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
athrs27_phy_setup ATHR_PHY_CONTROL 4 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4 :10
eth0 up
WASP ----> S27 PHY
s27 reg init lan
ATHRS27: resetting s27
ATHRS27: s27 reset done
: cfg1 0x800c0000 cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs27_phy_setup ATHR_PHY_CONTROL 0 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0 :10
athrs27_phy_setup ATHR_PHY_CONTROL 1 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1 :10
athrs27_phy_setup ATHR_PHY_CONTROL 2 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2 :10
athrs27_phy_setup ATHR_PHY_CONTROL 3 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3 :10
eth1 up
eth0, eth1
Setting 0xb8116290 to 0x20402d0f
is_auto_upload_firmware=1
Trying eth1
enet1 port1 up
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'wr841hpv2_tp_recovery.bin'.
Load address: 0x80800000
Loading: T T T
Retry count exceeded; starting again
## Booting image at 9f020000 ...
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80185a00) ...
## Giving linux memsize in bytes, 67108864
Starting kernel ...
Booting Atheros AR934x
Linux version 2.6.31 (tomcat@buildserver) (gcc version 4.3.3 (GCC) ) #30 Tue Nov 24 16:01:22 CST 2015
flash_size passed from bootloader = 8
Ram size passed from bootloader =67108864
CPU revision is: 0001974c (MIPS 74Kc)
ath_sys_frequency: cpu srif ddr srif cpu 560 ddr 450 ahb 225
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Zone PFN ranges:
Normal 0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00004000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttyS0,115200 root=31:2 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:128k(u-boot),1024k(kernel),6912k(rootfs),64k(config),64k(art) mem=64M
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 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: 56604k/65536k available (1564k kernel code, 8860k reserved, 380k data, 108k 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: 80213240 (0x600000 bytes)
********************************************
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
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 110
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 .
Ooops, why the devices couldn't been initialed?
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>
++++++++++++++gpio_xlna_enable@543:xlna_chain0=18,enable=1:
++++++++++++++gpio_xlna_enable@554:xlna_chain1=19,enable=1:
athwdt_init: Registering WDT success
athwdt_timer_init:429: here jiffies:2149493076
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: 108k freed
.
.
init started: BusyBox v1.01 (2015.11.24-08:04+0000) multi-call binary
.
.
This Board use 2.6.31
xt_time: kernel timezone is -0000
nf_conntrack version 0.5.0 (1024 buckets, 5120 max)
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
insmod: cannot open module `/lib/modules/2.6.31/kernel/af_key.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/xfrm_user.ko': No such file or directory
(none) mips #30Now flash open!
Tue Nov 24 16:01:22 CST 2015 (none)
(none) login: Now flash open!
ATHR_GMAC: Length per segment 1536
ATHR_GMAC: fifo cfg 3 01f00140
mac:1 Registering S27....
ATHR_GMAC: RX TASKLET - Pkts per Intr:32
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 : 2D82
mac:0 Registering S27....
ATHR_GMAC: RX TASKLET - Pkts per Intr:32
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 : 2582
athr_gmac_ring_alloc Allocated 2048 at 0x838ad000
athr_gmac_ring_alloc Allocated 2048 at 0x83b6d800
WASP ----> S27 PHY MDIO
ATHRS27: resetting s27
ATHRS27: s27 reset done
++++ athrs27_igmp_setup once
port0 vid is 0xb000b
port1 vid is 0x30003
port2 vid is 0x50005
port3 vid is 0x70007
port4 vid is 0x90009
++ PVID: 0x0000000b, bitmap: 0x0000001f
++ PVID: 0x00000003, bitmap: 0x0000001f
++ PVID: 0x00000005, bitmap: 0x0000001f
++ PVID: 0x00000007, bitmap: 0x0000001f
++ PVID: 0x00000009, bitmap: 0x0000001f
vtable vid: 0x00000002, bitmap 0x00000003
vtable vid: 0x00000004, bitmap 0x00000005
vtable vid: 0x00000006, bitmap 0x00000007
vtable vid: 0x00000008, bitmap 0x00000009
vtable vid: 0x0000000a, bitmap 0x0000000b
vtable vid: 0x0000000c, bitmap 0x0000000d
vtable vid: 0x0000000e, bitmap 0x0000000f
vtable vid: 0x00000010, bitmap 0x00000011
vtable vid: 0x00000012, bitmap 0x00000013
vtable vid: 0x00000014, bitmap 0x00000015
vtable vid: 0x00000016, bitmap 0x00000017
vtable vid: 0x00000018, bitmap 0x00000019
vtable vid: 0x0000001a, bitmap 0x0000001b
.
vtable vid: 0x0000001c, bitmap 0x0000001d
vtable vid: 0x0000001e, bitmap 0x0000001f
.
.
vtable vid: 0x00000020, bitmap 0x00000021
.
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
.
athr_gmac_ring_alloc Allocated 2048 at 0x83af0800
athr_gmac_ring_alloc Allocated 2048 at 0x83af0000
WASP ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
enet1 port1 up 100Mbps Full duplex
ATHR_GMAC: Enet Unit:1 PHY:1 is UP RGMii 1000Mbps full duplex
ATHR_GMAC: done cfg2 0x7215 ifctl 0x0 miictrl
Setting Drop CRC Errors, Pause Frames and Length Error frames
Some modifications that do :
i have to replace the uboot because both stock uboot and stock firmware prevent custom firmware
***************************************
* U-Boot 1.1.4-7a540a78-clean *
* Build: 2018-02-23 *
***************************************
BOARD: TP-Link TL-WDR3500 v1
SOC: AR9344 rev. 2
CPU: MIPS 74Kc
RAM: 64 MB DDR2 16-bit CL3-4-4-10
FLASH: 8 MB Winbond W25Q64
PCIe: no device
MAC: EC:08:6B:60:51:C2
CLOCKS: CPU/RAM/AHB/SPI/REF
550/400/200/ 25/ 40 MHz