How to flash openwrt on TL-WR840n v6.20

Before, flash the firmware, we must have tool and firmware software.

tftpd or other, i use pumpkin klever for tftp.

Download tftp, Openwrt firmware Recovery

method, to flash fw we use tftp recover, set ip address pc/notebook to 192.168.0.66. 

where later the wr840 device will make a recovery request with the name tp_recovery.bin

  • Turn on wr840, then push wps/reset button until blinking led.
  • make sure the tftp settings are correct
  • wait until the flashing light stops and boots up


cr:

1. clone latest openwrt
2. cd scripts/ and make ./feeds update
3. install luci if you need to
4. copy dts files to target/linux/ramips/dts
5. copy mt76x8.mk to target/linux/ramips/image/mt76x8.mk
6. copy 02_network to ./target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
7. leds for tp-link version 6.2/14 you can see in file system-6.2 and system-14. Copy to your package/base-files/files/etc/config/system
Create directory package/base-files/files/etc/config if it does not exist.
8. make menuconfig and choose your arch:
Target System (MediaTek Ralink MIPS)
Subtarget (MT76x8 based boards)
Target Profile (TP-Link TL-WR840N v6.2)
9. Note that space is not enough for luci if you can not remove kernel and busybox options you do not need like tar/gzip...
You can remove IPV6 for quick free space and ca-bundle. Disable uhttpd ssl redirects from the config.
10. make V=99 (this to compile)
11. ready images will be here: bin/targets/ramips/mt76x8/
You can flash from original software. Note that you will have also tftp images.
You can flash with them too using 192.168.0.66 address.
12. I hope someone finally put this into openwrt tree :)
13. If you can not make enough free space use my bin/config.buildinfo file for the system. Copy to your root folder with the name .config

I put precompiled binaries with latest - LuCI Master (git-20.294.26660-6125c91) / OpenWrt SNAPSHOT r14731-b90a4a8e08 You are free to try them Wifi is enabled by default Note to openwrt developers: I can make even more free space but there is no need. Do not drop 4/32 routers. We have linux and other small distros for more flash. root@sanitariu:~# df -h Filesystem Size Used Available Use% Mounted on /dev/root 3.0M 3.0M 0 100% /rom tmpfs 13.8M 240.0K 13.6M 2% /tmp tmpfs 13.8M 56.0K 13.8M 0% /tmp/root tmpfs 512.0K 0 512.0K 0% /dev /dev/mtdblock4 512.0K 228.0K 284.0K 45% /overlay overlayfs:/overlay 512.0K 228.0K 284.0K 45% / We have 284K free Power: If you need more power just use VE as a country :)
I tested only 6.2 version. Others i do not have access now.