OpenWrt Forum Archive

Topic: TP-Link TL-WR710N v2

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

Hi everyone,

There is a new version (v2) of the TP-Link TL-WR710N that I so far didn't manage to flash with OpenWRT.

I've used the v1 (EU) version for a project before with 8 MB Flash and 32 MB RAM, which could easily be flashed using the TP-Link web interface.
Now, for a new project, I bought a new WR710N that shows v2 on the packaging and on the firmware update screen:
Firmware Version: 3.15.12 Build 140114 Rel.55132n
Hardware Version: WR710N v2 00000000

Flashing the regular OpenWRT firmware for the WR710N v1 fails with error 18001: "Upgrade unsuccessfully because the length of the upgraded file is incorrect. Please check the file name."
After trying out different file names, I cut the firmware from 8126464 bytes to 3932160 bytes (most of the trailing FFs), as I figured that the v2 might no longer have 8 MB Flash, but only 4 MB instead.
When uploading this file through the web interface, I now got an error 18005: "Upgrade unsuccessfully because the version of the upgraded file was incorrect. Please check the file name."

Any idea how I should continue? Build a custom file (I've never done that)? Change headers of the firmware (where, how)?
Your help would be much appreciated smile

(Last edited by cr0nite on 25 Jan 2015, 01:08)

Shame if they've gone down to 4MB. I bought a couple of extra v1.1's (at £15 each) as these are such useful devices. One odd thing is that the LAN port reports connection at Gb in dmesg (though it's only 100Mbps of course).

there are 2 ways:

- GUESS that the components inside are the same as 710 v1, adjust header, and try to flash (risky).

- open it, connect a TTL serial adapter, and see bootlog.

it would also be nice to have a backup of the stock firmware, since i cannot find it in any tp-link website ATM.

(Last edited by nebbia88 on 25 Jan 2015, 11:23)

hi there,

same problem here,
its now officially confirmed that the tplink wr-710n (V2) does have only 4mb of flash.

i managed to wire up the serial, here is the boot log

U-Boot 1.1.4 (Jan 14 2014 - 15:03:18)

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 ...

Booting AR9330(Hornet)...
Linux version 2.6.31--LSDK-9.2.0.312 (tplink@localhost.localdomain) (gcc version 4.3.3 (GCC) ) #1 Tue Jan 14 15:07:55 CST 2014
flash_size passed from bootloader = 4
CPU revision is: 00019374 (MIPS 24Kc)
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
User-defined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:128k(u-boot),1024k(kernel),2816k(rootfs),64k(config),64k(ART) mem=32M
PID hash table entries: 128 (order: 7, 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: 29744k/32768k available (1968k kernel code, 3024k reserved, 565k data, 116k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:128
plat_time_init: plat time init done
Calibrating delay loop... 266.24 BogoMIPS (lpj=532480)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
===== ar7240_platform_init: 0


Whoops! This kernel is for product wr703 v1.0!

bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
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
NET: Registered protocol family 1
AR7240 GPIOC major 0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
fuse init (API version 7.12)
msgmni has been set to 58
alg: No test for lzma (lzma-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
ttyS0: detected caps 00000000 should be 00000100
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 ar7240-nor0
Creating 5 MTD partitions on "ar7240-nor0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000120000 : "kernel"
0x000000120000-0x0000003e0000 : "rootfs"
0x0000003e0000-0x0000003f0000 : "config"
0x0000003f0000-0x000000400000 : "ART"
->Oops: flash id 0x10215 . 
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Port Status 1c000004 
ar7240-ehci ar7240-ehci.0: ATH EHCI
ar7240-ehci ar7240-ehci.0: new USB bus registered, assigned bus number 1
ehci_reset Intialize USB CONTROLLER in host mode: 3
ehci_reset Port Status 1c000000 
ar7240-ehci ar7240-ehci.0: irq 3, io mem 0x1b000000
ehci_reset Intialize USB CONTROLLER in host mode: 3
ehci_reset Port Status 1c000000 
ar7240-ehci ar7240-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
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
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>
ar7240wdt_init: Registering WDT success
watch dog proc create successfully.
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 116k freed
init started:  BusyBox v1.01 (2012.11.26-07:26+0000) multi-call binary
This Board use 2.6.31
xt_time: kernel timezone is -0000
nf_conntrack version 0.5.0 (512 buckets, 5120 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
PPPoL2TP kernel driver, V1.0
PPTP driver version 0.8.3

 (none) mips #1 Tue Jan 14 15:07:55 CST 2014 (none)
(none) login: Now flash open!
Now flash open!
ATHR_GMAC: Length per segment 1536
ATHR_GMAC: fifo cfg 3 01f00140
2
ATHR_GMAC: Max segments per packet :   1
ATHR_GMAC: Max tx descriptor count :   40
ATHR_GMAC: Max rx descriptor count :   96
ATHR_GMAC: Mac capability flags    :   4D83
1
ATHR_GMAC: Max segments per packet :   1
ATHR_GMAC: Max tx descriptor count :   40
ATHR_GMAC: Max rx descriptor count :   252
ATHR_GMAC: Mac capability flags    :   4403
athr_gmac_ring_alloc Allocated 640 at 0x81e77800
athr_gmac_ring_alloc Allocated 4032 at 0x81d62000
Setting Drop CRC Errors, Pause Frames and Length Error frames 
Setting PHY...mac 0
athr_gmac_ring_alloc Allocated 640 at 0x81e77400
athr_gmac_ring_alloc Allocated 1536 at 0x81f2e000
athr_gmac_mii_setup: MDC check failed
Setting Drop CRC Errors, Pause Frames and Length Error frames 
ATHRS26: resetting s26
ATHRS26: s26 reset done
++++ athrs26_igmp_setup once
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
++ PVID: 0x0000001a, bitmap: 0x0000001f
++ PVID: 0x0000001a, bitmap: 0x0000001f
++ PVID: 0x0000001c, bitmap: 0x0000001f
++ PVID: 0x0000001e, bitmap: 0x0000001f
++ PVID: 0x00000020, bitmap: 0x0000001f
Setting PHY...mac 1
device eth0 entered promiscuous mode
athr_gmac_ring_free Freeing at 0x81e77800
athr_gmac_ring_free Freeing at 0x81d62000
athr_gmac_ring_alloc Allocated 640 at 0x81e77800
athr_gmac_ring_alloc Allocated 4032 at 0x81d62000
Setting Drop CRC Errors, Pause Frames and Length Error frames 
Setting PHY...mac 0
Now flash open!
athr_gmac_ring_free Freeing at 0x81e77400
athr_gmac_ring_free Freeing at 0x81f2e000
athr_gmac_ring_alloc Allocated 640 at 0x81e77400
athr_gmac_ring_alloc Allocated 1536 at 0x81f2e000
athr_gmac_mii_setup: MDC check failed
Setting Drop CRC Errors, Pause Frames and Length Error frames 
Setting PHY...mac 1
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 (AR9380, DEBUG, REGOPS_FUNC, WRITE_EEPROM, 11D)
ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
ath_ahb: 9.2.0_U5.508 (Atheros/multi-bss)
Boostrap clock 25MHz
ar9300RadioAttach: Need analog access recipe!!
Restoring Cal data from Flash
ath_get_caps[4749] rx chainmask mismatch actual 1 sc_chainmak 0
ath_get_caps[4724] tx chainmask mismatch actual 1 sc_chainmak 0
wifi0: Atheros 9380: mem=0xb8100000, irq=2
====>>>>SystemMode : Normal Router 
wlan_vap_create : enter. devhandle=0x80c082c0, opmode=IEEE80211_M_HOSTAP, flags=0x1
wlan_vap_create : exit. devhandle=0x80c082c0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
VAP device ath0 created 
====>>>>wlan: rand channel 1
 
 
 DES SSID SET=TP-LINK_9672D8 
 ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1 
athr_gmac_ring_free Freeing at 0x81e77400
athr_gmac_ring_free Freeing at 0x81f2e000
br0: port 1(eth0) entering disabled state
athr_gmac_ring_alloc Allocated 640 at 0x81e77400
athr_gmac_ring_alloc Allocated 1536 at 0x81f2e000
athr_gmac_mii_setup: MDC check failed
Setting Drop CRC Errors, Pause Frames and Length Error frames 
Setting PHY...mac 1
ath_apply_paprd_table 64, paprd cal success in channl 2412
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_9672D8 
br0: port 2(ath0) entering forwarding state
====>>>>cmdCtrl open success 
====>>>>eventCtrl open success 
====>>>>eventCtrl attach success 
====>>>>
######send req to media server: 2
 
ath_apply_paprd_table 64, paprd cal success in channl 2412

can you try login from serial with usual

user:root
pass:5up

?

if you do not find another way to backup stock fw..

yep that works, what should i do then to extract the original firmware?
from what i could see thats a realy tiny size optimized environment (you dont even have ln, or cp)

Do you have an working firmware with openwrt 4MB? Can you share?
I bough one and want to flash it!
don't have a 64bits machine... so I can t use BB.
Thanks,

Filipe

Hi,

I have installed "openwrt-ar71xx-generic-tl-wr710n-v2-squashfs-factory.bin" from original WebUI.
The installation finished w/o error.

I can connect to the router via ssh.
However, I cannot install LuCi because "no space left on device".

Question:
Is there any workaround to solve this issue?
How can I go back to original TP-Link Firmware?

THX

The discussion might have continued from here.