Jump to content

Xiaomi Redmi 9 (xiaomi-lancelot)

From postmarketOS Wiki
Xiaomi Redmi 9
Xiaomi Redmi 9
Xiaomi Redmi 9
Manufacturer Xiaomi
Name Redmi 9
Codename xiaomi-lancelot
Released 2020
Type handset
Hardware
Chipset MediaTek Helio G80 (MT6769T)
CPU Cortex A75
A55 Octa-Core
GPU Mali-G52 MC2
Display 1080x2340 6.53"
Storage 32/64/128GB
Memory 3/4/6GB
Architecture aarch64
Software
Original software
The software and version the device was shipped with.
Android 10 (MIUI 11)
Extended version
The most recent supported version from the manufacturer.
Android
postmarketOS
Category testing
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
yes
Device package device-xiaomi-lancelot
Kernel package linux-xiaomi-lancelot
Features
Flashing
Whether 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
Battery
Whether charging and battery level reporting work.
Broken
Screen
Whether the display works; ideally with sleep mode and brightness control.
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
Audio playback, microphone, headset and buttons.
Broken
Camera
Broken
Connectivity
WiFi
Broken
Bluetooth
Broken
GPS
Broken
Modem
Calls
Broken
SMS
Broken
Mobile data
Broken
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Untested
Sensors
Accelerometer
Handles automatic screen rotation in many interfaces.
Broken


Touch screen does not work as it comes out of the box, the firmware needs to be added to the kernel

Contributors

  • koutakun

Maintainer(s)

Users owning this device


How to unlock phone

https://wiki.lineageos.org/devices/lancelot/install#unlocking-the-bootloader (requires windows only application).

NOTE: apps allows to install correct drivers for fastboot.


How to enter flash mode

Power + volume down while it is off, then you can flash it using pmbootstrap flasher flash_kernel; pmbootstrap flasher flash_rootfs --partition=super; pmbootstrap flasher flash_vbmeta (must be OEM unlock for this, see above).

NOTE: Fastboot entered via on my phone, fastboot entered via adb reboot fastboot run into different fastboot implementation (showed blue word FASTBOOTD instead of orange FASTBOOT), which did not have implemented certain oem commands, the log from windows application showed error when running fastboot oem device-info command.

Mainline

Touchscreen

To work touchscreen properly you need to use a specific patch file along with a firmware file for your specific device from the vendor partition named nvt_tm_fw.bin.

lancelot-novatek-ts-fix.patch

Extract the nvt_tm_fw.bin file from the vendor partition and install it in the /lib/firmware, renaming the file ts.bin.

Components status (based on dtbo, proceed with caution)

Component Model Is driver available Notes
Panel nt36672A (?) Y Need to apply the lancelot-novatek-ts-fix.patch patch
Touchscreen NVT-ts (or Goodix GT9886?) Y Need ts.bin firmware
Charger smb1351 N
NFC pn553 Y
Audio amplifier aw87519 N
Fingerprint goodix N Out of tree module exists
Backlight ktd3137 Y
Main camera s5kgm1sp N
Wide camera ov13b10 Y
Macro camera ov2180 N
Depth camera gc5035 N
Front camera s5k4h7yx/ov8856 N/Y