<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/xback/package/utils, branch master</title>
<subtitle>Staging tree of Koen Vandeputte</subtitle>
<id>https://git.openwrt.org/openwrt/staging/xback/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/xback/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/'/>
<updated>2026-11-20T19:42:16Z</updated>
<entry>
<title>mediatek: add support for Zyxel NWA55AX PTP</title>
<updated>2026-11-20T19:42:16Z</updated>
<author>
<name>Lars Gierth</name>
</author>
<published>2026-09-30T17:27:39Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=8fa5009d5601509c96074c31895acd9f856ebcef'/>
<id>urn:sha1:8fa5009d5601509c96074c31895acd9f856ebcef</id>
<content type='text'>
The Zyxel NWA55AX PTP is a 802.11ax outdoor wireless bridge introduced in 2026.

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, 9 dBi, HPBW 70°H / 22°V, internal detachable |
|          | - 2.4 GHz: 1x1:1SS, 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 &gt; File Manager &gt; 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 `a4 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 &lt;larsg@systemli.org&gt;
Link: https://github.com/openwrt/openwrt/pull/25510
Signed-off-by: Jonas Jelonek &lt;jonas@jonasjelonek.de&gt;
</content>
</entry>
<entry>
<title>mediatek: add support for Zyxel WAX300H</title>
<updated>2026-11-19T12:11:39Z</updated>
<author>
<name>Mark Chiou</name>
</author>
<published>2026-09-30T08:55:50Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=dc63bfff7a00e870b480c30c2dd7836567551601'/>
<id>urn:sha1:dc63bfff7a00e870b480c30c2dd7836567551601</id>
<content type='text'>
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" -&gt; "File Manager" -&gt;
   "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 &lt;noreply@anthropic.com&gt;
Signed-off-by: Mark Chiou &lt;chiouss@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/25506
Signed-off-by: Jonas Jelonek &lt;jonas@jonasjelonek.de&gt;
</content>
</entry>
<entry>
<title>cli: use the defaults for available in the parameter name list</title>
<updated>2026-11-15T11:17:20Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-11-05T16:53:42Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=3ae669b6566be65774802cb9596571a704b28ed8'/>
<id>urn:sha1:3ae669b6566be65774802cb9596571a704b28ed8</id>
<content type='text'>
complete_named_params() computes the defaults and then calls the
available callback with the given parameters alone. A parameter that
is available only through a default of another parameter is missing
from the name list, in both spellings, while the command accepts it.

Show the callback the same view as the command does, with a given value
ahead of the default. Reuse the defaults that default_complete() holds.
A parameter with a default stays in the name list until it is given.

No available callback in the tree reads a default yet. Found by
inspection.

Fixes: 248b66b44f05 ("cli: add OpenWrt CLI")
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>cli: fix completion of parameters with a list of arguments</title>
<updated>2026-11-15T11:17:20Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-11-05T16:53:32Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=8176cc82d72acb4aeda9663725757d4f46490648'/>
<id>urn:sha1:8176cc82d72acb4aeda9663725757d4f46490648</id>
<content type='text'>
default_complete() declares a second val in the branch for a parameter
whose args is an array, so complete_arg_list() gets null, takes the
spec of the last argument and matches nothing. Completion offers no
value for any argument of such a parameter. The same branch pads a
partial list with null, which would select the last argument too, and
complete_arg_list() empties the array that named_args holds.

Complete the argument under the cursor, and keep the arguments given so
far in named_args for the value callback, like a single value.

No module in the tree has such a parameter yet. Found by inspection.

Fixes: 248b66b44f05 ("cli: add OpenWrt CLI")
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>cli: honour the available callback for empty parameters</title>
<updated>2026-11-15T11:17:20Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-11-05T16:40:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=d61cb5251769ae30b615f48294ce5da0ea9636b1'/>
<id>urn:sha1:d61cb5251769ae30b615f48294ce5da0ea9636b1</id>
<content type='text'>
handle_empty_param() does not call the available callback of the
parameter. "-param" is accepted while "param" is refused and completion
hides both, so "set -vxlan-id" in the unet service editor deletes the
attribute of a service that does not have this parameter.

Refuse such a parameter like its plain form, and evaluate the callback
with the same view of the defaults. An exception of the callback is
handled like one raised for the plain form.

Fixes: 248b66b44f05 ("cli: add OpenWrt CLI")
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>cli: fix exception handling of default value callbacks</title>
<updated>2026-11-15T11:17:20Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-11-05T16:39:30Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=c2be1af0bfa7af755ed4d70c640a89d9584b6313'/>
<id>urn:sha1:c2be1af0bfa7af755ed4d70c640a89d9584b6313</id>
<content type='text'>
The catch block of prepare_default() calls model.exception(), but the
name model does not exist in the scope of an sbin/cli command. A default
callback that raises therefore ends in a reference error that hides the
original one. The callback also stays in spec.default, so it would be
handed to the command as the parameter value.

Report the exception through the context and drop the default, like the
value callback handling in prepare_attr_spec(). A required parameter
then fails with its missing argument error.

No module in the tree uses a default callback yet. Found by inspection.

Fixes: 248b66b44f05 ("cli: add OpenWrt CLI")
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>cli: fix empty value of a required parameter</title>
<updated>2026-11-15T11:17:20Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2026-11-05T16:39:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=374d561738b6eb14327e998e3c8682b59bfd1ef7'/>
<id>urn:sha1:374d561738b6eb14327e998e3c8682b59bfd1ef7</id>
<content type='text'>
handle_empty_param() calls prepare_default() with e and ctx, and neither
exists in that function. Any "-param" for a required parameter that has
a default or allow_empty raises a reference error, also for a static
default, so the command does not run and completion stops. Reachable
with "-port" on the unet "create" command.

Pass the entry and the context from both callers, like the other
prepare_default() call in context_call().

Fixes: 248b66b44f05 ("cli: add OpenWrt CLI")
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>bluetooth-uart: add an option to disable flow control</title>
<updated>2026-11-15T10:22:56Z</updated>
<author>
<name>Christopher Griffin</name>
</author>
<published>2026-10-16T16:51:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=00d5b95b006a2d81c0f72688696687c05999e586'/>
<id>urn:sha1:00d5b95b006a2d81c0f72688696687c05999e586</id>
<content type='text'>
btattach enables hardware flow control unless given -N. Some
controllers run without it: the Nordic nRF52833 on the Arista C-360
never answers HCI Reset (opcode 0x0c03 times out) with flow control on,
and works with it off. Add a flow_control option, on by default as
before, that passes -N to btattach when disabled.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Christopher Griffin &lt;christophergriffin05@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/26700
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>busybox: enable shell history size controls</title>
<updated>2026-11-05T11:59:48Z</updated>
<author>
<name>Eric Fahlgren</name>
</author>
<published>2026-11-04T19:28:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=a3ffc9af4e3ff9d9846af4e809306c1850f0cda9'/>
<id>urn:sha1:a3ffc9af4e3ff9d9846af4e809306c1850f0cda9</id>
<content type='text'>
Enable user control of history size both in memory and file size,
increasing the memory space to allow up to 2000 entries (or 256 on
SMALL_FLASH and LOW_MEMORY_FOOTPRINT devices).  This is a follow
on to the busybox ash history series in e23b37b2d9a2 and 0ab0a1d66958.

Default remains as before (256 entries, both for memory and disk),
so as to avoid possible issues with increased footprint.

On both x86 and ath79, busybox binary size is unchanged across
several test builds.

Signed-off-by: Eric Fahlgren &lt;ericfahlgren@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/26482
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>osafeloader: bound partition names when parsing images</title>
<updated>2026-11-04T01:35:18Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2026-11-02T23:13:07Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=d13ba979b017b63ebc18a4deab161b9557ea07f3'/>
<id>urn:sha1:d13ba979b017b63ebc18a4deab161b9557ea07f3</id>
<content type='text'>
Limit both partition-name scans to 31 characters so they cannot overflow
the 32-byte name buffers in the info and extract commands.

Link: https://github.com/openwrt/openwrt/pull/26424
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
</feed>
