Adding OpenWrt support for Xiaomi AX6000

Thank you for the time you're putting into this.
Just out of curiosity, will the newer firmware work on these? Are there any benefits of using a newer firmware?

@georgem83 Thank you very much for your help with this. When necessary, I am available to test any compilations.

Let me put it this way, it won’t work without upgrading the BDFs to a newer version

1 Like

Can anyone share a full OEM boot log?

here's my from oct 2023 https://pastebin.com/uVjsJgmg

1 Like

@georgem83 Here is the full Boot Log of the OEM firmware, latest version 1.0.122.

1 Like

CAUTION!

I've created an image based on the AX3600 and AX9000 recipes. I do not have the device myself so this is untested and completely at your own risk.
I recommend you only try if you have a full nand backup and serial access as you need to be prepared to recover the device.
Try loading from RAM first. Expect issues so don't use the factory or sysupgrade unless you have fully and successfully tested the ram image(s).
Good luck and please report your findings

1 Like

I assume the flashing procedure is the same as for the AX3600 and AX9000, right?

I just tried these and got the following feedback.

root@XiaoQiang:/tmp# ubiformat /dev/mtd18 -y -f /tmp/openwrt-qualcommax-ipq50xx-
xiaomi_ax6000-initramfs-factory.ubi && nvram set flag_boot_rootfs=1 && nvram set
flag_last_success=1 && nvram commit
ubiformat: error!: cannot open "/dev/mtd18"
error 13 (Permission denied)

If you want, I can give you access to my router so you can try flashing it. If it breaks, I can easily restore it.

Tbh, I’m not familiar with Xiaomi routers, but I think @robimarko is. Perhaps he could tell you how to load the initramfs image?
I suppose there’s a tftp boot method?

I doubt they kept everything the same as on AX3600

try mtd19, there's two partitions

I was able to do the flash using Xmir-Patcher. With no sign of life, it just lights up the blue LED of the system and nothing else, still provides the IP 192.168.31.xxx via DCHP, which makes me think there was some error in the process, because this IP is the standard of Xiaomi's system. In short, it's broken now. I tried to make the recovery via TFTP, using MiWifi official repair tool, the leds flash as explained in the recovery tutorial, but the router does not request the recovery file via TFTP I do not know how to proceed, I will try again later.

@georgem83 hello, can you publish source code for your build please?

Can anyone with more experiences in this area tell me what to do to get it back? I'm not getting it via TFTP.

@robimarko @r1ghty

i used tiny pxe server to restore.
like this: https://mrseum.com/posts/mi-4a/mi-4a-debreak/

1 Like

Can you please help me set up TinyPXE? Sorry for the discomfort.

added link to guide in prev message

1 Like

Thank you. I followed all the instructions in the tutorial, but it didn't work. It seems that the router doesn't request DHCP.

Update: Router successfully recovered.

For some reason, the TFTP recovery with MiWifiRepairTool only worked when I connected my computer to the router's WAN port. Now back to Xiaomi firmware 1.0.122.

2 Likes

It is also available using openwrt main branch (SNAPSHOT). I've been trying there cause it is already kind of setup.

My last bootloader logs: https://pastebin.com/mNXUHagW (not related to your image version)

I've been only putting pieces from diferent repos and posts together without much knowladge about it but if you need some info or something let me know. I would really appreciate that router with an updated firmware, more features and without xiaomi cloud connection.