Support for Tp Link Tl-wr841hp v3 Router

Hi,
Been lurking about Lede forum for a week now. I'm looking for a Lede/Openwrt firmware for my 841hp router. Here is the Spec. of the router,

Flash chip GigaDevice: 8 mb
25Q64CSIG
https://imgur.com/a/VOiCCw2 (Image)

SOC : Qualcomm Atheros QCA9533 650 Mhz CPU
QCA9533-BL3A

Memory: DDR2 SDRAM 64 Mb 800 Mhz
Zentel A3R12E40DBF-8E

I hv connected a serial device cp2102...Here it's output in minicom,

U-Boot 1.1.4 (Jun 12 2016 - 17:31:30)

ap143-2.0 - Honey Bee 2.0

DRAM:  64 MB
Flash Manuf Id 0xc8, DeviceId0 0x40, DeviceId1 0x17
flash size 8MB, sector count = 128
Flash:  8 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ath_gmac_enet_initialize...
ath_gmac_enet_initialize: reset mask:c02200 
Scorpion ---->S27 PHY*
S27 reg init
: cfg1 0x800c0000 cfg2 0x7114
eth0: ba:be:fa:ce:08:41
athrs27_phy_setup ATHR_PHY_CONTROL 4 :1000
athrs27_phy_setup ATHR_PHY_SPEC_STAUS 4 :10
eth0 up
Honey Bee ---->  MAC 1 S27 PHY *
S27 reg init
ATHRS27: resetting s27
ATHRS27: s27 reset done
: cfg1 0x800c0000 cfg2 0x7214
eth1: ba:be:fa:ce:08:41
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 0x181162c0 to 0x58b1a100
is_auto_upload_firmware=0
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... OK

Starting kernel ...

Booting QCA953x
Linux version 2.6.31 (tomcat@buildserver) (gcc version 4.3.3 (GCC) ) #380 Sun Jun 12 17:34:21 CST 2016
Ram size passed from bootloader =64M
flash_size passed from bootloader = 8
CPU revision is: 00019374 (MIPS 24Kc)
ath_sys_frequency: cpu apb ddr apb cpu 650 ddr 390 ahb 216
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),6M
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: 56092k/65536k available (1958k kernel code, 9372k reserved, 475k data, 124k init, 0k highmem)
NR_IRQS:128
plat_time_init: plat time init done
Calibrating delay loop... 433.15 BogoMIPS (lpj=866304)
Mount-cache hash table entries: 512

****************ALLOC***********************
 Packet mem: 802912e0 (0x600000 bytes)
********************************************

