So I've had this TL-WR842ND for a while. It's my test device, if I'm going to do something stupid or crazy I try it on this box first.
For the past while now I can't seem to SSH and upgrade the box. If I use TFPD recovery mode it accepts my files just fine. But "mtd whatever-sysupgrade.bin firmware" and "sysupgrade -n -v whatever-sysupgrade.bin" soft brick it.
Also while I haven't been able to confirm it, running QoS also seems to lock it up after a while.
Anyone else running this device? Maybe I've just kicked it around too much over the years...
The TL-WR842ND (unless we'd be talking about h/w revision v3) only has 32 MB RAM, this is a rather tight fit and might blow up (oom) during the upgrade (keep in mind that the to-be-flashed firmware as a whole needs to fit into RAM). This is particularly a problem with 32 MB RAM devices offering 8 MB flash (just because those invite to actually use it and install more demanding packages). You can try to counter this two ways, on the one hand by trimming your firmware of unnecessary packages (don't use the full 8 MB flash, but just 5-6 MB) and by unloading non-essential (wlan, pppoe, ipsec, firewall, etc. - everything that isn't hard-required for the ethernet and flash storage) kernel modules, because other than userspace services, sysupgrade can't unload them for the upgrade.
Personally I'm in a very similar situation with a TL-WR1043ND v1 (also 8 MB flash and 32 MB RAM), but temporarily removing kernel modules from /etc/modules.d/ and rebooting before sysupgrade does help.