Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

Please update fw for 841n v13 , thanks

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

Hi guys, I built a new binary for wr840n-v4 using the Daniel Golle patch that did a great job and raised funds in the kickstart. Thank you Daniel! The patch can be found at git.lede-project.org/?p=lede/dangole/staging.git
Even with the work of Daniel the MT7628 drive still has poor performance compared to the atheros SoC (qualcomm) but now we no longer have the MCU message in the kernel log nor the kernel call trace. Important to include in the wireless settings:

Option noscan '1'
Option rx_stbc '2'

To manually restart the interfaces do:
/etc/init.d/network stop && sleep 3 && /etc/init.d/network start

The binary can be downloaded in ge.tt/2iPZH8l2
Rename to tp_recovery.bin and make upload by tftp process.

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

It seems we're a bit stuck regardign the 841 v13.
Here is the status & please contribute.
https://md.darmstadt.ccc.de/AwY2E4CYBYC … bbSRA?view

29 (edited by StrayCode 2017-07-12 09:59:48)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

I report also: github.com/JamesT42/source/commit/6886fce66883d85a64c445fc6416124f41ae0ed4

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

thank you for updates fw for 841n v13, I would love to use fw lede but I don't know anything about programming, I can only hope you help, thank you, hope you will constantly updated to complete the this software

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

Waiting too, thank you for all.

32 (edited by bagciozgur 2017-06-21 00:56:29)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

tuxpap wrote:

The patch can be found at git.lede-project.org/?p=lede/dangole/staging.git ... now we no longer have the MCU message in the kernel log nor the kernel call trace. ...

How can we apply the patch? Can you describe it I want to combine it with revealed GPIO pins of TL-WR841N v13 and build a LEDE firmware.

Edit: OK, i figured it out. Thanks anyway.

33 (edited by StrayCode 2017-07-12 09:59:35)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

news: git.lede-project.org/?p=lede/pepe2k/staging.git;a=shortlog;h=refs/heads/ramips_tp-link-tl-wr840nv4-support_20170621

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

StrayCode wrote:

news: h.t.t.p s:// git.lede-project.org/?p=lede/pepe2k/staging.git;a=shortlog;h=refs/heads/ramips_tp-link-tl-wr840nv4-support_20170621

so, this means that I can follow his flash instructions and I'll have LEDE working on my WR840n v4?? hell yeah! I noticed it's on staging so after some test they can merge it into stable LEDE? thx

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

Hi, I've successfuly instaled LEDE in a 840N V4 but the WiFi link became too slow.

36 (edited by StrayCode 2017-07-12 09:59:18)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

Has anyone tried this?
raxp.ru/index.php/2017/06/21/lede-for-w … 40n-v4-en/

37 (edited by bagciozgur 2017-07-13 00:39:22)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

StrayCode wrote:

Has anyone tried this?
raxp.ru/index.php/2017/06/21/lede-for-w … 40n-v4-en/

this looks promising. i will try it soon.

edit: this is working very well on my 841v13.

to maintainer:

if you are reading this please share a patch with us.

or anyone can guide me how to make a patch out of that driver?

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

Article explains everything.

I'll take you some steps (find the links in the article):

  • The driver for 4.1.X.X kernel was taken from the Padavan for Asus RT-N56U firmware. Makefile for the kernel package was taken from here. Some dependencies was taken from padavan firmware and from witi-openwrt.

  • I’ve replaced core repo with my own repo, which will be hosted on my server. Core repo contains all kernel modules provided with LEDE. You can’t install kernel modules from the lede-project.org because of hashsum mismatch (this was done by OpenWrt developers). All other repos (base, routing, telephony…) are default, from lede-project.org. You only need to uncomment them in /etc/opkg/distfeeds.conf.

39 (edited by bagciozgur 2017-07-13 21:36:26)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

oh boy, i learnt a lot of stuff. i am now compiling openwrt for tl-wr841v13 with mediatek driver for mt7628. i will try it, if i succeed i will share the kernel package source. wish me luck.

edit: i am close but i can't understand what is P4URL in Makefiles. In one it is

