From a02e19aadb20f309d61b79676ce0eb035daaea9c Mon Sep 17 00:00:00 2001 From: Lars Gierth Date: Mon, 23 Nov 2026 11:55:23 +0100 Subject: [PATCH] mediatek: add support for Zyxel NWA55AX Pro The Zyxel NWA55AX Pro is a 802.11ax outdoor access point introduced in 2026. It is identical to the NWA55AX PTP, except for the wifi antennas. Hardware -------- | | | |----------|----------------------------------------------------------------| | SoC | MT7981B | | RAM | 512 MB DDR4 | | Flash | 256 MB SPI NAND, Winbond W25N02KVZEIR, 50 MB usable by OpenWrt | | Ethernet | 1x RJ45 via SoC (1G/100M) | | Wifi | 802.11ax via SoC | | | - 5 GHz: 2x2:2SS, 4 dBi, omni, internal soldered | | | - 2.4 GHz: 2x2:2SS, 3 dBi, omni, internal soldered | | Power | PoE 802.3af | | LEDs | 1x multi-color | | Button | 1x reset | | Console | 115200n8 pin holes for GND/RX/TX/VCC @ 3V3 (VCC not needed) | Installing OpenWrt via Web UI ----------------------------- 1. Download squashfs-factory.bin image, rename it to just factory.bin so it's short. 2. Boot the device, open its Web UI in a browser. 3. Upload factory.bin at Maintenance > File Manager > Firmware Package. 4. Wait for the device to reboot. Note that OpenWrt disables wifi by default. If the device keeps rebooting into vendor firmware, you've hit the wrong A/B slot. OpenWrt must be installed to the first slot (0), vendor firmware remains in the second slot (1). You can flash any Zyxel firmware update to activate the respective other slot, e.g. flash from 7.11 to 7.12, or from 7.11 to 7.10. Afterwards another upload of OpenWrt factory.bin will succeed. Installing OpenWrt via serial console ------------------------------------- 1. Attach to GND/RX/TX pins after opening the case and removing the antenna panel. 2. Serve initramfs-kernel.bin on TFTP 192.168.1.66. 3. Power on the device. 4. Interrupt U-Boot by pressing `Esc,Esc` when prompted. 5. Set device TFTP config: - `atna 192.168.1.88 ; atnf initramfs-kernel.bin` 6. Boot from TFTP: - `atns "192.168.1.66 ; tftpboot ; setenv fdt_high 0xffffffffffffffff ; bootm"` 7. Activate the first A/B slot: - `zyxel-bootconfig /dev/mtd9 set-image-status 0 valid` - `zyxel-bootconfig /dev/mtd9 set-active-image 0` 8. Use SCP to copy `squashfs-sysupgrade.bin` to the device, then run `sysupgrade`. 9. Wait for the device to reboot. Note that OpenWrt disables wifi by default. Restoring factory firmware -------------------------- OpenWrt installs into the first A/B slot, while vendor firmware remains in the second slot. You can activate the second slot (1) from within OpenWrt: zyxel-bootconfig /dev/mtd9 get-status zyxel-bootconfig /dev/mtd9 set-image-status 1 valid zyxel-bootconfig /dev/mtd9 set-active-image 1 reboot MAC addresses ------------- OpenWrt uses the same MAC addresses as vendor firmware and chassis labels. The base address is read from the `mrd` flash partition. - Ethernet: base address + 0 - Wifi 2.4G: base address + 1 - Wifi 5G: base address + 2 Notes/Quirks ------------ - The A/B partition layout has two slots of 50 MB each. OpenWrt installs into the first slot, so you need to make sure to flash from within the second slot. - The vendor Web UI requires the firmware image filename to be of a certain length, otherwise you get the following error: `Warning ULCGI unalbe to parse CGI query!`. Shorten the full squashfs factory image name to just factory.bin and it'll work. - The model code `a3 e1` was found in tmp/root/upper/rw/fwversion, extracted from clone_tmp.tar.gz from a vendor diaginfo dump. Signed-off-by: Lars Gierth --- .../files/95_apply_bootconfig | 1 + .../lib/preinit/05_set_preinit_iface | 1 + .../dts/mt7981b-zyxel-nwa55ax-pro.dts | 30 +++++++++++++++++++ .../filogic/base-files/etc/board.d/02_network | 1 + target/linux/mediatek/image/filogic.mk | 8 +++++ 5 files changed, 41 insertions(+) create mode 100644 target/linux/mediatek/dts/mt7981b-zyxel-nwa55ax-pro.dts diff --git a/package/utils/zyxel-bootconfig/files/95_apply_bootconfig b/package/utils/zyxel-bootconfig/files/95_apply_bootconfig index 42a95fcb9ef..e20168d9521 100644 --- a/package/utils/zyxel-bootconfig/files/95_apply_bootconfig +++ b/package/utils/zyxel-bootconfig/files/95_apply_bootconfig @@ -4,6 +4,7 @@ apply_bootconfig() { case $(board_name) in zyxel,nwa50ax|\ zyxel,nwa50ax-pro|\ + zyxel,nwa55ax-pro|\ zyxel,nwa55ax-ptp|\ zyxel,nwa55axe|\ zyxel,wax300h) diff --git a/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface b/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface index 9f2419fea68..5f2d8409514 100644 --- a/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface +++ b/target/linux/mediatek/base-files/lib/preinit/05_set_preinit_iface @@ -19,6 +19,7 @@ set_preinit_iface() { cudy,re3000-v1|\ ubnt,unifi-6-lr|\ zyxel,nwa50ax-pro|\ + zyxel,nwa55ax-pro|\ zyxel,nwa55ax-ptp) ip link set eth0 up ifname=eth0 diff --git a/target/linux/mediatek/dts/mt7981b-zyxel-nwa55ax-pro.dts b/target/linux/mediatek/dts/mt7981b-zyxel-nwa55ax-pro.dts new file mode 100644 index 00000000000..064b134aed0 --- /dev/null +++ b/target/linux/mediatek/dts/mt7981b-zyxel-nwa55ax-pro.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) +/dts-v1/; + +#include "mt7981b-zyxel-common.dtsi" + +/ { + model = "Zyxel NWA55AX Pro"; + compatible = "zyxel,nwa55ax-pro", "mediatek,mt7981"; + + aliases { + label-mac-device = &gmac1; + }; +}; + +ð { + pinctrl-names = "default"; + pinctrl-0 = <&mdio_pins>; + + status = "okay"; + + gmac1: mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "gmii"; + phy-handle = <&int_gbe_phy>; + + nvmem-cells = <&macaddr_mrd_1fff8 0>; + nvmem-cell-names = "mac-address"; + }; +}; diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network index 3150877938e..57b279e3a54 100644 --- a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network @@ -166,6 +166,7 @@ mediatek_setup_interfaces() wavlink,wl-wn573hx3|\ widelantech,wap430x|\ zyxel,nwa50ax-pro|\ + zyxel,nwa55ax-pro|\ zyxel,nwa55ax-ptp) ucidef_set_interface_lan "eth0" ;; diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk index 4ac459d6eea..7ec32fd6a67 100644 --- a/target/linux/mediatek/image/filogic.mk +++ b/target/linux/mediatek/image/filogic.mk @@ -4619,6 +4619,14 @@ define Device/zyxel_nwa50ax-pro endef TARGET_DEVICES += zyxel_nwa50ax-pro +define Device/zyxel_nwa55ax-pro + $(call Device/zyxel_filogic_common) + DEVICE_MODEL := NWA55AX Pro + DEVICE_DTS := mt7981b-zyxel-nwa55ax-pro + ZYXEL_MODEL_IDS := a3e1 +endef +TARGET_DEVICES += zyxel_nwa55ax-pro + define Device/zyxel_nwa55ax-ptp $(call Device/zyxel_filogic_common) DEVICE_MODEL := NWA55AX PTP