Port to TP-Link RE200

@andyboeh I noticed that my 5Ghz Wifi is only offering me 12dB Transmit Power, apparently this was a known bug before that should be fixed by now. Do you see the same thing? The range of my 5Ghz Wifi is very limited, a lot more than other 5Ghz Access Points I have. Would be great if you could check that so I know if its a configuration thing in my dts or if there is something wrong in the driver itself.

1 Like

FYI

Snapshot support has been added with https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=a3010a7f8dbe04972efef16ed7d81b5fd72e9a94

OpenWrt snapshot images are available for download at http://downloads.openwrt.org/snapshots/targets/ramips/mt7620/

iw list reports 12.0 dBm as max transmit power on the 5GHz WiFi, but 20.0 dBm on the 2.4GHz WiFi.

1 Like

Same here, I looked at the mediatek,mtd-eeprom part on the flash, at the documentation on them and at the driver and it seems like this is what is limiting the transmit power. Either the driver is not interpreting those values correctly or the values specified are wrong and tplink somehow overrides them.

1 Like

Finally, I tested the 5GHz WiFi range: It seems normal to me, i.e. it passes through two thick walls, similar to the 2GHz WiFi.

1 Like

Does anyone know how I use mktplinkfw -i? I really wanted to use TP-Link on the RE200, but I am a layman in the use of these tools.

I don't really understand your question: You just run mktplinkfw -i your_firmware.bin!?

Now that the device is supported in "snapshot", we should really have a tool to create a stock-flashable firmware. Does anybody know whether it is OK to post a firmware with the U-Boot binary from an original TP-Link firmware upgrade?

1 Like

You need to check the license of U-Boot, it's licensed under the GPL if I remember correctly so you should be able to redistribute, modify and share it as you wish. However, I'm not a lawyer.

1 Like

I think the question is more, How do I install mktplinkfw so I can then run that command in terminal? And if that's not LaercioCordeiro's question, that is my question.

Appreciate the help.

Ah, OK: It's part of OpenWrt's build system, so you need to set up the development environment. I understand pretty well that this is not very convenient, so I'll try to come up with a more convenient solution - maybe a GUI tool that allows to generate such an image.

1 Like

Not ready for tool-less user install. Should be fixed either with mktplinkfw binary for x86_64 linux, either with a suitable transition firmware for both EU and US regions like for similar tp-link devices on mt7620 either with some updated version of such tool.
Till there is no way to be installed without opening the device this should not be present in snapshots.

I created a simple GUI tool where you need to select a TP-Link Firmware and an OpenWrt Firmware and the tool creates a firmware suitable for flashing via web interface.
There is one drawback: I cannot test the resulting firmware, because I super-glued my device back together and can't flash back to stock to test it. I only verified that the headers, file locations and checksums are correct.

Before releasing binaries to the public, I'm therefore looking for someone with a stock web interface who is prepared to take the risk that the device might either be bricked or that serial access is necessary to recover the device. Please send me a PM in this case. The source code is available at https://www.aboehler.at/hg/openwrt-imagetool.

4 Likes

Could you give an example of such a transition firmware?

1 Like

Hope this is similar to our device somehow, especially with the v1 header
And here are the roots of the header's reverse-engeneering

That worked fine for me with the lastest snapshot. Thank you!
Used cmake CMakeLists.txt && make to get executable binary. Not 100% sure that was theright way to build it, but it worked for me on ArchLinux.

Thanks for testing! Yes, that's the right way to build it (I developed it on Arch). I'll post a Windows binary later today.

1 Like

Hi there, i follow your progress since a couple of days.

First thanks for your work, now i want openwrt on my v2

I compiled the tool and downloaded eu stock v2 Firmware and the official snapshot.

My question which i need to convert the factory or sysupgrade, i guess factory.

But with both i get firmware error via webinterface.

Im brave and will test, if it really goes wrong ill take my raspberry and reflash via the gpios already done with my archer c7.

But what i never done before is building openwrt from source. (cause of 384kbit/64kbit Internet)
Loading the image leasts 20 minutes, source would need days.

With a little advice i would join and paticipate (got some embedded skills from Android porting)

Fist some info:
MT7628A;MT7628AN
1701-AJCSL, EAP0V234
MT7610E
RAM1 Size 64 MB
RAM1 Chip Zentel A3R12E40DBF-8E

Thanks in advance
Phil2Sat

Currently, only the v1 is supported. As you already mentioned, the v2 is based on a different SoC (MT7628A vs. MT7620A). According to @Flole the v3 uses the same SoC.

1 Like

Yes i know, so i hope i can use @Flole 's build to get it sing and dance, but so far i cant see anything on git or somewhere else

It's indeed not published yet as I am a little bit skeptical about the 5Ghz Wifi Range. I will send you a copy soon @phil2sat (if you dont hear anything within the next week please mention me again as I most likely forgot it then).

1 Like