Support for TL-WR841N v14

This is not possible without bootloader modification.

TP-link build a tiny u-boot to fit in one flash block(64kb). Only this commands are compiled in:

  • erase
  • cp
  • setenv
  • reset
  • tftpboot

For a fully featured u-boot it is necessary to change the flash layout.
It should be possible to add only bootm cmd if you are willing to flash a modified bootloader.

Here are the bootloader files:
Source:

unmodified:
https://github.com/timowi/wr841nv14boot/releases/download/original/uboot-unmodified.bin

64MB Ram version:
https://github.com/timowi/wr841nv14boot/releases/download/mod64M/uboot-mod64M.bin
WARNING: Only flash this image after soldering 64MB ram

1 Like

support added in my LEDE fork https://github.com/maurerr/openwrt for TL-WR841N v14 see [Testing] lede-17.01 security backports for 4/32 devices

1 Like

Hello.
I want to try to replace the flash chip with 8MB. What do you need in the firmware?
Thanks.

I upgraded my router to 8M flash memory. RAM left 32M, I did not change this chip. Attached a patch for the current snapshoot. I used unmodified u-boot from Timowi (see up)

$ ssh root@OpenWrt                                                                                                            /var/opt/vanessa/router/tp-wr841-v14/timowi/openwrt
root@openwrt's password: 


BusyBox v1.31.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r15004-4799810745
 -----------------------------------------------------
root@OpenWrt:~# cat /proc/cpuinfo 
system type             : MediaTek MT7628AN ver:1 eco:2
machine                 : TP-Link TL-WR841N v14 8M
processor               : 0
cpu model               : MIPS 24KEc V5.5
BogoMIPS                : 385.02
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16 dsp
Options implemented     : tlb 4kex 4k_cache prefetch mcheck ejtag llsc pindexed_dcache userlocal vint perf_cntr_intr_bit perf
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

root@OpenWrt:~# df -hT
Filesystem           Type            Size      Used Available Use% Mounted on
/dev/root            squashfs        3.5M      3.5M         0 100% /rom
tmpfs                tmpfs          12.9M    304.0K     12.6M   2% /tmp
/dev/mtdblock4       jffs2           2.6M    232.0K      2.4M   9% /overlay
overlayfs:/overlay   overlay         2.6M    232.0K      2.4M   9% /
tmpfs                tmpfs         512.0K         0    512.0K   0% /dev
root@OpenWrt:~# uname -a
Linux OpenWrt 5.4.77 #0 Mon Nov 23 11:52:11 2020 mips GNU/Linux
root@OpenWrt:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00010000 00010000 "boot"
mtd1: 007e0000 00010000 "firmware"
mtd2: 001daf47 00010000 "kernel"
mtd3: 006050b8 00010000 "rootfs"
mtd4: 002a0000 00010000 "rootfs_data"
mtd5: 00010000 00010000 "factory"

PS The question is not on the topic: what is the factory partition ?

this upgrade has a problem: the router reboots periodically, about once a day.