Written with 💖 by DiabloSat
- The device bootloader must be unlocked.
- platform-tools installed on your PC.
It is recommended to flash the latest stock firmware before installing PostMarket OS
-
Select your desktop environment and download the prebuilt images (example 24.06/sxmo-de-sway/20241127-1248): Xiaomi-daisy 24.06 prebuild images link
-
Extract all archives, rename files, and move them to a separate directory for convenience

-
Download the updated, modified lk2nd.img for your touchscreen and rename it to lk2nd-updated.img"
You can download either of the two images, and if your touchscreen doesn't work, you can reflash the other image
Repository link: lk2nd-xiaomi-daisy-sakura-prebuild releases link
- Enter fastboot mode and connect the device to your PC (POWER + VOLUME DOWN).
- Load the lk2nd.img loader into RAM
[!] If you skip this step and directly flash the updated loader lk2nd-updated.img, you won't be able to flash the boot.img!
- Flash boot.img to the boot partition
- Flash the updated loader with modifications for your touchscreen (lk2nd-update.img) to the lk2nd partition and reboot into it
- Flash the system image (userdata.img) to the userdata partition and reboot
After step "Flashing (Step 5)", there is a high chance you'll encounter a fastboot bootloop and see the error "mdtp image is corrupted" when trying to load the lk2nd loader into RAM.
When you flash the updated loader lk2nd-update.img, your active slot changes to Slot B (and Slot B has no valid data)
Simply switch the active slot back to Slot A in fastboot mode and reboot
147147









Please write in issue replies, because it's not convenient to post here.