Jump to content

Xiaomi Mi 11 Lite 4G (xiaomi-courbet)

From postmarketOS Wiki
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
The version the device was shipped with.
11 (MIUI 12)
FOSS bootloader no
postmarketOS
Category testing
Pre-built images
Whether pre-built images are available here.
no
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
yes
Features
Flashing
It is possible to flash the device with pmbootstrap flasher.
Works
USB Networking
After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system).
Works
Internal storage
eMMC, SD cards, UFS, ...
Works
SD card
Also includes other external storage cards
Works
Battery
Charging and battery level reporting works
Partial
Screen
Display works. Ideally with sleep mode and brightness control.
Works
Touchscreen
Broken
Multimedia
3D Acceleration
Works
Audio
Audio playback, microphone, headset and buttons.
Broken
Camera
Broken
Camera Flash
Broken
Connectivity
WiFi
Works
Bluetooth
Works
GPS
Broken
NFC
Near Field Communication
Works
Modem
Calls
Works
SMS
Works
Mobile data
Works
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Partial
USB OTG
USB On-The-Go or USB-C Role switching
Works
Sensors
Accelerometer
Auto screen rotation works in desktops e.g. Phosh or Plasma Mobile
Broken
Magnetometer
Sensor to measure magnetism
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