Skip to content

Commit ff1419f

Browse files
raenyehauke
authored andcommitted
mediatek: filogic: add support for Widelantech WAP430X
This AX3000 flying saucer-shaped device is sold under a few names: - Widelantech WAP430X http://www.widelantech.com/?m=home&c=View&a=index&aid=131 - Felicomm - UeeVii UAP200 (sold on amazon.com) True name, as marked on the PCB and as appears in the DTS, is WAP430X. Hardware: - SoC: Mediatek MT7981B - RAM: 256MiB DDR3 - ROM: 16MiB NOR flash (Winbond 25Q128JVSQ) - Wired: one GbE RJ45 port - Wireless: Mediatek MT7976CN DBDC - Antennas: Internal (two 2.4 GHz 4.5 dBi, three 5 GHz 6 dBi) - GPIO: two blue LEDs (status, WLAN), one button (reset) - Power: DC5521 (12V) or 802.3af PoE (48V 0.3A) - UART: J500 on PCB [3v3] (Rx) (Tx) (Gnd), 115200n Original firmware is GECOOS 8.0_2024081000, a fork of OpenWrt 21.02 created by Widelantech. All ports are closed except 443 (web management interface) and 80 (redirects to 443). UART is locked down, but U-Boot bootloader is friendly. Installation is done via UART (see note below). Method 1: press any key during boot to enter MTK U-Boot bootloader, then choose option 2 (Upgrade firmware) and upload sysupgrade binary via TFTP (or via Xmodem). Method 2: put sysupgrade binary on a webserver (http, not https); after GECOOS loads, choose option 4 (固件在线升级 = online firmware upgrade) in the menu and enter the URL to the sysupgrade binary. Note: GECOOS has a slick web management, and firmware can be uploaded at https://6.6.6.6/#/system/sysupgrade but it's still not clear how to convert the sysupgrade binary to a factory binary accepted by the web interface (WIP). Signed-off-by: Rani Hod <[email protected]> Link: openwrt/openwrt#20402 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent e5b86c2 commit ff1419f

File tree

4 files changed

+188
-2
lines changed

4 files changed

+188
-2
lines changed
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2+
3+
/dts-v1/;
4+
5+
#include <dt-bindings/leds/common.h>
6+
#include "mt7981b.dtsi"
7+
8+
/ {
9+
compatible = "widelantech,wap430x", "mediatek,mt7981b";
10+
model = "Widelantech WAP430X";
11+
12+
aliases {
13+
label-mac-device = &gmac1;
14+
led-boot = &led_system;
15+
led-failsafe = &led_system;
16+
led-running = &led_system;
17+
led-upgrade = &led_system;
18+
serial0 = &uart0;
19+
};
20+
21+
chosen {
22+
stdout-path = "serial0:115200n8";
23+
};
24+
25+
gpio-keys {
26+
compatible = "gpio-keys";
27+
28+
btn-0 {
29+
label = "reset";
30+
linux,code = <KEY_RESTART>;
31+
gpios = <&pio 1 GPIO_ACTIVE_LOW>;
32+
};
33+
};
34+
35+
leds {
36+
compatible = "gpio-leds";
37+
38+
led_system: led-0 {
39+
function = LED_FUNCTION_STATUS;
40+
color = <LED_COLOR_ID_BLUE>;
41+
gpios = <&pio 8 GPIO_ACTIVE_LOW>;
42+
};
43+
44+
led-1 {
45+
function = LED_FUNCTION_WLAN;
46+
color = <LED_COLOR_ID_BLUE>;
47+
gpios = <&pio 35 GPIO_ACTIVE_LOW>;
48+
linux,default-trigger = "phy1tpt";
49+
};
50+
};
51+
52+
memory@40000000 {
53+
device_type = "memory";
54+
reg = <0 0x40000000 0 0x10000000>;
55+
};
56+
};
57+
58+
&eth {
59+
pinctrl-names = "default";
60+
pinctrl-0 = <&mdio_pins>;
61+
62+
status = "okay";
63+
64+
gmac1: mac@1 {
65+
compatible = "mediatek,eth-mac";
66+
reg = <1>;
67+
phy-mode = "gmii";
68+
phy-handle = <&int_gbe_phy>;
69+
70+
nvmem-cell-names = "mac-address";
71+
nvmem-cells = <&macaddr_factory_24>;
72+
};
73+
};
74+
75+
&pio {
76+
spi2_flash_pins: spi2-pins {
77+
mux {
78+
function = "spi";
79+
groups = "spi2", "spi2_wp_hold";
80+
};
81+
};
82+
};
83+
84+
&spi2 {
85+
pinctrl-names = "default";
86+
pinctrl-0 = <&spi2_flash_pins>;
87+
status = "okay";
88+
89+
flash@0 {
90+
compatible = "jedec,spi-nor";
91+
reg = <0>;
92+
93+
spi-max-frequency = <52000000>;
94+
spi-tx-bus-width = <4>;
95+
spi-rx-bus-width = <4>;
96+
97+
partitions {
98+
compatible = "fixed-partitions";
99+
#address-cells = <1>;
100+
#size-cells = <1>;
101+
102+
partition@0 {
103+
label = "BL2";
104+
reg = <0x00000 0x40000>;
105+
read-only;
106+
};
107+
108+
partition@40000 {
109+
label = "u-boot-env";
110+
reg = <0x40000 0x10000>;
111+
read-only;
112+
};
113+
114+
partition@50000 {
115+
label = "Factory";
116+
reg = <0x50000 0xb0000>;
117+
read-only;
118+
119+
nvmem-layout {
120+
compatible = "fixed-layout";
121+
#address-cells = <1>;
122+
#size-cells = <1>;
123+
124+
eeprom_factory: eeprom@0 {
125+
reg = <0x0 0x1000>;
126+
};
127+
128+
// LAN MAC address
129+
macaddr_factory_24: macaddr@24 {
130+
reg = <0x24 0x6>;
131+
};
132+
133+
// WAN MAC address (not used)
134+
/* macaddr@2a {
135+
reg = <0x2a 0x6>;
136+
}; */
137+
};
138+
};
139+
140+
partition@100000 {
141+
label = "FIP";
142+
reg = <0x100000 0x80000>;
143+
read-only;
144+
};
145+
146+
partition@180000 {
147+
compatible = "denx,fit";
148+
label = "firmware";
149+
reg = <0x180000 0xe70000>;
150+
};
151+
152+
partition@ff0000 {
153+
label = "opt";
154+
reg = <0xff0000 0x10000>;
155+
read-only;
156+
};
157+
};
158+
};
159+
};
160+
161+
&uart0 {
162+
status = "okay";
163+
};
164+
165+
&wifi {
166+
status = "okay";
167+
nvmem-cells = <&eeprom_factory 0>;
168+
nvmem-cell-names = "eeprom";
169+
};

