[HOWTO] Tested Build for TP-Link TL-WR941N(D)-v2.1(5.1)


For those looking specifically at at build with LuCi and openVPN with TLS for the TL-WR941N/ND 2.1/5.1 version, here is the best thing at this moment.

Thanks to amq for his build destined for the TL-WR841N(D).

  1. Download the last build for v8 from amq : lede-ar71xx-generic-tl-wr841-v8-squashfs-factory.bin - https://forum.openwrt.org/t/build-for-tp-link-tl-wr841n-d-all-versions/428

  2. Open it in a hex editor. Look at offset 0x40. There should be the following bytes: 08 41 00 08. Modify it to: 09 41 00 05

  3. Get mktplinkfw.c, md5.c and md5.h - Google it there is a lot of github with these files.

  4. Compile the tool: gcc -Os mktplinkfw.c md5.c -o mktplinkfw.

  5. Run: ./mktplinkfw -i lede-ar71xx-generic-tl-wr841-v8-squashfs-factory.bin

  6. Look for the expected MD5Sum1: expected : bb a4 9d a1 d5 4f 24 9f ab 11 55 70 1b a1 ee e3

  7. Open the hex editor again, go to offset 0x4c, and copy the MD5 above (it should span from offset 0x4c to offset 0x5b).

  8. Shorten the name of the file.

  9. Go and upload the resulting file to firmware upgrade (in TP-Link web-interface).

  10. Open LEDE on - root / password

Really nice upgrade for this device.

If needed here is my current version, just shorten it before updating: lede-ar71xx-generic-tl-wr941-v5-squashfs-factory.bin