OpenWrt Forum Archive

Topic: TP-Link TL-WR841N v8.0

The content of this topic has been archived between 26 Jul 2014 and 6 May 2018. Unfortunately there are posts – most likely complete pages – missing.

so, in tp-link firmwares without uboot, file size must be 0x3c0000 in hex, 3932160 in dec, same as openwrt "factory" image.

check what uboot you have, it's better to match it with the firmware you are going to flash.

from cli type:

grep -a U-Boot /dev/mtd0ro | cut -d'I' -f1    

then choose firmware with the same date, here is some of them:

https://www.dropbox.com/s/xmbiu0tz4445j … 130506.bin

https://www.dropbox.com/s/vul79uuxqfe27 … 121101.bin

https://www.dropbox.com/s/x4tnmxoac34mb … 120802.bin


how to strip whatever size from a binary file:

open the file with an hex editor, my favourite under windows it's XVI32:

http://www.chmaas.handshake.de/delphi/f … m#download

edit->block n chars->hex $20200->ok
edit->block delete.
close and save.
rename to somthing simple like "tplink.bin" before flashing.



@ d350922

you can find firmware without Luci in trunk snapshots:

http://downloads.openwrt.org/snapshots/trunk/ar71xx/

remember trunk is beta, risky, possibly unstable and so on...

(Last edited by nebbia88 on 27 Jan 2014, 19:16)

Hi,

@d350922
I had this problem too, but i found a solution to get openvpn run on the router. Show here: http://blog.ciberterminal.net/2013/06/1 … k-wr841nd/

The stop function work uncorrect, but i have fixed it. I've you want it, contact me.

I'm intressted in an striped version without luci, ppp and the usb modules, so i can install freeradius and maybe nfs to install programmes remotely on my nas (Raspberry Pi).  If this will work, it were  fantastic.

Maybe, somebody  can tell me where i found the default-package list.

Compilenix: I've wr841n compiled latest barrier breaker with openvpn, qos, n2n and some other packages, fits fine, and still I had ~200KB of flash free smile I have not removed anything, except I unchecked compile with ipv6 support. If you want some specials, you should build your image yourself, there are only few steps to follow and you don't even have to use linux machine, on windows you can install ubuntu into virtual box and compile from there, which is way slower, but works too. See http://wiki.openwrt.org/doc/howto/build

