@MarcelloTogg
Hello, flash_all is the script included in the original Xiaomi ROM that you must install after unlocking the bootloader.
Unlock.
Download and install the Android ROM of the same version as the Halium required by the port (Halium 10 => Android 10) (this operation is performed by flash_all).
Run the ubports installer and choose a stable version 24.04-1.x.
Enjoy Ubuntu Touch.
If it's not clear, come meet us in Telegram at https://t.me/WelcomePlus