Topic: openwrt on TL-WR841N v13 or TL-WR840N 4.0

Hi
Do not judge strictly, this is my first post.
Tell me about this issue, if I collect the firmware with a suitable Target System (processor MT7628) and Target Profile default Profile. Will it work properly on the router TL-WR841N v13 or TL-WR840N 4.0?

Techdata:

CPU1: MediaTek MT7628N (575 MHz)
FLA1: 8 MiB (GigaDevice GD25Q64B)
RAM1: 64 MiB (Winbond W9751G6KB-25)

Took from here
-wikidevi.com/wiki/TP-LINK_TL-WR840N_v4
-wikidevi.com/wiki/TP-LINK_TL-WR841N_v13.x
-wiki.openwrt.org/toh/tp-link/tl-wr840n#links

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

I wanna know exactly this same thing. I just bought my WR840N v4, so excited to flash a custom firmware, but I cannot find one. They have all other version of WR840N and WR841N but not these two. I hope someone can save for us here! hahahaha

3 (edited by bagciozgur 2017-04-22 00:29:58)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

i tried flushing all bin files on mt7628 no luck. doesn't work with default profile. device goes into boot loop. used tftp to recover router. my device is tl-wr841n.

there is some boot log taken with serial console on wr840n. i asume they are same except apperiance. i can work on it but i don't know what to do. so it may take some time.

i need serial console i ordered the cable. it will be delivered in 3-4 days. i have some work to do before digging into it. after i will investigate errors on boot. then i can port it.

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

i think i bricked my device this time. tftp recovery not working. i will wait for an openwrt firmware and try it.

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

oh boy ... thanks anyways ... i hope u can recover your router =/

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

made a stripped firmware now. it is not working either. but bootlooader can't be damaged. tftp recovery via ethernet working. any ideas why isn't it work?

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

same problem.
wr841n v13 log from uart (flashing stripped firmware via tftp and cycling boot):

[04060C0A][04060C0D]
DDR Calibration DQS reg = 00008988


U-Boot 1.1.3 (Nov 15 2016 - 14:52:03)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb8000
gpiomode1 55054404.
gpiomode2 05540554.
gpiomode2 00000000.
gpiomode2 05550555.
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
============================================ 
Ralink UBoot Version: 4.3.0.0
-------------------------------------------- 
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Nov 15 2016  Time:14:52:03
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 

 ##### The CPU freq = 575 MHZ #### 
 estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!..................................................
starting recovery...
TODO, Read MAC Address from Flash


 netboot_common, argc= 3 

 NetTxPacket = 0x83FE7480 

 KSEG1ADDR(NetTxPacket) = 0xA3FE7480 

 NetLoop,call eth_halt ! 

 NetLoop,call eth_init ! 
Trying Eth0 (10/100-M)

 Waitting for RX_DMA_BUSY status Start... done


 ETH_STATE_ACTIVE!! 
TFTP from server 192.168.0.66; our IP address is 192.168.0.2
Filename 'tp_recovery.bin'.

 TIMEOUT_COUNT=10,Load address: 0x80060000
Loading: checksum bad
checksum bad
Got ARP REPLY, set server/gtwy eth addr (00:15:17:e9:db:4f)
Got it
#################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     #################################################################
     ##
done
Bytes transferred = 7995392 (7a0000 hex)
NetBootFileXferSize= 007a0000

 Erase flash !!
From 0x20000 length 0x7A0000
..........................................................................................................................

 Copy 0x80080000 to 0x00020000, count 0x7A0000.... 
..........................................................................................................................
[04060C09][04060C0B]
DDR Calibration DQS reg = 00008887


U-Boot 1.1.3 (Nov 15 2016 - 14:52:03)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb8000
******************************
Software System Reset Occurred
******************************
gpiomode1 55054404.
gpiomode2 05540554.
gpiomode2 00000000.
gpiomode2 05550555.
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
============================================ 
Ralink UBoot Version: 4.3.0.0
-------------------------------------------- 
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Nov 15 2016  Time:14:52:03
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 

 ##### The CPU freq = 575 MHZ #### 
 estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
continue to starting system.
 0 
disable switch phyport...
   
3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover
[04060C09][04060C0B]
DDR Calibration DQS reg = 00008887


U-Boot 1.1.3 (Nov 15 2016 - 14:52:03)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb8000
******************************
Software System Reset Occurred
******************************
gpiomode1 55054404.
gpiomode2 05540554.
gpiomode2 00000000.
gpiomode2 05550555.
flash manufacture id: ef, device id 40 17
find flash: W25Q64BV
============================================ 
Ralink UBoot Version: 4.3.0.0
-------------------------------------------- 
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Nov 15 2016  Time:14:52:03
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 

 ##### The CPU freq = 575 MHZ #### 
 estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
continue to starting system.
 0 
disable switch phyport...
   
3: System Boot system code via Flash.(0xbc020000)
do_bootm:argc=2, addr=0xbc020000
## Booting image at bc020000 ...
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover

tpl command not work. and there is no 1 sec waiting for boot.

8 (edited by mk24 2017-04-25 18:59:56)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

This looks like the old Ralink bootloaders. Try hitting number keys on the serial during a normal boot.  Especially "4" which might be for a bootloader prompt.

9 (edited by bagciozgur Yesterday 03:16:28)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

hope someone can solve this. i really need this router to run openwrt.

edit: i will try to compile and flash this bootloader: https://github.com/qdk0901/openwrt-uboo … master/src

10 (edited by sldr 2017-04-26 10:05:45)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

number keys do not work too. old bootloader? may be, but normal boot displayed in wiki tl-wr840n page is some older. so i have one wr840n v4 with stock firmware too, but not did uart for it yet.

p.s. stock firmware on this routers affected "telnet via ping page" vulnerability, so it can be full stock fs dumped with stock binaries for analyze :-)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

I have the same problem, I intended to buy TL-WR841N v11, but they all came v13 sad
Did anyone had any success running openwrt on this version?

12 (edited by bagciozgur Yesterday 21:12:19)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

hey i am now trying this: https://github.com/lede-project/source/ … 5705769728
will keep you up to date.

edit: working lede firmware(works with tftp recovery, probably works for tl-wr840 v4 also since it is originally for 840, but labelled as tl-wr841 v13): https://drive.google.com/open?id=0Bwgtd … nM2bWNfQUk

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

the link is working:
https://github.com/lede-project/source/ … 5705769728