Xiaomi POCO X3 NFC (xiaomi-surya)

How to enter flash mode

 * Bootloader: Power on the device with both and  buttons.
 * Recovery: Power on the device with both and  buttons.
 * Fastbootd: Reboot into bootloader mode first and then run  from a computer.

Installation

 * 1) Make sure pmbootstrap is installed and your bootloader is unlocked
 * 2) Run through   and select xiaomi as the vendor and surya as the device.
 * 3) Generate the rootfs
 * 4) * For netbooting pmOS without flashing the phone, run  and
 * 5) * To install pmOS to an SD card, run
 * 6) * If you want to flash pmOS to the phone, run
 * 7) Backup and erase the dtbo partition
 * To boot Linux, you'll have to erase the dtbo partition. It is recommended to back it up first if you want to boot Android again
 * 1) Run   from a rooted shell on your phone and pull it with   to your computer.
 * 2) Boot into bootloader mode
 * 3) Erase the dtbo partition with
 * To restore the partition flash it with
 * 1) Flash the rootfs (Skip this step if you installed to an SD card)
 * 2) * If you decided to go with netbooting, start the server with
 * 3) * If you want to install pmOS to the phones internal storage, run
 * 4) Boot the kernel
 * 5) * To boot temporarily, without flashing run
 * 6) * To flash the kernel to the boot partition, run  and reboot with

After successfully following this guide, your phone should boot postmarketOS! If you have problems installing, feel free to ask in #sm7150-mainline:matrix.org

Mainline
A work in progress mainline kernel is being developed here.

Mainline status
Feature table for SM7150 Device feature table: