OpenWrt Forum Archive

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

The content of this topic has been archived between 27 Apr 2018 and 2 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Please update fw for 841n v13 , thanks

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.

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

(Last edited by StrayCode on 12 Jul 2017, 11:59)

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

Waiting too, thank you for all.

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.

(Last edited by bagciozgur on 21 Jun 2017, 02:56)

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

(Last edited by StrayCode on 12 Jul 2017, 11:59)

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

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

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?

(Last edited by bagciozgur on 13 Jul 2017, 02:39)

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.

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.

(Last edited by bagciozgur on 13 Jul 2017, 23:36)

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.

(Last edited by bagciozgur on 15 Jul 2017, 00:53)

@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

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.

(Last edited by bagciozgur on 16 Jul 2017, 03:24)

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.

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.

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?

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.

(Last edited by mk24 on 2 Sep 2017, 21:36)

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.

Any news about packages of the mtk driver or fix for open source driver? Thanks

Hi, what problem whith web update? Original fw to openwrt/lede?

Hi guys, I have tried current lede snapshot, because I needed wds bridge and to my surprise wds bridge between mediatek based wr841n v13 (wds client) ~~~ atheros based wr1043nd v2 (dumb ap) seem to work fine. I have real throughput around 80 mbit (ht20). Flash via tftp was no problem.

(Last edited by nozombian on 13 Dec 2017, 14:41)

The discussion might have continued from here.