Xiaomi AX3000T (MT7981) Persistent Installation Failure: Kernel Insists on Attaching to MTD9, Physical Partition is MTD8

Hi everyone,
I am trying to install OpenWrt on my Xiaomi AX3000T (U-Boot is already unlocked), but I am stuck in a loop where I cannot make the installation permanent. I am monitoring the process via UART.
Here is the procedure I followed:
Booted initramfs-recovery.itb via UART (TFTP).
Once the temporary OS booted, I flashed initramfs-factory.ubi via the Web UI (failsafe UI).
The device reboots into the intermediate firmware without issues.
However, when I try to perform the final permanent installation by flashing squashfs-sysupgrade.itb (again via Web UI) and reboot, the device fails to boot properly and drops into Failsafe mode.
Here is the error log I get from the UART console:

ubi0: attaching mtd9
ubi0: scanning is finished
ubi0 error: ubi_read_volume_table: the layout volume was not found
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd9, error -22
UBI error: cannot attach mtd9
UBI error: cannot initialize UBI, error -22
Please check, if the correct MTD partition is used (size big enough?)
*** Failed to attach UBI ***

It seems like the system cannot find or create the UBI layout volume on mtd9. Flashing via the Web UI doesn't seem to fix the raw partition/layout issue.
How can I properly format/fix the UBI partition to make the installation permanent?
Thanks in advance.

doc section https://openwrt.org/inbox/toh/xiaomi/ax3000t#flash_instructions

You mixed up step 4

1 Like

This ia my bootargs print;

console=ttyS0, 115200n1 loglevel=8 swiotlb=512 firmware=0 mtd=ubi uart_en=1

But my mtd partition like this

It is imperative that

Please use the "Preformatted text </>" button for logs, scripts, configs and general console output (red circle; this works best in the 'Markdown' composer view in the blue oval):

Screenshot 2025-10-20 at 8.14.14 PM

Yes, firmware eq zero you use mtd9.

No one can know what you installed when you used firmware from another project.

But it's worth trying the suggestion above and apply the settings for mtd8.

2 Likes