Jump to content

Xiaomi Redmi Note 11 (xiaomi-spes)

From postmarketOS Wiki
(Redirected from Xiaomi Redmi Note 11)
Xiaomi Redmi Note 11
Xiaomi Redmi Note 11, Twilight Blue
Xiaomi Redmi Note 11, Twilight Blue
Manufacturer Xiaomi
Name Redmi Note 11
Codename xiaomi-spes
Model 2201117TG, 2201117TI, 2201117TY, 2201117TL
Released 2021
Type handset
Hardware
Chipset Qualcomm Snapdragon 680 (SM6225)
CPU 4x2.4 GHz Kryo 265 Gold
4x1.9 GHz Kryo 265 Silver
GPU Adreno 610
Display 1080x2400 AMOLED, 90Hz
Storage 64 GB, 128 GB
Memory 4 GB, 6 GB
Architecture aarch64
Software
Original software
The software and version the device was shipped with.
Android 11
Extended version
The most recent supported version from the manufacturer.
Android
FOSS bootloader yes
postmarketOS
Category downstream
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
no
pmOS kernel
The kernel version that runs on the device's port.
4.19.322
Device package device-xiaomi-spes
Kernel package linux-xiaomi-spes
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).
Partial
Internal storage
eMMC, SD cards, UFS...
Works
SD card
Also includes other external storage cards.
Works
Battery
Whether charging and battery level reporting work.
Partial
Screen
Whether the display works; ideally with sleep mode and brightness control.
Partial
Touchscreen
Works
Multimedia
3D Acceleration
Untested
Audio
Audio playback, microphone, headset and buttons.
Untested
Camera
Untested
Camera Flash
Untested
Connectivity
WiFi
Broken
Bluetooth
Broken
GPS
Broken
NFC
Near Field Communication
Untested
Modem
Calls
Broken
SMS
Broken
Mobile data
Broken
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Untested
USB OTG
USB On-The-Go or USB-C Role switching.
Works
Sensors
Accelerometer
Handles automatic screen rotation in many interfaces.
Untested
Ambient Light
Measures the light level; used for automatic screen dimming in many interfaces.
Untested
Proximity
Untested
Haptics
Untested
  • Note: Screen brightness and sleep mode work, but Xorg doesn't work, only Wayland and even it's really broken. Needs PMOS mdss fix
  • Note: For WiFi, this device has the WCN3990, it uses ICNSS and qcacld-3.0 (both are proprietary and require Android on 4.19). If the kernel ever updates to the latest version of 4.20, the ath10k and ath10k_snoc can be used with QMI tools in userspace
  • Note: On the NFC version of this device (spesn), the firmware loads if it's inserted into the initramfs and shows a device inside /dev, not much else can be done
  • Note: dmesg logs prove that the battery detects when voltage is going to the battery, and using Plasma Mobile I was able to see that the battery percentage works too, but not the battery charge detection though

Contributors

  • Omar mahboubi
  • SCOS100
  • Tuxryan (Initial mainline port)

Users owning this device


How to enter flash mode

To acess fastboot, you can use any of:

  • Turn off the device, then hold Power button and Vol- simultaneously until the device powers on
  • With ADB access, run adb reboot bootloader

Installation

Using pmbootstrap

Follow Installation/Using pmbootstrap. When asked for the device's vendor/codename, select xiaomi as the vendor and spes as the codename.

To flash the image to the device:

  • Enter flashing mode (see #How to enter flash mode)
  • Run pmbootstrap export, then use aik-unpack to unpack the boot.img, replace the header version from 0 to 3, run <aik-repack> then flash the newly made image with fastboot flash boot yourimage.img
  • Run pmbootstrap flasher flash_rootfs


Mainline status

At the moment, there isn't any "official" mainline port. But I have taken it upon myself to get mainline linux to boot on this device. (emphasis on boot because nothing else is working at the moment...)

  • My pmaports fork: (Check the default branch, still a WIP.)

https://gitlab.postmarketos.org/tuxryan/pmaports

(BEWARE: You will get a black screen if you flash xiaomi-spes-mainline from my pmaports fork. To get around that, after pmbootstrap install, run pmbootstrap export and then unpack the vendor_boot.img and remove "quiet" from vendor_cmdline. Good luck!)

  • GitLab repo for everything related to mainline on sm6225:

https://gitlab.com/sm6225-mainline

For further assistance, feel free to ask in the sm6225 matrix channel: https://matrix.to/#/#sm6225-mainline:matrix.org

Feel free to ping me on the channel (@tuxryan) or any other member!