Adding OpenWrt support for Xiaomi AX3600 (Part 1)

Ahh,thought they further improved or changed the behavior in that commit...

Nope, they are just setting the FW mode for all supported HW instead of selected few

1 Like

The other one I am looking at is this: https://git.codelinaro.org/clo/qsdk/oss/system/feeds/wlan-open/-/commit/de62905f8467e025490477bf18a6897a62240208

Well, they have a ton of various non-connected improvements and its kind of impossible to track

Thx @robimarko. Will install the images and see what happens

I have flashed the image on the Ax3600. No problem flashing the image but I cannot get a IP from the Ax3600 over ethernet. Network cable light flash but them just turn off. Have tried to assign a static IP address to the laptop adapter but still not able to establish link. The Ax3600 has a stable blue light.

Make sure you have all this in your .config, except the targets you don't want to build:
https://github.com/robimarko/openwrt/releases/download/ipq807x-2022-07-27/config.buildinfo
If you copy Robi config.buildinfo to your .config before make, then you have all the targets built the same as Robi builds.

For example, this is my diffconfig file, I copy it to .config file before make:

CONFIG_TARGET_ipq807x=y
CONFIG_TARGET_ipq807x_generic=y
CONFIG_TARGET_ipq807x_generic_DEVICE_xiaomi_ax3600=y
CONFIG_PACKAGE_cgi-io=y
CONFIG_PACKAGE_kmod-qca-nss-dp=y
CONFIG_PACKAGE_kmod-qca-ssdk-nohnat=y
CONFIG_PACKAGE_libiwinfo-lua=y
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_liblucihttp=y
CONFIG_PACKAGE_liblucihttp-lua=y
CONFIG_PACKAGE_libubus-lua=y
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_luci=y
CONFIG_PACKAGE_luci-app-firewall=y
CONFIG_PACKAGE_luci-app-opkg=y
CONFIG_PACKAGE_luci-base=y
CONFIG_PACKAGE_luci-lib-base=y
CONFIG_PACKAGE_luci-lib-ip=y
CONFIG_PACKAGE_luci-lib-jsonc=y
CONFIG_PACKAGE_luci-lib-nixio=y
CONFIG_PACKAGE_luci-mod-admin-full=y
CONFIG_PACKAGE_luci-mod-network=y
CONFIG_PACKAGE_luci-mod-status=y
CONFIG_PACKAGE_luci-mod-system=y
CONFIG_PACKAGE_luci-proto-ipv6=y
CONFIG_PACKAGE_luci-proto-ppp=y
CONFIG_PACKAGE_luci-theme-bootstrap=y
CONFIG_PACKAGE_qca-ssdk-shell=y
CONFIG_PACKAGE_rpcd=y
CONFIG_PACKAGE_rpcd-mod-file=y
CONFIG_PACKAGE_rpcd-mod-iwinfo=y
CONFIG_PACKAGE_rpcd-mod-luci=y
CONFIG_PACKAGE_rpcd-mod-rrdns=y
CONFIG_PACKAGE_uhttpd=y
CONFIG_PACKAGE_uhttpd-mod-ubus=y
CONFIG_PACKAGE_wpad-basic-wolfssl=m
CONFIG_PACKAGE_wpad-wolfssl=y
# CONFIG_TARGET_INITRAMFS_COMPRESSION_NONE is not set
CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD=y

Instructions how to setup a build environment and how to build openwrt are in openwrt docs.
https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem#debianubuntu
https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem

2 Likes

On my end on Ubuntu 20.04 LTS (latest) it compiles just fine.

1 Like

Yes same here, I also use it, there are no build issues.

1 Like

I know there was a rebase just 4 days ago, but wondering if another can be done? With the bump of mac80211 some patches in the -pr branch need love. The kernel ones are easy enough to merge, but I'm hesitant to touch the ipq807 specific ones... :slight_smile:

1 Like

I have started rebasing as backports got updated along with my QMI helpers patch being included.
But I need to rework all of the patches to apply

9 Likes

Thanks!
Yeah this round of patch rework was a bit more involved…

Does anyone else have the issue that the data rate via 5Ghz (ax) has dropped since the last rebase? I only get 200 Mbps instead of 250 and the issue is amplified further with the second AX3600 connected via WDS.

Finally managed to rebase onto using the updated backports.
In the end, I had to drop all of the patches and do all of the backporting again but it should be easier with a dedicated kernel tree just for backports now.

I backported up to the last commit in ath-next as of yesterday.

Still need to redo the kernel tree and utilize the upstreamed HW patches as there is a ton of improvements and simplifications there.

12 Likes

@Ansuel did you manage to report the firmware crash issue on Bugzilla? There should hopefully be some fixes and improvements in the newer firmwares so being able to use the newer firmwares would be great

The latest version doesn't boot for me on AX6 :frowning:

Doubt it has anything to do with rebase as kernel patches were not touched

The commit before the rebase does boot though...

I dont know what to tell you, it works for me on the Qnap and AX3600.

On my AX6 it just builds and runs fine.

1 Like