Basically this is all you have to do (you may have to make a few tweaks, can't test right now):

sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt xsltproc # this install missing packages to ubuntu, needed only once
mkdir ~/openwrt/trunk
cd ~/openwrt/trunk
svn co svn://svn.openwrt.org/openwrt/trunk/ # the next compilation you use only command svn update
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig # in menus select wr841n v8 and check / uncheck whatever you want to have included
make

You hould read the mentioned wiki to know what you are doing first. After this is done, you will see in ~/openwrt/trunk/bin/ar7something ready images. Go and prove yourself you deserve "Compilenïx" nick wink

(Last edited by nozombian on 28 Jan 2014, 09:53)

nozombian, have you managed to add openvpn without removing luci?

Okay guys, here is my build based on Aegisu's build script:

  • Barrier Breaker r39450

  • Nothing has been stripped

  • Optimized for TL-WR841N/ND v8.x's hardware

  • Minified LuCI's CSS and optimized its JS (YUI Compressor and Closure Compiler)

  • IPv6

  • UPnP support through MiniUPnP

  • LuCI

  • OpenVPN

  • QoS

  • Free ROM: 210KB

  • Free RAM: 4500KB

  • Cached RAM: 7600KB

Download firmware:
openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-amq.zip

Build script:
http://paste.debian.net/hidden/62d1c81c/

It is confirmed working on my v8.1. Sysupgrade from AA went flawlessly without the need of a cold boot.
OpenVPN BF-CBC speed: 10mbps down / 10mbps up (my ISP offers 100 down / 10 up)

(Last edited by amq on 4 Feb 2014, 14:28)

Hi, everybody!
I add USB on my wr841n ver 8.2, but unfortunately I can't make an insertion with usb support in firmware. Therefore I ask to lay out an insertion with a patch for usb. Thanks.

Hi, I have successfully install openwrt. I want to know how can i overclock and increase the throughout port and signal strength?

rkarp wrote:

Hi, everybody!
I add USB on my wr841n ver 8.2, but unfortunately I can't make an insertion with usb support in firmware. Therefore I ask to lay out an insertion with a patch for usb. Thanks.

Ok I dealt with firmware, now at connection of the USB device, 4 Gb Kingston flash drive, in dmesg I see it:

root@OpenWrt:~# logread -f
Wed Feb 12 18:49:22 2014 kern.info kernel: [  159.880000] usb 1-1: new full-speed USB device number 2 using ehci-platform
Wed Feb 12 18:49:22 2014 kern.err kernel: [  160.100000] usb 1-1: device descriptor read/64, error -71
Wed Feb 12 18:49:22 2014 kern.err kernel: [  160.420000] usb 1-1: device descriptor read/64, error -71
Wed Feb 12 18:49:23 2014 kern.info kernel: [  160.650000] usb 1-1: new full-speed USB device number 3 using ehci-platform
Wed Feb 12 18:49:23 2014 kern.err kernel: [  160.870000] usb 1-1: device descriptor read/64, error -71
Wed Feb 12 18:49:23 2014 kern.err kernel: [  161.190000] usb 1-1: device descriptor read/64, error -71
Wed Feb 12 18:49:23 2014 kern.info kernel: [  161.420000] usb 1-1: new full-speed USB device number 4 using ehci-platform
Wed Feb 12 18:49:24 2014 kern.err kernel: [  161.900000] usb 1-1: device not accepting address 4, error -71
Wed Feb 12 18:49:24 2014 kern.info kernel: [  162.020000] usb 1-1: new full-speed USB device number 5 using ehci-platform
Wed Feb 12 18:49:24 2014 kern.err kernel: [  162.500000] usb 1-1: device not accepting address 5, error -71
Wed Feb 12 18:49:24 2014 kern.err kernel: [  162.500000] hub 1-0:1.0: unable to enumerate USB device on port 1
Wed Feb 12 18:50:18 2014 kern.info kernel: [  216.000000] usb 1-1: new full-speed USB device number 6 using ehci-platform
Wed Feb 12 18:50:18 2014 kern.err kernel: [  216.220000] usb 1-1: device descriptor read/64, error -71
Wed Feb 12 18:50:18 2014 kern.err kernel: [  216.540000] usb 1-1: device descriptor read/64, error -71
Wed Feb 12 18:50:19 2014 kern.info kernel: [  216.770000] usb 1-1: new full-speed USB device number 7 using ehci-platform
Wed Feb 12 18:50:19 2014 kern.err kernel: [  216.990000] usb 1-1: device descriptor read/64, error -71
Wed Feb 12 18:50:19 2014 kern.err kernel: [  217.280000] usb 1-1: device descriptor read/64, error -71

Somebody knows about this?

my firmware last build openwrt trunk.

amq wrote:

nozombian, have you managed to add openvpn without removing luci?

No, I doubt this can be done without being dependent on external package source, luci is a serious (and ugly) flash eater smile

nozombian wrote:
amq wrote:

nozombian, have you managed to add openvpn without removing luci?

No, I doubt this can be done without being dependent on external package source, luci is a serious (and ugly) flash eater smile

Actually, I have succeeded. Have a look at my previous post smile

amq wrote:

Actually, I have succeeded. Have a look at my previous post smile

openvpn-openssl???

nebbia88 wrote:

openvpn-openssl???

polarssl

Do you really need openssl for OpenVPN? Polarssl is 4 times smaller and it still supports Blowfish, AES, DES, SHA, RSA and others, in other words, every modern cipher and hashing angorithm used by VPN providers.

nothing against polarssl, it was just to be more specific.

Built a new image for myself and updated the patches, so I figured I'd post it since it seems some actually used my last release.

Changes since last release:
• Updated OpenWrt to trunk r39634
• Build script now exits if a command exits with a non-zero status
• Refreshed config
• Resynced patches
• Updated miniupnpd to miniupnpd-1.8.20140203
• Cleaned up miniupnpd patch

Download:
openwrt-ar71xx-generic-tl-wr841n-v8-squashfs-1b3e360.zip

Build script:
http://paste.debian.net/hidden/bff6154c/

Patches:
74kc_compiler_optimizations.patch
miniupnpd-1.8.20140203.patch

Hello, i'm new to openwrt. Planning to purchase a TP-Link TL-WR841ND.

I want to ask whether it supports VRRP? Need it for uni project.

Many thanks.

Cheers.

Aegisu, how do you know we actually need dsp2 and not 74kc again? (CPU_SUBTYPE:=dsp2)

I couldn't find any information on that.

With this build my Ping is very High

Has anyone gotten a media server setup? I have tried minidlna and ushare, but there is not enough space on the router. I have luci installed.

(Last edited by segacorpceo on 1 Mar 2014, 02:48)

amq wrote:
nebbia88 wrote:

openvpn-openssl???

polarssl

Do you really need openssl for OpenVPN? Polarssl is 4 times smaller and it still supports Blowfish, AES, DES, SHA, RSA and others, in other words, every modern cipher and hashing angorithm used by VPN providers.

Oh so, I thought you performed some magic tricks wink Good to know, I don't need luci, but I will surely give polarssl a try. I upgraded lubuntu (fresh install), wanted to compile again with all I need and failed for this time, no error, but images was not created, probably because of size. When I remove openvpn, it builds fine.

I don't trust polarssl at all, most of the code is submitted by dutch spook collaborators - by their own publicity, just check the company out. Just one zero day exploit could be worth enormous sums to them, even if they are not just a front. It is either naive or complicit not to take these things into account these days. Openvpn/SSL is a prime target - if not by willing collaboration/bribery, then by threat or blackmail on otherwise good people inside. Or are we supposed to believe that openvpn and SSL libraries are now left alone when even Linus Torvalds was pressured under threat to stay silent about it. That is the real threat, not which superficial ciphers they support.

So, has anyone managed to fit openvpn-openssl on an 841? I have it working on AA, but is there some new bloat now? Any workaround?

amq wrote:
nebbia88 wrote:

openvpn-openssl???

polarssl

Do you really need openssl for OpenVPN? Polarssl is 4 times smaller and it still supports Blowfish, AES, DES, SHA, RSA and others, in other words, every modern cipher and hashing angorithm used by VPN providers.

Sorry, posts 422 to 420 are missing from our archive.

Agatheiz wrote:

I want to ask whether it supports VRRP?

There is a package for vrrpd.

A question of my own: iptables target TEE appears not to work in the Attitude Adjustment image as the ipt_ROUTE module doesn't exist even after installing the packages iptables-mod-tee and kmod-ipt-tee. Does it work with one of the recent custom images posted here? Thanks!

Edit: Nevermind. Turned out that the module needed is actually xt_TEE which is included in kmod-ipt-tee but didn't load as it has a couple ipv6 symbols. Installing the package kmod-ipv6 resolves them.

(Last edited by johndoe on 3 Mar 2014, 05:50)

Hi, can anyone post full instructions or pictures or video on how to solder a usb port on the wr841n v8?

Hi,

I bricked my TP-Link WR840ND v8.2 (all leds blinking...) when I try to update the firmware from DDWRT to stock.... I tried this because I can't upgrade from DDWRT to OPENWRT directly...
http://i435.photobucket.com/albums/qq77/gandamaluko/TP-Link_WR840ND/Bricked1_zps0025c6a7.jpg
http://i435.photobucket.com/albums/qq77/gandamaluko/TP-Link_WR840ND/Bricked2_zps916b1b8e.jpg
Now, I have no LAN, no WIFI, nothing and also I can't enter in recovery mode doing this:

Getting the router Ready
1) Connect ETHERNET cable to your router, in the WAN port (blue)
2) Turn Router ON. Press the WPS/Reset button many times.
3) Wait for LED under gear icon to flash rapidly.
Your router is in Recovery Mode now.)

Now I need to try the Serial Console... I already soldered the wires to the board...
http://i435.photobucket.com/albums/qq77/gandamaluko/TP-Link_WR840ND/Foto1_zps2a8779aa.jpg
Board v8.2
http://i435.photobucket.com/albums/qq77/gandamaluko/TP-Link_WR840ND/foto2_zps6d165dfb.jpg
Before solder the wires
http://i435.photobucket.com/albums/qq77/gandamaluko/TP-Link_WR840ND/foto3_zps06928e54.jpg
After solder the wires

Now I need to get a pc with serial port or a Nokia data cable...

1 - It is not possible to use a USB to RS232 cable connected to a male DB9... and connect that DB9 male to the pcb?
2 - What I need to do more?

Thanks in advance and best regards,
P.A

is there any chance to see a build with cisco Aironet Extensions enabled?