Files
openwrt/package
Mark ChiouandClaude Opus 5.5 dc63bfff7a mediatek: add support for Zyxel WAX300H
The Zyxel WAX300H is an 802.11ax access point based on the MediaTek
MT7981B. It shares the flash layout, bootloader, dual-image handling
and image recipe of the NWA50AX Pro, but has an MT7531 switch with four
Ethernet ports instead of a single 2.5G PHY, and uses its own model ID
("84e1").

Hardware
--------
SoC:    MediaTek MT7981B
RAM:    512M DDR4
FLASH:  256M SPI-NAND
ETH:    4x Gigabit Ethernet (MediaTek MT7531)
        - Uplink (PoE-in)
        - LAN1 (PoE-out passthrough, ~5W, only when powered by 802.3at;
          hardware-controlled)
        - LAN2
        - LAN3
WiFi:   MediaTek MT7981B + MT7976C (2.4/5GHz 802.11ax 2x2)
BTN:    1x Reset
LED:    1x Multi-Color (RGB)
Power:  802.3af/at PoE

All four ports are bridged into "lan". The stock firmware disables both
radios when powered by 802.3af, OpenWrt does not.

UART Console
------------
Externally accessible on the "CONSOLE" header.

Settings: 3.3V TTL, 115200 8N1

Layout: GND TX RX 3.3V (don't connect, marked with a triangle)

Installation Web-UI
-------------------
The device uses a dual-image setup and OpenWrt can only be installed as
image 0. When the currently running stock firmware is image 0, OpenWrt
will be installed as image 1, fail to boot and the device returns to
stock firmware. If this happens, install any version of stock firmware
so that it runs as image 1, before installing OpenWrt. Alternatively, if
there already is a valid stock firmware in image 1, the "debug
dual-image show" and "debug dual-image set boot-image image1" commands
can be used in the stock CLI via serial/SSH/telnet to switch to image 1.

 * Rename the OpenWrt factory image to a shorter name, for example
   "openwrt.bin" (the stock firmware has a character limit)
 * In the web interface, go to "Maintenance" -> "File Manager" ->
   "Firmware Package" (or click the link next to "Firmware Version"
   under "Device Information" on the dashboard)
 * Under "Upload File" browse to the renamed OpenWrt factory image and
   click on "Upload"

The factory image is a UBI image wrapped in an outer FIT carrying the
device model ID ("84e1"), which the stock firmware checks before
accepting it. On first boot, zyxel-bootconfig marks the OpenWrt image
as the selected one so the bootloader keeps booting it.

Switch Boot Image
-----------------
OpenWrt to stock: "zyxel-bootconfig /dev/mtd9 set-active-image 1"
Stock to OpenWrt: "debug dual-image set boot-image image0"

Unbrick / Revert to Stock with the Boot Module
----------------------------------------------
 * Disconnect the device from power
 * Configure your machine to 192.168.1.103/24 and start a TFTP server
 * Put the stock firmware image into the TFTP server root and rename it
   to "ZLD-current"
 * Establish a serial connection to the device through the console port
 * Connect the device to power
 * When prompted, press a key to abort automatic boot and enter debug
   mode
 * Use the "atnz" command to flash the firmware image
 * Use the "atgo" command to boot from the newly flashed image

MAC addresses
-------------
Uplink: base MAC (mrd partition, offset 0x1fff8)
LAN1:   base MAC + 1
LAN2:   base MAC + 2
LAN3:   base MAC + 3
2.4GHz: base MAC + 4
5GHz:   base MAC + 5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Mark Chiou <chiouss@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/25506
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
2026-11-19 13:11:39 +01:00
..
…
…
…