General OpenWrt support for Xiaomi AX3600 (Part 2)

Have you done these (from the wiki instructions)

nvram set flag_boot_rootfs=1 && nvram set flag_last_success=1 && nvram commit

1 Like

Maybe you just need to install the web gui LUCI, the snapshot image doesn't include it:

opkg update
opkg install luci
1 Like

Being on the official firmware, did my first upgrade yesterday, and my first attended Sys upgrade today.

Both were successful after stopping wpad.

I guess the price of admission to official may be a bootloop regardless of which out of branch build one comes from, so setting aside time to recover is good;

After that, seems to be all good.

2 Likes

Thank you very much, that was the solution. The gui was the last thing missing.
Maybe that should be mentioned in the instructions.
Thanks again!

1 Like

This topic was intended for adding support for this specific device.
Since official snapshot images are available now, I will set a timer for this topic to close.

Why?

Because specific problems for this device with official OpenWrt builds are better handled in separate topics, in order to make finding relevant information easier. Who is going to read the previous 10000-something postings, if he has a specific problem with wifi?

Therefore: Please open new topics for any open issues with this device.

Thanks! :slight_smile:

2 Likes

Did the patch referenced here - Roaming Issues Xiaomi AX3600 - #83 by psi-c made it to snapshot build since we are still seeing roaming and client affinity issues @robimarko

nss-bridge is an NSS bridge offloading module, it's not just a patch and will pretty much newer be included.

By roaming issue you mean duplicate FDB entries or?

So basically wireless clients were often getting associated to one particular router rather than picking the closest one. For instance, when both routers are rebooted, all the wireless clients would attach itself to the router that comes online first. It would try to pick up the closest one only if disable wifi & re-enable it on the device. I tried adding the below script to the startup and rebooted both routers and so far it is looking much better. I enabled 802.11k/r/v and also played with different transmission powers. none of it helped. I am unsure what magic the below script does, but it clearly helped make things better!

#!/bin/ash
function flush() {
	ssdk_sh fdb entry flush 1
}

IFS=$'\n'
logread -f | while read line; do
	if [[ "$line" == *"AP-STA-"* ]]; then
		flush </dev/null >/dev/null 2>&1
	fi
done

While checking attended sysupgrade from luci interface there is an update available can i install that updated file from luci interface or do i need to install it from the ssh like before also there is a mention of

Stopping the wpad service with service wpad stop before doing the sysupgrade fixes the issue .

To do this do i need to connect to lan first or can i use wifi to stop the wpad and sysupgrade.

yes you need to be connected to lan first as service wpad stop will kill the wireless.

i did now i'm getting this error

Package list missing or not up-to-date, generating it.

Building package index...
Downloading https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/packages/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_core
Downloading https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_base
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/kmods/5.15.90-1-03ad7937b05d057fe30d4ef41e77ee0c/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_kmods
Downloading https://downloads.openwrt.org/snapshots/targets/ipq807x/generic/kmods/5.15.90-1-03ad7937b05d057fe30d4ef41e77ee0c/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/luci/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_luci
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_packages
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/routing/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_routing
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/telephony/Packages.gz
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/openwrt_telephony
Downloading https://downloads.openwrt.org/snapshots/packages/aarch64_cortex-a53/telephony/Packages.sig
Signature check passed.
Downloading file:packages/Packages
Updated list of available packages in /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/../../../../../../../../../../../home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/dl/imagebuilder
Downloading file:packages/Packages.sig
Signature check failed.
Remove wrong Signature file.
[libwolfsslcpu-crypto] Checking for Arm v8-A Cryptographic Extension support: ...[offline]... OK
[libwolfsslcpu-crypto] Checking for Arm v8-A Cryptographic Extension support: ...[offline]... OK
Collected errors:

  • check_data_file_clashes: Package libwolfsslcpu-crypto5.5.4.e624513f wants to install file /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/usr/lib/libwolfssl.so.5.5.4.e624513f
    But that file is already provided by package * libwolfssl5.5.4.e624513f
  • opkg_install_cmd: Cannot install package libwolfsslcpu-crypto.
  • check_data_file_clashes: Package libwolfsslcpu-crypto5.5.4.e624513f wants to install file /home/aparcar/asu/worker1/cache/SNAPSHOT/ipq807x/generic/build_dir/target-aarch64_cortex-a53_musl/root-ipq807x/usr/lib/libwolfssl.so.5.5.4.e624513f
    But that file is already provided by package * libwolfssl5.5.4.e624513f
  • opkg_install_cmd: Cannot install package libwolfsslcpu-crypto.
    make[2]: *** [Makefile:185: package_install] Error 255
    make[1]: *** [Makefile:150: _call_manifest] Error 2
    make: *** [Makefile:269: manifest] Error 2

There is an open issue for that. For now, simply remove the package libwolfsslcpu-crypto in attended sysupgrade.
If you are not connected by lan, you can download the firmware generated and install it from ssh with: service wpad stop & sysupgrade -k [path_to_file]

1 Like

My AX3600 is using the firmware of early robimarko's ipq807x-5.15-pr branch, and its mtd block is as follows:
a

Today I flashed the firmware from the downloads.openwrt.org repository into the ax3600 with 1G memory. I first long press the reset button and plug in the power to enter the third-party uboot to flash ax3600-initramfs-factory.ubi, and then write ax3600-squashfs-sysupgrade.bin through the sysupgrade command. The result is not successful, there is no luci, and the ping fails. Well, only the system LED is always on with blue. Can someone tell me what is wrong?

Read the (i)nfo box here:
https://openwrt.org/toh/xiaomi/ax3600#firmware_download

But you should be able to ping the router and ssh to it, so I'm not sure what else is going on, maybe you should ask in that third-party uboot thread.

You are basically just flushing FDB, probably forcing the device to disconnect and try on another AP as client devices are autonomous when it comes to picking where will they connect.

What you probably want is to use a manager that is using 802.11v to suggest where to connect

I have also tried my own firmware compiled from snapshot, which contains luci. But the same thing happened.:slightly_frowning_face:

To preface, I have been playing around with OpenWRT for over 10 years now, but I'm unfamiliar with the command line inputs. I'm on the Compat 1.1 firmware and need to move to Compat 2.0 obviously.

If you are running one of the recent builds, you can flash the *-initramfs-factory.ubi image in the non-used rootfs and set env variables to boot from it and sysupgrade from that initramfs image

I assume this involves the ssh shell?

Could someone point me to the instructions for this? I've Googled around even for different routers but can't seem to find.

Sorry for the novice question, but any assistance would be appreciated!

Thanks in advance!

Did you reset your configuration when flashing snapshot?
If not the only thing I can suggest is that you try factory reset, maybe something is wrong with you configuration.
https://openwrt.org/docs/guide-user/troubleshooting/failsafe_and_factory_reset#factory_reset

Beside that, I don't know what is going on, maybe someone else can help.

third party uboot is not supported/could be the problem. Search in Part 1 Thread how to recover the orig uboot.

Why do you need to move to version 2?
Snapshot is currently on 1. Only robimarkos last builds were on 2.

1 Like