I finally got around as promised (#1 #2) to fixing the serial console for the TP-LINK Viettel version I had laying around.
I was delayed due to a 24V soldering iron tip burning out and a fake Nokia 3.3v serial cable DKU-5 that just didn't work, but now I'm up and running with serial console access.
"Error
Error code: 18005
Upgrade unsuccessfully because the version of the upgraded file was incorrect. Please check the file name."I guess I'll have to wire up a serial cable, take some photo's and let you know I go, with a status update next week.
I find it really annoying that the factory upgrades don't work. It looks like the Telco may have asked TP-Link to do as much as possible to block openwrt enthusiasts, or the v9.2 is different hardware.....Firmware Version: Flash:8M_Memory:32M_3.15.9 Build 140806 Rel.34809n Hardware Version: WR841N v9 00000000
These will be a nice one to hack. It looks like I'll be needing a custom build? Do your factory roms have IPV6 an TR-069? 4Meg flash on all the others right?
This TP-LINK 841N V9.2 is NOT firmware comptaible with openwrt OR TP-LINK standard firmware for the TP-Link 841n v9. The custom TP-Link/Viettel firmware has IP6 support and also TR-069.
I have sighted the custom flash chip on the board. Here is the datasheet.
http://www.winbond.com/hq/product/code- … 4Mbit(8MB)
Here is a picture of some Vietnamese trying to update the custom Viettel firmware with the standard TP-LINK firmware on some Vietnamese forums:
https://vozforums.com/showthread.php?t= … amp;page=1
I am now going to attempt to port openwrt to this. it shouldn't be too much work everything the is the same except for the flash chip. In order to make a Factory.bin openwrt upgrade format I need to get access to the tp-link firmware to see what signature it looks for before accepting an upgrade image.
This router is extremely common in Vietnam, and is being provided with all new Viettel internet connections in the last year. Due to the way Viettel "nettopia" configurations are set up, large groups of people could potentially run their own PPPOE lan parties.
Now here's access to the serial console.
First boot
U-Boot 1.1.4 (Build from LSDK-9.5.3.16 at Aug 6 2014 - 09:33:12)
ap143 - Honey Bee 1.1
DRAM: 32 MB
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x17
Flash: 8 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
ath_gmac_enet_initialize: reset mask:0xc02200
Scorpion ---->S27 PHY*
S27 reg init
GMAC: cfg1 0x800c0000 cfg2 0x7114
eth0: XX:XX:XX:XX:XX
athrs27_phy_setup ATHR_PHY_CONTROL 4:0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4:0x10
eth0 up
Honey Bee ----> MAC 1 S27 PHY*
S27 reg init
ATHRS27: resetting s27
ATHRS27: s27 reset done
GMAC: cfg1 0x800c0000 cfg2 0x7214
eth1: XXXXXXXXXXXXXXXXXXXXXXX
athrs27_phy_setup ATHR_PHY_CONTROL 0:0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 0:0x10
athrs27_phy_setup ATHR_PHY_CONTROL 1:0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 1:0x10
athrs27_phy_setup ATHR_PHY_CONTROL 2:0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 2:0x10
athrs27_phy_setup ATHR_PHY_CONTROL 3:0x1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 3:0x10
eth1 up
eth0, eth1
Setting 0x181162c0 to 0x68d1a100
is_auto_upload_firmware=0
Autobooting in 1 seconds
hb>
Uboot env
hb> printenv
bootargs=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)
bootcmd=bootm 0x9f020000
bootdelay=1
baudrate=115200
ethaddr=XXXXXXXXXXXXXXXXXXXXX
ipaddr=192.168.1.1
serverip=192.168.1.10
dir=
lu=tftp 0x80060000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize&&cp.b $fileaddr 0x9f000000 $filesize
lf=tftp 0x80060000 ${dir}ap143${bc}-squashfs&&erase 0x9f120000 +$filesize&&cp.b $fileaddr 0x9f120000 $filesize
lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9f020000 +$filesize&&cp.b $fileaddr 0x9f020000 $filesize
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
Environment size: 676/65532 bytes
hb> bootm 0x9f020000
## Booting image at 9f020000 ...
Uncompressing Kernel Image ... OK
And the boot up of the stock firmware
Starting kernel ...
Booting QCA953x
Linux version 2.6.31 (tomcat@buildserver) (gcc version 4.3.3 (GCC) ) #42 Wed Aug 6 09:35:14 CST 2014
flash_size passed from bootloader = 8
Ram size passed from bootloader =33554432
CPU revision is: 00019374 (MIPS 24Kc)
ath_sys_frequency: cpu apb ddr apb cpu 550 ddr 392 ahb 196
Determined 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:2 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:128k(u-boot),1024k(kernel),6912k(rootfs),64k(configM
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: 24128k/32768k available (1614k kernel code, 8640k reserved, 391k data, 108k init, 0k highmem)
NR_IRQS:128
plat_time_init: plat time init done
Calibrating delay loop... 365.56 BogoMIPS (lpj=731136)
Mount-cache hash table entries: 512
****************ALLOC***********************
Packet mem: 80222240 (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)
net_link: create socket ok.
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
ATH GPIOC major 0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 47
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>
athwdt_init: Registering WDT success
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 108k freed
init started: BusyBox v1.01 (2014.08.06-01:38+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
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
Now flash open!
Now flash open!
(none) mips #42vlan init params sucess.
Wed Aug 6 09:35qca955x_GMAC: Length per segment 1536
:14 CST 2014 (no953x_GMAC: qca953x_gmac_attach
ne)
(none) logiLink Int Enabled
n: qca953x_set_gmac_caps CHECK DMA STATUS
mac:1 Registering S27....
qca955x_GMAC: RX TASKLET - Pkts per Intr:32
qca955x_GMAC: Max segments per packet : 1
qca955x_GMAC: Max tx descriptor count : 512
qca955x_GMAC: Max rx descriptor count : 128
qca955x_GMAC: Mac capability flags : 2D81
953x_GMAC: qca953x_gmac_attach
Link Int Enabled
qca953x_set_gmac_caps CHECK DMA STATUS
mac:0 Registering S27....
qca955x_GMAC: RX TASKLET - Pkts per Intr:32
qca955x_GMAC: Max segments per packet : 1
qca955x_GMAC: Max tx descriptor count : 512
qca955x_GMAC: Max rx descriptor count : 128
qca955x_GMAC: Mac capability flags : 2581
athr_gmac_ring_alloc Allocated 8192 at 0x81c64000
athr_gmac_ring_alloc Allocated 2048 at 0x81cb1000
HONEYBEE ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
athr_gmac_ring_alloc Allocated 8192 at 0x81cce000
athr_gmac_ring_alloc Allocated 2048 at 0x81ebc800
HONEYBEE ----> 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...
device eth0 entered promiscuous mode
athr_gmac_ring_free Freeing at 0x81c64000
athr_gmac_ring_free Freeing at 0x81cb1000
athr_gmac_ring_alloc Allocated 8192 at 0x81eee000
athr_gmac_ring_alloc Allocated 2048 at 0x81cb1000
HONEYBEE ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
Now flash open!
athr_gmac_ring_free Freeing at 0x81cce000
athr_gmac_ring_free Freeing at 0x81ebc800
athr_gmac_ring_alloc Allocated 8192 at 0x81c5a000
athr_gmac_ring_alloc Allocated 2048 at 0x81ebc800
HONEYBEE ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
nf_conntrack_rtsp v0.6.21 loading
nf_nat_rtsp v0.6.21 loading
adf: 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_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
ath_ahb: 9.5.3.16 (Atheros/multi-bss)
Enterprise mode: 0x03fc0000
Restoring Cal data from Flash
ath_get_caps[5872] rx chainmask mismatch actual 3 sc_chainmak 0
ath_get_caps[5847] tx chainmask mismatch actual 3 sc_chainmak 0
ATH_RESERVED_TXBUF = 1000
wifi0: Atheros ???: mem=0xb8100000, irq=2
ath_pci: 9.5.3.16 (Atheros/multi-bss)
VAP device ath0 created
Setting Max Stations:32
DCS for CW interference mitigation: 0
DCS for WLAN interference mitigation: 0
DES SSID SET=trangtrinh
ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
athr_gmac_ring_free Freeing at 0x81c5a000
athr_gmac_ring_free Freeing at 0x81ebc800
br0: port 1(eth0) entering disabled state
athr_gmac_ring_alloc Allocated 8192 at 0x81636000
athr_gmac_ring_alloc Allocated 2048 at 0x81ebc800
HONEYBEE ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
device ath0 entered promiscuous mode
br0: port 2(ath0) entering forwarding state
ieee80211_ioctl_siwmode: imr.ifm_active=393856, new mode=3, valid=1
br0: port 2(ath0) entering disabled state
DES SSID SET=XXXXXXXX
br0: port 2(ath0) entering forwarding state
qca955x_GMAC: GE0 RX DMA ENABLE
blockWps_proc_write 806: write value = 0
TL-WR841N mips #42 Wed Aug 6 09:35:14 CST 2014 (none)
TL-WR841N login: ap143
Password:
Login incorrect
TL-WR841N login: root
Password:
Login incorrect
I will update the second post on this thread to be a guide on howto install openwrt on this router version.
Anyone with tips or suggestions please comment below.
(Last edited by hojuruku on 22 Jun 2016, 13:05)