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
Hey o/ Thanks for sharing ur knowlege. I'm stuck with pmbootstrap scripts for a couple days and never got it to work. The closer I got was using fastboot commands, but I can't get the touchscreen to work.
And then I found your guide and saw something I was doing different:
I was flashing the boot img before loading lk2nd into ram or was not flashing the boot img at all.
So I tried your way, but the touch doest not work on none too. I was trying with phosh.
Now I tried with sxmo -- with goodix touch does not work and with edt the rom does not boot.
I flashed the stock rom using mi flash, but think it's not the latest. It's pretty hard to find those roms lately.
May u have some idea of what I have to do?
THX!