How to install initramfs recovery on Xiaomi AX3200?

See title for question.

AX3200 doesn't use ubootmod and instead chainloads from vendor U-Boot.

Does the chainloaded OpenWrt U-Boot include full support for dynamic ubi partitioning and automatic initramfs recovery fallback?

EDIT: I realised that I'll need to get an in-RAM flashing environment first.

If so, are my assumed installation steps correct?

  1. Format ubi
  2. Create recovery volume
  3. Write initramfs into the recovery volume
  4. Flash the sysupgrade image

Current ubi info, running ASU custom 24.10.1 firmware:

# ubinfo /dev/ubi0 -a

ubi0
Volumes count:                           2
Logical eraseblock size:                 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks:     916 (116310016 bytes, 110.9 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes                 128
Count of bad physical eraseblocks:       0
Count of reserved physical eraseblocks:  19
Current maximum erase counter value:     2
Minimum input/output unit size:          2048 bytes
Character device major/minor:            251:0
Present volumes:                         0, 1

Volume ID:   0 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        169 LEBs (21458944 bytes, 20.4 MiB)
State:       OK
Name:        fit
Character device major/minor: 251:1
-----------------------------------
Volume ID:   1 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        722 LEBs (91676672 bytes, 87.4 MiB)
State:       OK
Name:        rootfs_data
Character device major/minor: 251:2

What do you mean by "full support"?
Openwrt itsrlf includes failsafe mode, squashfs though

U-Boot on ubootmod devices can boot into a standalone initramfs located on a dedicated ubi partition when the main firmware fails completely, a bad kernel for example.

I'm not sure whether the chainloaded U-Boot support the same feature or not.

According to U-Boot env, ax3200 does not support initramfs recovery.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.