Jump to content

Xiaomi Mi 11 Lite 4G (xiaomi-courbet)

From postmarketOS Wiki
Revision as of 08:55, 12 April 2025 by Kevinwidjaja21 (talk | contribs) (Add installation instruction based on out-of-tree fork.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This device has been tested with postmarketOS, but its device package has not yet been added to the postmarketOS repositories.
This means that it cannot be selected in pmbootstrap.
Xiaomi Mi 11 Lite 4G
File:Mi11Lite4G.png
Manufacturer Xiaomi
Name Mi 11 Lite 4G
Codename xiaomi-courbet
Released 2021
Type handset
Hardware
Chipset Qualcomm Snapdragon 732G (SM7150-AC)
CPU Octa-core (2x 2.3 GHz Kryo 470 Gold
6x 1.8 GHz Kryo 470 Silver)
GPU Adreno 618
Display 1080 x 2400 AMOLED LCD
Storage 64/128 GB
Memory 6/8 GB
Architecture aarch64
Software
Original software Android (MIUI)
Original version 11 (MIUI 12)
FOSS bootloader no
postmarketOS
Category testing
Pre-built images no
Mainline yes
Features
Flashing
Works
USB Networking
Works
Internal storage
Works
SD card
Works
Battery
Partial
Screen
Works
Touchscreen
Broken
Multimedia
3D Acceleration
Works
Audio
Broken
Camera
Broken
Camera Flash
Broken
Connectivity
WiFi
Works
Bluetooth
Works
GPS
Broken
NFC
Works
Modem
Calls
Works
SMS
Works
Mobile data
Works
Miscellaneous
FDE
Partial
USB OTG
Works
Sensors
Accelerometer
Broken
Magnetometer
Broken
Ambient Light
Broken
Proximity
Broken
Haptics
Broken

Users owning this device

  • Adrian (Notes: Mainlining :))
  • Kevinwidjaja21 (Notes: Booting PMOS v24.12 stable. Considering porting to edge with u-boot and generic device support.)


Mainline

A work in progress mainline kernel is being developed here.
We are looking for testers. If you have a device and want to help, please join: #sm7150-mainline:matrix.org on Matrix.

Installation

Currently only work on an out-of-tree fork (https://gitlab.postmarketos.org/kevinwidjaja21/pmaports/-/tree/courbet_stable) of pmaports and only on v24.12 stable version. Need to port u-boot support and systemd before properly merging this device to main repository.

  1. Make sure that pmbootstrap is installed on your host and that your phone has an unlocked booloader and is on the latest stock firmware
  2. Run through pmbootstrap init, select v24.12 release channel and select xiaomi as the vendor and courbet as the device.
  3. Generate the rootfs and flash pmOS to the phone by running pmbootstrap install
  4. 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 dd if=/dev/block/by-name/dtbo of=/sdcard/dtbo.img from a rooted shell on your phone and pull it with adb pull /sdcard/dtbo.img to your computer. This can be skipped if you plan to do clean install of custom android ROM.
    2. Boot into bootloader mode
    3. Erase the dtbo partition with fastboot erase dtbo
    To restore the partition flash it with fastboot flash dtbo dtbo.img
  5. Flash the rootfs to install pmOS to the phones internal storage by running pmbootstrap flasher flash_rootfs --partition userdata
  6. Boot the kernel
    • To boot temporarily, without flashing run pmbootstrap flasher boot
    • To flash the kernel to the boot partition, run pmbootstrap flasher flash_kernel and reboot with fastboot reboot