Support AIoT AC2350 Xiaomi?

I submit a PR on the openwrt GitHub but it was to late. It won't get merged. I'll build a 21.02.1 image and share it here if anyone wants to use it.
Edit: here's the PR https://github.com/openwrt/openwrt/pull/4630

2 Likes

Thank you for the detailed information and yes, we thank your work!

Thanks, waiting the build

I have built a 21.02.1 image with the openwrt buildbot config file. This means that you should be able to install any packages you like. I have verified the kernel 'vermagic' to be the same as official builds. In the archive i have akso included the sdk and image builder.
https://drive.google.com/file/d/1fnxf1bM38RSmdcv8AZ8zQ15p9BoZWcQE/view?usp=sharing

2 Likes

Thank you for your build. I'm having an issue extracting imagebuilder archive.

openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/
xz: (stdin): Unexpected end of input
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/etc/
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/etc/board.d/
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/etc/board.d/01_leds
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/etc/board.d/02_network
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/etc/hotplug.d/
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/etc/hotplug.d/firmware/
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/etc/uci-defaults/
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/etc/uci-defaults/09_fix_crc
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/etc/uci-defaults/04_led_migration
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/lib/
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/lib/upgrade/
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/base-files/lib/upgrade/platform.sh
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/smp/
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/smp/config-default
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/smp/target.mk
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/modules.mk
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/image/
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/image/README.images-bcm63xx
openwrt-imagebuilder-21.02.1-ath79-generic.Linux-x86_64/target/linux/bcm63xx/image/bcm63xx.mk
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

Oh, I just noticed I compressed it with lzma. I'll re-upload it a bit later with regular compression. Sorry for any inconvenience.
Edit: do you mean the archive zip file or the image builder archive tar? I think I got confused.

I can extract the imagebuilder .tar xz fine. I'm not sure what the problem is.

There seems to be something wrong with Ubuntu's default archive manager. I've extracted the archive with WinRAR, now it's extracted correctly.

1 Like

For upgrade from factory int firmware i need use openwrt-21.02.1-ath79-generic-xiaomi_aiot-ac2350-initramfs-kernel.bin file? Just via GUI update?

The process is a bit more complicated. Here's the wiki page with instructions: https://openwrt.org/toh/xiaomi/aiot_router_ac2350

I've been following the support of this router from time to time and from what I read, it appears it's time for me to install openwrt.
Just one question before I take the plunge. I use this router as an AP on the 5GHz band. All routing and the 2.4GHz band are disabled. So, I should see no performance and range difference comparing with the original firmware, right?

If it's only an AP probably not, and you can always go back to the original firmware.

well, I did it... while the wired speed is the full 1Gbps (and better than the original firmware), the wireless speed tops at 300 down... half than the original firmware. Still, I got WPA3 and no more chinese firmware, so I'll keep openwrt.
Do you think the wireless speeds will improve with time?

Try to replace the ath10k-ct driver with the ath10k one. Also, try to enable software flow offloading.

I already had software offloading. About the driver, I found no change on speeds.
But you mean this is not normal, it was expected to be faster on wireless? If that's the case I'll continue trying configs...

First of all, thanks for the great work, flashing was a breeze and all OK on 1st try. I'm running OpenWrt SNAPSHOT r18106-0c249ab076 now.
Still, I see a similar issue as @paulo_andre - my 5GHz ac is slow. I tested on 3 different devices, which were able to get to ~400 Mbps on xiaomi 4a giga. Now, they are all capped at 210 Mbps. Software offloading is turned on, radio is using 80 MHz channel, changing the driver to kmod-ath10k (without -ct) changes nothing. How can I debug this issue further?

It looks like we have the same issue as other models using QCA9984:

I think it doesn't make much sense, that CPU thing... CPU is the same for all the people owning the model, why do some have ~400-500 Mbps transfer range, while others have ~200 MBps?
Also, if that firmware issue is 2 years old, I guess there is no chance of that ever get fixed?

Why do you think that someone on this model has a higher speed on 5GHz WiFi when using OpenWRT? The maximum speed when using 5GHz WiFi on this model is about 300Mbps. This speed can be achieved when using the router in access point mode. When used as a router, the speed maybe even less due to NAT, VPN, etc.
When testing using iperf 5GHz connection in top output on the router, you can see high sirq values and high CPU usage by the ksoftirqd process:

Mem: 72532K used, 49624K free, 276K shrd, 0K buff, 18636K cached
CPU:   0% usr   0% sys   0% nic   0% idle   0% io   0% irq  97% sirq
Load average: 0.16 0.05 0.01 3/52 7288
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
    8     2 root     RW       0   0%  87% [ksoftirqd/0]

Good catch, someone above reported about 500 Mbps and I assumed that was on AC radio. And yes, my AP is in router mode, so gets some additional load - that would explain ~200 instead of ~300. Do you know if there's a chance this issue will be fixed? I really like this device, but my older xiaomi 4a giga is faster than this one so I might just send it back :|l