NET: Registered protocol family 16
ath_pcibios_init: bus 0
***** Warning PCIe 0 H/W not found !!!
registering PCI controller with io_map_base unset
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 109
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 0xc84017 . 
nf_conntrack version 0.5.0 (1024 buckets, 5120 max)
xt_time: kernel timezone is -0000
Ooops, why the devices couldn't been initialed?
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 10
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: 124k freed
init started:  BusyBox v1.01 (2016.06.12-09:37+0000) multi-call binary
This Board use 2.6.31
insmod: cannot open module `/lib/modules/2.6.31/kernel/x_tables.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/xt_tcpudp.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/xt_MARK.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/xt_TCPMSS.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/xt_comment.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/xt_iprange.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/xt_mac.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/xt_multiport.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/xt_string.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/xt_time.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/ipt_multiurl.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/nf_conntrack.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/xt_conntrack.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/xt_state.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/nf_defrag_ipv4.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/nf_conntrack_ipv4.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/nf_nat.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/ip_tables.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/iptable_filter.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/iptable_nat.ko': No such file or directory
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/ipt_MASQUERADE.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/ipt_REDIRECT.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/ipt_REJECT.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/ipt_TRIGGER.ko': No such file or directory
insmod: cannot open module `/lib/modules/2.6.31/kernel/ts_kmp.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
insmod: cannot open module `/lib/modules/2.6.31/kernel/xt_mark.ko': No such file or directory
qca955x_GMAC: Length per segment 1536
953x_GMAC: qca953x_gmac_attach
Link Int Enabled 
qca953x_set_gmac_caps  CHECK DMA STATUS 
mac:1 Registering S27....
qca955x_GMAC: RX TASKLET - Pkts per Intr:18
qca955x_GMAC: Max segments per packet :   1
qca955x_GMAC: Max tx descriptor count :   511
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:18
qca955x_GMAC: Max segments per packet :   1
qca955x_GMAC: Max tx descriptor count :   511
qca955x_GMAC: Max rx descriptor count :   128
qca955x_GMAC: Mac capability flags    :   2581

 (none) mips #380 Sun Jun 12 17:34:21 CST 2016 (none)
(none) login: athr_gmac_ring_alloc Allocated 8176 at 0x83886000
athr_gmac_ring_alloc Allocated 2048 at 0x83a59800
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...
ADDRCONF(NETDEV_UP): eth0: link is not ready
athr_gmac_ring_alloc Allocated 8176 at 0x8387a000
athr_gmac_ring_alloc Allocated 2048 at 0x839f9000
HONEYBEE ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames 
Setting PHY...
ADDRCONF(NETDEV_UP): eth1: link is not ready
device eth0 entered promiscuous mode
athr_gmac_ring_free Freeing at 0x8387a000
athr_gmac_ring_free Freeing at 0x839f9000
athr_gmac_ring_alloc Allocated 8176 at 0x8387c000
athr_gmac_ring_alloc Allocated 2048 at 0x839f9000
HONEYBEE ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames 
Setting PHY...
ADDRCONF(NETDEV_UP): eth1: link is not ready
athr_gmac_ring_free Freeing at 0x83886000
athr_gmac_ring_free Freeing at 0x83a59800
athr_gmac_ring_alloc Allocated 8176 at 0x83878000
athr_gmac_ring_alloc Allocated 2048 at 0x83a59800
HONEYBEE ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames 
Setting PHY...
ADDRCONF(NETDEV_UP): eth0: link is not ready
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, TX_DATA_SWAP, RX_DATA_SWAP, 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: 10.2-00082-4 (Atheros/multi-bss)
__ath_attach: Set global_scn[0]
Enterprise mode: 0x03fc0000
Restoring Cal data from Flash
ath_get_caps[6191] rx chainmask mismatch actual 3 sc_chainmak 0
ath_get_caps[6166] tx chainmask mismatch actual 3 sc_chainmak 0
wifi0: Atheros ???: mem=0xb8100000, irq=2
ath_pci: 10.2-00082-4 (Atheros/multi-bss)
VAP device ath0 created 
Setting Max Stations:32
 ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1 
Set freq vap stop send + 832f8000
Set freq vap stop send -832f8000
Set wait done --832f8000
Set freq vap stop send + 832f8000
Set freq vap stop send -832f8000
Set wait done --832f8000
athr_gmac_ring_free Freeing at 0x83878000
athr_gmac_ring_free Freeing at 0x83a59800
br0: port 1(eth0) entering disabled state
athr_gmac_ring_alloc Allocated 8176 at 0x83b46000
athr_gmac_ring_alloc Allocated 2048 at 0x83a59800
HONEYBEE ----> S27 PHY MDIO
Setting Drop CRC Errors, Pause Frames and Length Error frames 
Setting PHY...
ADDRCONF(NETDEV_UP): eth0: link is not ready
device ath0 entered promiscuous mode
br0: port 2(ath0) entering forwarding state
 ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1 
br0: port 2(ath0) entering disabled state
 DEVICE IS DOWN ifname=ath0
 DEVICE IS DOWN ifname=ath0
 
 DES SSID SET=iTSLBD1 
br0: port 2(ath0) entering forwarding state
 Scan in progress.. Cancelling it 
br0: port 2(ath0) entering disabled state
br0: port 2(ath0) entering forwarding state
====>>>>wlanBootupAll ok 
 Scan in progress.. Cancelling it 
br0: port 2(ath0) entering disabled state
 
 DES SSID SET=iTSLBD1 
br0: port 2(ath0) entering forwarding state
 ieee80211_ioctl_siwmode: imr.ifm_active=393856, new mode=3, valid=1 
 Scan in progress.. Cancelling it 
br0: port 2(ath0) entering disabled state
 DEVICE IS DOWN ifname=ath0
 DEVICE IS DOWN ifname=ath0
IPv6 over IPv4 tunneling driver
br0: port 2(ath0) entering forwarding state
qca955x_GMAC: GE0 RX DMA ENABLE
blockWps_proc_write 1278: write value = 0
mlme_create_infra_bss : Overriding HT40 channel with HT20 channel

 TL-WR841HP mips #380 Sun Jun 12 17:34:21 CST 2016 (none)
TL-WR841HP login:

===============

Can anyone compile a Openwrt/Lede for the router...

thanks

I have also found similarity with other 841/2 routers,
Tp Link Tl-wr841 hp to tl-wr841/842 comparison:

Cpu : QCA9533-BL3A : tl-wr841 V10
Flash: 25Q64CSIG : tl-wr841 V13
https://openwrt.org/toh/tp-link/tl-wr841nd
ram : Zentel A3R12E40DBF-8E : tl-wr842 v3/v5
https://openwrt.org/toh/tp-link/tl-wr842nd

Someone(@juppin ??), Posted something about initramfs file, which is like loading live image, and I can't seem to find the script to load into the router, pls. repost what has been posted @juppin

Also how to compile/generate initramfs image with Openwrt/Lede 17.0.4.x ?.

I'm using arch linux(Manjaro distro).

@jupping, thanks fhe hint, I forgot that for a long time., I hv compiled some ramdisk images and tried with them, none can boot my device.

I hv tried with wr841n v11 and v10, but says too big or just gets stuck at the "booting kernel..." thing.

Still need help to compile a decent kernel. Can anyone help pls ????

Ok, I hv compiled Lede/openwrt 17.0.4.x and Loaded initramfs ov 841v10 and 841v11, Seems v11 runs a bit smoother.

Now need to figure how to use the Lede upgrade image, guess needs to flash this 841v11 first....

lets see

You did it? I have a 841HP V.3 and want to try openwrt to see if there is any improvement..

Regards

Hi, is there any updates about this Router?

Thanks,

Yes, I'm using opnewrt for tl841n v9 firmware with this router, for over a year now!! No hitch no glitch. I did it with serial console. I did compile my own openwrt for tl841nv9, tl840v2/v3, Tomato for Tendafh303/305 etc.
I did some mt(mediatek) based china routers, but wifi is not stable(not as stable as qca..)

I have even installed art.bin hacked with 30 db to a 841nv9 and it's working as good as this tl841hpv3...not much difference in wifi signal strength!!, status shows 30db full!! with a good 9v powersupply!!

Yes, anyone can install tl841n-v9 openwrt for this router with ease, regardless how different it looks inside!!(it is different,). I also tried 841nv10/v11 but had some issues so finally downgraded to tl841nv9 openwrt for my Tl841hp-v3

This router got qca9533-bl3a cpu, same as tl841nv10/v11, tl841nv9 got qca9533-al3a(no difference i guess).

Here is todays system log(partial) for tl841hp-v3,

Mon Jul 29 20:44:02 2019 kern.notice kernel: [    0.000000] Linux version 4.9.119 (akbar@gfx) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7847-03e5dcbf10) ) #0 Mon Aug 13 19:05:46 2018
Mon Jul 29 20:44:02 2019 kern.debug kernel: [    0.000000] MyLoader: sysp=c6210b54, boardp=fbfba2aa, parts=9f9d98c2
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] bootconsole [early0] enabled
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] Determined physical RAM map:
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000]  memory: 04000000 @ 00000000 (usable)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] Initrd not found or empty - disabling initrd
Mon Jul 29 20:44:02 2019 kern.warn kernel: [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Mon Jul 29 20:44:02 2019 kern.warn kernel: [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] Zone ranges:
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] Movable zone start for each node
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] Early memory node ranges
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
Mon Jul 29 20:44:02 2019 kern.debug kernel: [    0.000000] On node 0 totalpages: 16384
Mon Jul 29 20:44:02 2019 kern.debug kernel: [    0.000000] free_area_init_node: node 0, pgdat 803f2044, node_mem_map 81000020
Mon Jul 29 20:44:02 2019 kern.debug kernel: [    0.000000]   Normal zone: 128 pages used for memmap
Mon Jul 29 20:44:02 2019 kern.debug kernel: [    0.000000]   Normal zone: 0 pages reserved
Mon Jul 29 20:44:02 2019 kern.debug kernel: [    0.000000]   Normal zone: 16384 pages, LIFO batch:3
Mon Jul 29 20:44:02 2019 kern.debug kernel: [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Mon Jul 29 20:44:02 2019 kern.debug kernel: [    0.000000] pcpu-alloc: [0] 0
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Mon Jul 29 20:44:02 2019 kern.notice kernel: [    0.000000] Kernel command line:  board=TL-WR841N-v9  console=ttyS0,115200 rootfstype=squashfs noinitrd
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] Writing ErrCtl register=00000000
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] Readback ErrCtl register=00000000
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] Memory: 60412K/65536K available (3105K kernel code, 154K rwdata, 400K rodata, 236K init, 208K bss, 5124K reserved, 0K cma-reserved)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] NR_IRQS:51
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] Clocks: CPU:650.000MHz, DDR:392.187MHz, AHB:216.666MHz, Ref:25.000MHz
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.000010] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.008268] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.071123] pid_max: default: 32768 minimum: 301
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.076120] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.083103] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.093930] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.104365] futex hash table entries: 256 (order: -1, 3072 bytes)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.111503] NET: Registered protocol family 16
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.117951] MIPS: machine is TP-LINK TL-WR841N/ND v9
Mon Jul 29 20:44:02 2019 kern.warn kernel: [    0.598760] Can't analyze schedule() prologue at 80364e78
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.618297] clocksource: Switched to clocksource MIPS
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.624841] NET: Registered protocol family 2
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.630438] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.637801] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.644579] TCP: Hash tables configured (established 1024 bind 1024)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.651427] UDP hash table entries: 256 (order: 0, 4096 bytes)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.657614] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.664605] NET: Registered protocol family 1
Mon Jul 29 20:44:02 2019 kern.debug kernel: [    0.669282] PCI: CLS 0 bytes, default 32
Mon Jul 29 20:44:02 2019 kern.warn kernel: [    0.674864] Crashlog allocated RAM at address 0x3f00000
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.681922] workingset: timestamp_bits=30 max_order=14 bucket_order=0
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.695848] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.702049] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.724411] io scheduler noop registered
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.728622] io scheduler deadline registered (default)
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.734383] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.741591] console [ttyS0] disabled
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.765525] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.774637] console [ttyS0] enabled
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.782192] bootconsole [early0] disabled
Mon Jul 29 20:44:02 2019 kern.warn kernel: [    0.795292] m25p80 spi0.0: found gd25q128, expected m25p80
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.803597] m25p80 spi0.0: gd25q128 (16384 Kbytes)
Mon Jul 29 20:44:02 2019 kern.notice kernel: [    0.809002] 5 tp-link partitions found on MTD device spi0.0
Mon Jul 29 20:44:02 2019 kern.notice kernel: [    0.814761] Creating 5 MTD partitions on "spi0.0":
Mon Jul 29 20:44:02 2019 kern.notice kernel: [    0.819764] 0x000000000000-0x000000020000 : "u-boot"
Mon Jul 29 20:44:02 2019 kern.notice kernel: [    0.827273] 0x000000020000-0x00000015298c : "kernel"
Mon Jul 29 20:44:02 2019 kern.notice kernel: [    0.834991] 0x00000015298c-0x000000ff0000 : "rootfs"
Mon Jul 29 20:44:02 2019 kern.notice kernel: [    0.842126] mtd: device 2 (rootfs) set to be root filesystem
Mon Jul 29 20:44:02 2019 kern.notice kernel: [    0.848028] 1 squashfs-split partitions found on MTD device rootfs
Mon Jul 29 20:44:02 2019 kern.notice kernel: [    0.854505] 0x000000380000-0x000000ff0000 : "rootfs_data"
Mon Jul 29 20:44:02 2019 kern.notice kernel: [    0.862725] 0x000000ff0000-0x000001000000 : "art"
Mon Jul 29 20:44:02 2019 kern.notice kernel: [    0.870166] 0x000000020000-0x000000ff0000 : "firmware"
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.879285] libphy: Fixed MDIO Bus: probed
Mon Jul 29 20:44:02 2019 kern.info kernel: [    0.911036] libphy: ag71xx_mdio: probed
Mon Jul 29 20:44:02 2019 kern.info kernel: [    1.540867] ag71xx-mdio.1: Found an AR934X built-in switch
Mon Jul 29 20:44:02 2019 kern.info kernel: [    1.594252] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
Mon Jul 29 20:44:02 2019 kern.info kernel: [    2.231259] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]

Hello GFX18!
Can you give me the file which can be flashed using tftp?

Hey @gfx18 ! Would be great if you could share the firmware file you used to load openwrt. Also the method employed at the end. Thanks

@gfx18 I've taken the factory firmware for v9 from here. Got my router hooked up via serial console but I can't seem to get the "tpl" on time. Or it is on time but isn't accepting my input. Would really appreciate the help.

Hi everybody.
I created the ath79 master trunk support for this router. Work as expect
You can install from OEM firmware using the file * -factory.bin without issue.
The LEDs & keys are working:

  • PWR, Wifi, WAN, LAN led work.
  • Reset, Wifi button work.
  • RE, WPS led/button not used.

I'm only integrated some of the following packages: luci, wifi-schedule, relayd, nano.

Kernel log:

Summary

[ 0.000000] Linux version 4.19.123 (teq@Teqdesk) (gcc version 9.3.0 (OpenWrt GCC 9.3.0 r13398-48e3449945)) #0 Thu May 28 19:22:18 2020
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] MIPS: machine is TP-Link TL-WR841HP v3
[ 0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 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] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16384 pages, LIFO batch:3
[ 0.000000] random: get_random_bytes called from 0x80514838 with crng_init=0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=132768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[ 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] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 58220K/65536K available (3962K kernel code, 254K rwdata, 592K rodata, 1264K init, 204K bss, 7316K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] CPU clock: 650.000 MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns
[ 0.000010] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns
[ 0.008279] Calibrating delay loop... 431.10 BogoMIPS (lpj=862208)
[ 0.042790] pid_max: default: 32768 minimum: 301
[ 0.047884] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.054894] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.067193] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.077531] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.084103] pinctrl core: initialized pinctrl subsystem
[ 0.090872] NET: Registered protocol family 16
[ 0.129008] clocksource: Switched to clocksource MIPS
[ 0.173706] NET: Registered protocol family 2
[ 0.179285] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[ 0.187479] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.194870] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.201614] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.208539] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.214794] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.221823] NET: Registered protocol family 1
[ 0.226521] PCI: CLS 0 bytes, default 32
[ 0.230556] Crashlog allocated RAM at address 0x3f00000
[ 0.238108] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.251690] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.257917] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.282621] io scheduler noop registered
[ 0.286845] io scheduler deadline registered (default)
[ 0.294911] pinctrl-single 1804002c.pinmux: 576 pins, size 72
[ 0.302249] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.309948] console [ttyS0] disabled
[ 0.313846] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[ 0.322987] console [ttyS0] enabled
[ 0.330566] bootconsole [early0] disabled
[ 0.350147] m25p80 spi0.0: gd25q64 (8192 Kbytes)
[ 0.355013] 3 fixed-partitions partitions found on MTD device spi0.0
[ 0.361602] Creating 3 MTD partitions on "spi0.0":
[ 0.366587] 0x000000000000-0x000000020000 : "u-boot"
[ 0.372762] 0x000000020000-0x0000007f0000 : "firmware"
[ 0.382329] 2 tplink-fw partitions found on MTD device firmware
[ 0.388535] Creating 2 MTD partitions on "firmware":
[ 0.393706] 0x000000000000-0x0000001850c7 : "kernel"
[ 0.399884] 0x0000001850c8-0x0000007d0000 : "rootfs"
[ 0.405967] mtd: device 3 (rootfs) set to be root filesystem
[ 0.413933] 1 squashfs-split partitions found on MTD device rootfs
[ 0.420412] 0x000000430000-0x0000007d0000 : "rootfs_data"
[ 0.427061] 0x0000007f0000-0x000000800000 : "art"
[ 0.435487] libphy: Fixed MDIO Bus: probed
[ 0.778111] ag71xx 19000000.eth: Could not connect to PHY device. Deferring probe.
[ 1.120999] random: fast init done
[ 1.417480] libphy: ag71xx_mdio: probed
[ 1.423101] libphy: ar8xxx-mdio: probed
[ 1.437132] switch0: Atheros AR8229 rev. 1 switch registered on mdio.0
[ 1.485145] ag71xx 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[ 1.495255] eth0: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
[ 1.501890] i2c /dev entries driver
[ 1.507514] NET: Registered protocol family 17
[ 1.512295] 8021q: 802.1Q VLAN Support v1.8
[ 1.835159] ag71xx 19000000.eth: connected to PHY at mdio.0:1f:04 [uid=004dd042, driver=Generic PHY]
[ 1.845583] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode: mii
[ 1.858084] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 1.875919] Freeing unused kernel memory: 1264K
[ 1.880644] This architecture does not have kernel memory protection.
[ 1.887315] Run /sbin/init as init process
[ 2.632688] init: Console is alive
[ 2.636671] init: - watchdog -
[ 3.680030] kmodloader: loading kernel modules from /etc/modules-boot.d/

[ 3.748831] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 3.767008] init: - preinit -
[ 4.838319] random: jshn: uninitialized urandom read (4 bytes read)
[ 5.086010] random: jshn: uninitialized urandom read (4 bytes read)
[ 5.271716] random: jshn: uninitialized urandom read (4 bytes read)
[ 6.111359] urandom_read: 4 callbacks suppressed
[ 6.111370] random: procd: uninitialized urandom read (4 bytes read)
[ 7.070224] eth0: link up (1000Mbps/Full duplex)
[ 10.417738] jffs2: notice: (478) jffs2_build_xattr_subsystem: complete building xattr subsystem, 3 of xdatum (0 unchecked, 1 orphan) and 7 of xref (1 dead, 0 orphan) found.
[ 10.435464] mount_root: switching to jffs2 overlay
[ 10.466431] overlayfs: upper fs does not support tmpfile.
[ 10.478783] urandom-seed: Seeding with /etc/urandom.seed
[ 10.607207] eth0: link down
[ 10.634965] procd: - early -
[ 10.638321] procd: - watchdog -
[ 11.268561] procd: - watchdog -
[ 11.272327] procd: - ubus -
[ 11.346750] random: ubusd: uninitialized urandom read (4 bytes read)
[ 11.412091] random: ubusd: uninitialized urandom read (4 bytes read)
[ 11.423508] procd: - init -
[ 12.208144] kmodloader: loading kernel modules from /etc/modules.d/*
[ 12.350710] Loading modules backported from Linux version v5.7-rc3-0-g6a8b55ed4056
[ 12.358639] Backport generated by backports.git v5.7-rc3-1-0-gc0c7d2bb
[ 12.427812] xt_time: kernel timezone is -0000
[ 12.819554] urngd: v1.0.2 started.
[ 12.896181] PPP generic driver version 2.4.2
[ 12.914324] NET: Registered protocol family 24
[ 13.063896] ath: EEPROM regdomain sanitized
[ 13.063915] ath: EEPROM regdomain: 0x64
[ 13.063918] ath: EEPROM indicates we should expect a direct regpair map
[ 13.063949] ath: Country alpha2 being used: 00
[ 13.063952] ath: Regpair used: 0x64
[ 13.078157] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 13.082929] ieee80211 phy0: Atheros AR9531 Rev:2 mem=0xb8100000, irq=12
[ 13.185556] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 13.293729] random: crng init done
[ 27.104030] eth0: link up (1000Mbps/Full duplex)
[ 27.118819] br-lan: port 1(eth0.1) entered blocking state
[ 27.124520] br-lan: port 1(eth0.1) entered disabled state
[ 27.130529] device eth0.1 entered promiscuous mode
[ 27.135556] device eth0 entered promiscuous mode
[ 27.190154] br-lan: port 1(eth0.1) entered blocking state
[ 27.195827] br-lan: port 1(eth0.1) entered forwarding state
[ 29.344065] eth1: link up (100Mbps/Full duplex)
[ 29.679523] ath: EEPROM regdomain: 0x8348
[ 29.679536] ath: EEPROM indicates we should expect a country code
[ 29.679544] ath: doing EEPROM country->regdmn map search
[ 29.679551] ath: country maps to regdmn code: 0x3a
[ 29.679557] ath: Country alpha2 being used: US
[ 29.679560] ath: Regpair used: 0x3a
[ 29.679567] ath: regdomain 0x8348 dynamically updated by user
[ 31.269209] br-lan: port 2(wlan0) entered blocking state
[ 31.274894] br-lan: port 2(wlan0) entered disabled state
[ 31.280858] device wlan0 entered promiscuous mode
[ 31.304462] br-lan: port 2(wlan0) entered blocking state
[ 31.310049] br-lan: port 2(wlan0) entered forwarding state


I will backport for 19.07.x later.
Download my build here
Hope this help. Have fun.

4 Likes

It won't accept the input as you need to short pins of one register on board, I forgot what it is, I will try and look for it later. Afterwards it can be accessed. I did this because, I'm a currency trader and need one stable router that can run 24/7 for at least a week(reboot every weekend). I can't access my blog right now, It has all the goodies that needed to install that firmware...here it is(if allowed to post),

http://router-mod.blogspot.com/

In fact I'm writing this connecting with that router through my isp

Thank You ! It's working fine in my 841hp ! Is there a way to use 1W ?

Hi. I don't understand, what do u mean ?

This is a HP router, 1W (1000mw), but we can only choose 100mw (20dB).

It depends on which country code you choose. On my router, I can choose up to 24dBm (250mW) with the region US.

1 Like

Thank You so much ! I've changed to US, it worked ! 1000mw ! :slight_smile:

I don't think it works with 1W. The oem has limited the transmit power to 24dbm to be the highest.

1 Like