https://www.wavlink.com/en_us/firmware/details/a6f6f99d3b.html
@varu I've been testing successfully for a while now; seems stable.
That said, OpenWRT seems kinda slow compared to stock. With stock, I get a little over 300mbps on 5ghz channel 36, 80mhz... with OpenWRT, same channel and config, I get about 190mbps.
I wonder what could be the reason for this? I would have thought stock firmware is also linux, using the same driver? Could it be just a config issue? I'm not sure what I could tweak to improve perf... but there's a big delta from stock.
Also, maybe it would be a good idea to formalise the build, and update this: https://openwrt.org/inbox/toh/wavlink/wavlink_ac1200?s[]=wavlink
Hello friend , can u send those firmware please ... email is ( one_usa@hotmail.my ) Thank you ..
Sorry for the late reply,
Since I'm not using these devices anymore I had deleted the firmware ...
But lucky for you, I found it on a ZFS-snapshot from 2020.
Hi @varu / @turkeyman ,
Can you share how you built your firmware for this device?
I'm re-reading the thread and it seems that you finally were able to make the wan port work.
But I cannot find any post linking to the firmware.
I'd love to finally be able to install OpenWrt in it.
Thanks for your work!
Here's a reupload: https://www.sendspace.com/file/cvij6t
Sorry, I ran out of time on this one and never got around to submitting the patches. I will do so in the near future & hopefully these can start receiving automated builds.
@turkeyman no idea! From what I remember this was just a few modifications to another DTS for a device with the same WiFi chip, no additional tuning was done. No idea what the stock firmware is doing either. I've achieved my purposes with this one (getting it to work & performing decently enough for my use case, where ~70mbit or so suffice), someone will have to look at what the stock firmware is doing and/or make adjustments to it as compiled.
@Dave_L Unfortunately I didn't take a full dump of the device (at least I don't think so), but with OpenWRT on it I may be able to extract one, I will update if that's the case. Anyone else having flashed or about to flash OpenWRT (aka having the right conditions to obtain a shell) should also be able to retrieve a full bin.
Hello, I got this device and indeed the original firmware is garbage.
But after reading the entire thread I am still a bit confused, is WAN working properly now?
Your response seems to indicate that but the project page says that it isnt.
Since I am not confident enough to be able to unbrick this device in case something goes wrong, I will wait for more clarity on this matter.
I have a small business in a open nature area and I couldnt afford to not have my device working since I dont have a backup device for outdoor use.
I would love to use openWRT on this though.
I guess this is what we get for trying to buy something on a budget, low adoption means low interest from developers.
Would anyone recommend a similar product with a larger userbase?
Hey @varu, would you mind sharing your patches in any form?
I'd like to implement the WL-WN572HP3, which I suspect is rather similar to yours.
In case you do not have time to do clean patches rn, a zip or something would be fine.
Give me a name and an email-address via pm and I'll attribute your work in the commit for my model.
Would be a waste of time to start over from the beginning, but will do so until you respond
Thanks in advance!
Hi, have you found how to make this router with OpenWrt?
Not sure If you mean @varu or me;
I got the WL-WN572HP3 working, contributed it to OpenWrts master and created a backport for OpenWrt 22.03 .
The resulting commits were dce66899bf in master
and 6cd1035d8d in OpenWrt 22.03.
I haven't heard back from @varu, If I'm not mistaken;
but implementing it on my own was not that hard.
If you wanted to implement the WL-WN572HG3 using my master commit as a reference and dropping everything regarding LTE, as well as checking the partition Layout and LED assignments could already do the trick; they seem to have a lot of rather similar devices; maybe check in with wikidevi beforehand
Thanksfor your reply. My marked as AERIAL HD4 with firmware WN572HG3. As per https://openwrt.org/inbox/toh/wavlink/wavlink_ac1200?s[]=wavlink it has hardware. So what I can just upload your build. Is WAN port working? It has only one GB port, LAN just 100 MB. It should be flashed via WAN or LAN port?
I do not know why that's such a common thing here in the froum, but it's generally a bad idea to just flash firmware for a different device unless you accept you'll likely brick it.
Your device does lack the LTE-Modem and you would in the best case create a device that then thinks it was a LTE modem.
I strongly advice to stick to my suggestion above and build OpenWrt for your device and hand in a patch after testing that.
That way your learning expereience might actually lead to device support in OpenWrt, which might increase the chance for others to help you once you run into errors, which will likely enough be the case.
I'm not sure whether you really looked up the specs, but as far as I can tell, my device has a flash chip double the size of the one in WL-WN572HG3.
So I would not flash my image onto your device regardless of the port.
Thanks.I know, that its almost not possible to flash other image. It's very strange, that allmost everything was done 1 year ago and still not good image. Wavlink software terrible. Might be K2 can work?Looks like the same hardware.
Hi! Do you still have image for WN572HG3?
I think I'll be leaving this discussion, I'm not in the mod for repeating myself;
as I said, I implemented the WL-WN572HP3 on my own,
as I never heard anything from the original author of this thread.
I never had any images for your device, as they are not the same.
I have not had images for similar devices either.
You can find my work in the upstream repo in both master and backport 22.03 but should not flash that onto your device without taking a look at the specs, which very likely differ.
Be careful and have fun,
Aiyion
My apologies for not getting back to this earlier, the patch set should be below. It's been a long time since I looked at this and I never submitted an official contribution (if someone else would like to, please feel free!). This is a diff of a fresh git clone of v21.02.1 and a clone of the same which I modified. Most of the work was already done with the wn530hg4 (that's what I based this on), and as aiyion pointed out, figuring this out is no big deal if you're experienced (which I'm not - it took me a good while). It would be great to see this accepted as a supported build.
Per Gemi's request I've reuploaded the v21.02.1 compile linked earlier in the thread, I did not compile against the latest stable.
diff -urN openwrt/target openwrt-works/target
diff -urN openwrt/target/linux/ramips/dts/mt7620a_wavlink_wl-wn572hg3.dts openwrt-works/target/linux/ramips/dts/mt7620a_wavlink_wl-wn572hg3.dts
--- openwrt/target/linux/ramips/dts/mt7620a_wavlink_wl-wn572hg3.dts 1969-12-31 19:00:00.000000000 -0500
+++ openwrt-works/target/linux/ramips/dts/mt7620a_wavlink_wl-wn572hg3.dts 2022-01-14 16:56:16.642254070 -0500
@@ -0,0 +1,176 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "mt7620a.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+ compatible = "wavlink,wl-wn572hg3", "ralink,mt7620a-soc";
+ model = "Wavlink WL-WN572HG3";
+
+ aliases {
+ led-boot = &led_wifi_high;
+ led-failsafe = &led_wifi_high;
+ led-upgrade = &led_wifi_high;
+ };
+
+
+ keys {
+ compatible = "gpio-keys";
+
+ reset {
+ label = "reset";
+ gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ lan {
+ label = "green:lan";
+ gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
+ };
+
+ wan {
+ label = "green:wan";
+ gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
+ };
+
+ wifi {
+ label = "green:wifi";
+ gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+ };
+
+ wifi_low {
+ label = "green:wifi_low";
+ gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
+ };
+
+ wifi_mid {
+ label = "green:wifi_mid";
+ gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
+ };
+
+ led_wifi_high:wifi_high {
+ label = "green:wifi_high";
+ gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
+
+&gpio2 {
+ status = "okay";
+};
+
+&gpio3 {
+ status = "okay";
+};
+
+&spi0 {
+ status = "okay";
+
+ flash@0 {
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <24000000>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "config";
+ reg = <0x30000 0x10000>;
+ read-only;
+ };
+
+ factory: partition@40000 {
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
+ };
+
+ partition@50000 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0x50000 0x790000>;
+ };
+
+ partition@7e0000 {
+ label = "board_data";
+ reg = <0x7e0000 0x10000>;
+ read-only;
+ };
+
+ partition@7f0000 {
+ label = "nvram";
+ reg = <0x7f0000 0x10000>;
+ read-only;
+ };
+ };
+ };
+};
+
+&state_default {
+ gpio {
+ groups = "i2c", "uartf", "ephy", "wled";
+ function = "gpio";
+ };
+};
+
+ðernet {
+ pinctrl-names = "default";
+ pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
+
+ mtd-mac-address = <&factory 0x28>;
+
+ mediatek,portmap = "llllw";
+
+ port@4 {
+ status = "okay";
+ phy-handle = <&phy4>;
+ phy-mode = "rgmii";
+ };
+
+ mdio-bus {
+ status = "okay";
+
+ phy4: ethernet-phy@4 {
+ reg = <4>;
+ phy-mode = "rgmii";
+ };
+ };
+};
+
+&gsw {
+ mediatek,port4 = "gmac";
+};
+
+&pcie {
+ status = "okay";
+};
+
+&pcie0 {
+ mt76@0,0 {
+ reg = <0x0000 0 0 0 0>;
+ mediatek,mtd-eeprom = <&factory 0x8000>;
+ ieee80211-freq-limit = <5000000 6000000>;
+ };
+};
+
+&wmac {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pa_pins>;
+
+ ralink,mtd-eeprom = <&factory 0x0>;
+};
diff -urN openwrt/target/linux/ramips/image/mt7620.mk openwrt-works/target/linux/ramips/image/mt7620.mk
--- openwrt/target/linux/ramips/image/mt7620.mk 2023-03-29 00:30:41.162725113 -0400
+++ openwrt-works/target/linux/ramips/image/mt7620.mk 2022-01-14 00:35:17.162562607 -0500
@@ -1093,6 +1093,15 @@
endef
TARGET_DEVICES += wavlink_wl-wn530hg4
+define Device/wavlink_wl-wn572hg3
+ SOC := mt7620a
+ IMAGE_SIZE := 7744k
+ DEVICE_VENDOR := Wavlink
+ DEVICE_MODEL := WL-WN572HG3
+ DEVICE_PACKAGES := kmod-mt76x2 kmod-phy-realtek
+endef
+TARGET_DEVICES += wavlink_wl-wn572hg3
+
define Device/wrtnode_wrtnode
SOC := mt7620n
IMAGE_SIZE := 16064k
diff -urN openwrt/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds openwrt-works/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds
--- openwrt/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds 2023-03-29 00:30:41.166725116 -0400
+++ openwrt-works/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds 2022-01-14 18:17:44.385084951 -0500
@@ -219,6 +219,12 @@
zbtlink,zbt-we2026)
ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0"
;;
+wavlink,wl-wn572hg3)
+ ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x2"
+ ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x10"
+ ucidef_set_led_wlan "wifi" "WIFI24G" "green:wifi" "phy1tpt"
+ ucidef_set_led_wlan "wifi_low" "WIFI5G" "green:wifi_low" "phy0tpt"
+ ;;
esac
board_config_flush
diff -urN openwrt/target/linux/ramips/mt7620/base-files/etc/board.d/02_network openwrt-works/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
--- openwrt/target/linux/ramips/mt7620/base-files/etc/board.d/02_network 2023-03-29 00:30:41.166725116 -0400
+++ openwrt-works/target/linux/ramips/mt7620/base-files/etc/board.d/02_network 2022-01-13 23:35:27.399316909 -0500
@@ -192,10 +192,17 @@
ucidef_add_switch "switch0" \
"4:lan" "0:wan" "6@eth0"
;;
- phicomm,k2g|\
+ phicomm,k2g)
+ ucidef_add_switch "switch0" \
+ "1:lan" "4:lan" "5:wan" "6@eth0"
+ ;;
+ wavlink,wl-wn572hg3)
+ ucidef_add_switch "switch0" \
+ "1:lan" "4:wan" "6@eth0"
+ ;;
wavlink,wl-wn530hg4)
ucidef_add_switch "switch0" \
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5:wan" "6@eth0"
;;
phicomm,psg1218b)
ucidef_add_switch "switch0" \
@@ -339,6 +346,7 @@
lenovo,newifi-y1s|\
ohyeah,oy-0001|\
wavlink,wl-wn530hg4|\
+ wavlink,wl-wn572hg3|\
youku,yk1)
wan_mac=$(mtd_get_mac_binary factory 0x2e)
;;
Good day! Thanks vry much for your reply and upload. Just to clear - is this wirking build with WAN port?As I am completly new to OpenWRT, how it should be uploaded: by soldering? Should it be renamed? Sorry to bother you, but Wavlink soft is completely bad
It did work with the WAN port when I tested it. Give the thread & wiki another read, you may be able to do it from the stock firmware if you're using the right revision (one that allows the backdoor & telnet access) - I think turkeyman successfully flashed it that way. If you're completely new to OpenWRT tread very carefully as devices like this can be exceptionally easy to brick where a smooth flashing process (usually flashing using the stock firmware's web interface) has not yet been devised.
Hi! How have you flashed WN572HG3 with VARU build?Have you opened or used web interface?Have you ranamed file?Ijust received file.Ithas size 7.25 MB and original has just 5.58 MB