github ADCDS/openwrt-xiaomi-ax3000t-rd03v2 issue36-test1
Issue #36 test kit (not a release)

latest releases: v2.1.4, v2.1.3, v2.1.2...
pre-releaseone month ago

Test kit for #36, not a firmware release. It runs ECM with patch 0030 on a router with the v1.12 or v1.13 -nss image. With the patch, ECM re-routes offloaded connections when policy routing rules change, so multi-WAN setups such as mwan3 can't leave flows stuck on the wrong WAN after a restart or failover. The kit loads the patched module from RAM. Nothing is written to flash, and a reboot, or sh issue36-test.sh revert, brings back the original. The same fix is also attached as a complete image for anyone who prefers to install it.

File
issue36-test.sh the loader; it identifies the image before it changes anything
ecm-issue36.ko the patched ECM module for the -nss images
openwrt-qualcommax-ipq50xx-xiaomi_mi-router-ax3000t-v2-squashfs-sysupgrade-nss-issue36.bin optional: v1.13 -nss with the patch, to install instead of the RAM kit
sha256sums checksums of the three files above

On the router, as root:

mkdir -p /tmp/issue36 && cd /tmp/issue36
B=https://github.com/ADCDS/openwrt-xiaomi-ax3000t-rd03v2/releases/download/issue36-test1
for f in issue36-test.sh ecm-issue36.ko sha256sums; do
  wget -q -O "$f" "$B/$f" || echo "download failed: $f"
done
grep -v sysupgrade sha256sums | sha256sum -c -
sh issue36-test.sh check     # identifies the image, changes nothing
sh issue36-test.sh           # loads the patched ECM; ECM restarts once
sh issue36-test.sh report    # ECM, NSS and policy routing state
sh issue36-test.sh stall     # the report plus per-connection detail, for a stall
sh issue36-test.sh revert    # the original ECM again (or reboot)

If the router can't reach GitHub, download the files below and copy them to /tmp/issue36/ with scp -O.

  • The script loads nothing unless the installed ecm.ko is the one from the v1.12/v1.13 -nss images. The default images have no ECM.
  • Loading or reverting restarts ECM through /etc/init.d/qca-nss-ecm, which flushes conntrack, so open connections drop once and reconnect. The swap runs in its own session and logs to /tmp/issue36.log.
  • The patched module stays loaded until the next reboot. To keep testing after a reboot, run sh issue36-test.sh again.

The image. Install it the way you install a release: boot the v1.13 -nss RAM installer, then sysupgrade this file with your config backup (docs/no-uart-reflash.md). Installed packages don't survive a flash, so reinstall them afterwards (mwan3, for instance). Its kernel and every file except ecm.ko match v1.13 -nss, so v1.13's kmod archive still applies. The other differences are the package database and qca-nss-wifi-meshmgr.ko, whose embedded build timestamp changes with every build.

What's in the module. It's built from the v1.13 sources with patch 0030 added. Without the patch, the same build reproduces the release's ecm.ko byte for byte. On the bench, the patched module was tested from RAM and as a NAND install. Background and bench results: docs/ecm-policy-routing.md.


Generated by Claude Code

Don't miss a new openwrt-xiaomi-ax3000t-rd03v2 release

NewReleases is sending notifications on new releases.