target/linux/mediatek/filogic/base-files/etc/board.d/02_network

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ mediatek_setup_interfaces()
112112
openfi,6c|\
113113
ubnt,unifi-6-plus|\
114114
wavlink,wl-wn573hx3|\
115+
widelantech,wap430x|\
115116
zyxel,nwa50ax-pro)
116117
ucidef_set_interface_lan "eth0"
117118
;;

target/linux/mediatek/filogic/base-files/lib/upgrade/platform.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,10 @@ platform_do_upgrade() {
157157
;;
158158
cudy,re3000-v1|\
159159
cudy,wr3000-v1|\
160-
yuncore,ax835|\
160+
totolink,x6000r|\
161161
wavlink,wl-wn573hx3|\
162-
totolink,x6000r)
162+
widelantech,wap430x|\
163+
yuncore,ax835)
163164
default_do_upgrade "$1"
164165
;;
165166
dlink,aquila-pro-ai-m30-a1|\

target/linux/mediatek/image/filogic.mk

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2626,6 +2626,21 @@ define Device/wavlink_wl-wn573hx3
26262626
endef
26272627
TARGET_DEVICES += wavlink_wl-wn573hx3
26282628

2629+
define Device/widelantech_wap430x
2630+
DEVICE_VENDOR := Widelantech
2631+
DEVICE_MODEL := WAP430X
2632+
DEVICE_ALT1_VENDOR := Widelantech
2633+
DEVICE_ALT1_MODEL := AX3000AM
2634+
DEVICE_ALT1_VENDOR := UeeVii
2635+
DEVICE_ALT1_MODEL := UAP200
2636+
DEVICE_DTS := mt7981b-widelantech-wap430x
2637+
DEVICE_DTS_DIR := ../dts
2638+
DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware
2639+
IMAGE_SIZE := 14784k
2640+
SUPPORTED_DEVICES += UAP200 AX3000AM # allow upgrade via GECOOS UART menu
2641+
endef
2642+
TARGET_DEVICES += widelantech_wap430x
2643+
26292644
define Device/xiaomi_mi-router-ax3000t
26302645
DEVICE_VENDOR := Xiaomi
26312646
DEVICE_MODEL := Mi Router AX3000T

0 commit comments

Comments
 (0)