define P4/Info
  P4URL:=//Jedi/MP/jedi.MT7628.MP/wifi_driver/
endef

In one other it is

define P4/Info
  P4URL:=//Embedded_WIFI/MP/MT7610/rlt_wifi/
endef

edit: i can't make any progress. waiting for original maintainer to release package.

40 (edited by bagciozgur 2017-07-14 22:53:35)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

i compiled the proprietary driver. but i understood now why the guy said it is a mess. i will create a package soon. since my build is without luci and dropbear i won't share it here.

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

@bagciozgur Thats great! Which kernel version are you building for? I tried before to compile the MT7628 driver for a 4.4 kernel but could not get it configured properly.

I am trying again now starting with a kernel 3.x to see how to configure the driver using Uci and ssh.

Could you post a short simple configuration for an AP with WPA2/aes? Of course looking forward to your driver package. My intentions are to port forward the mt7603 and mt76x2 drivers later as well

Thank you

42 (edited by bagciozgur 2017-07-16 01:24:39)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

Drbrains wrote:

@bagciozgur Thats great! Which kernel version are you building for? I tried before to compile the MT7628 driver for a 4.4 kernel but could not get it configured properly.

I am trying again now starting with a kernel 3.x to see how to configure the driver using Uci and ssh.

Could you post a short simple configuration for an AP with WPA2/aes? Of course looking forward to your driver package. My intentions are to port forward the mt7603 and mt76x2 drivers later as well

Thank you

it compiled but i can't get it working unfortunately. there is some problem with mt7628.ko with my build. I am working on it. I will post a walk-through as soon as I get it working. I am using the kernel 4.4.X.

if there is no wireless in /etc/config probably you can't compile it right. can you share your mt7628.ko with me. mine is buggy somehow.

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

Because it's very buggy, I went back to compile them first with a Mediatek SDK I found. It compiles a generic MT7628 profile but it boots on my device. Problem is it doesn't work. Some "features" don't compile at all. The MT7628AP driver seems to load just fine, but doesn't seem to transmit anything. The MT7628STA can scan and find other networks but can't even connect as client to an open (test) network.

I haven't figured out yet how Padavan manages to use these drivers; or how the guy from the blog above managed even with messy/dirty patches.

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

Drbrains wrote:

Because it's very buggy, I went back to compile them first with a Mediatek SDK I found. It compiles a generic MT7628 profile but it boots on my device. Problem is it doesn't work. Some "features" don't compile at all. The MT7628AP driver seems to load just fine, but doesn't seem to transmit anything. The MT7628STA can scan and find other networks but can't even connect as client to an open (test) network.

I haven't figured out yet how Padavan manages to use these drivers; or how the guy from the blog above managed even with messy/dirty patches.

yeah, wish the guy shares his package.

anyway i will be on my way with linksys ea3500/ea4500 and netbsd. i need to use these routers on massive scale and had no time left. and bsd rocks, lol.

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

Did you guys notice that V4 is discontinued and V5 EU is out?

Noticeable differences are..

840V4

CPU MEDIATEK MT7628NN
1706-AJCSL
EAP0W363
RAM 512MB
WINBOND
W9751G6KB-25

840V5

CPU MEDIATEK MT7628NN
1710-AJCSL
EAP0X331
RAM 512MB
ESMT M14D5121632A

That and the fact that the leds, save one, are gone. Just one led (idiot move if you ask me).

Any luck in supporting? How would I go about it. Whom do I need to ask?

46 (edited by mk24 2017-09-02 19:36:00)

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

The different RAM chip should not make a difference.  The bootloader takes care of configuring RAM.  Linux doesn't try to change it because the kernel runs from RAM.

Re: openwrt on TL-WR841N v13 or TL-WR840N 4.0

It seems however, regardless of the ram, that it doesn't work. it's a new version even though it's the same chipset, and looks like it goes from 1706-AJCSL (V4) to 1710-AJCSL (V5). I will have a serial log in a while and will post. they discontinued 840Nv4, only shipping v5 as of a month or so ago.