Xiaomi Redmi 5 Plus (xiaomi-vince)

From postmarketOS
Jump to navigation Jump to search
Xiaomi Redmi 5 Plus
Xiaomi Redmi 5 Plus
Xiaomi Redmi 5 Plus
Manufacturer Xiaomi
Name Redmi 5 Plus
Codename xiaomi-vince
Released 2017
Category testing
Original software Android 8.1
postmarketOS kernel 4.9.317
Hardware
Chipset Qualcomm MSM8953 Snapdragon 625
CPU Octa-core Cortex-A53 2 GHz
GPU Adreno 506
Display 1080x2160 (403 PPI) IPS
Storage 32/64 GB
Memory 3/4 GB
Architecture aarch64
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Works
FDE
Partial
Mainline
Works
Battery
Works
3D Acceleration
Works
Audio
Works
Bluetooth
Works
Camera
Broken
GPS
Broken
Mobile data
Broken
SMS
Broken
Calls
Broken
USB OTG
Works
NFC
Unavailable
Sensors
Accelerometer
Works
Magnetometer
Ambient Light
Proximity
Hall Effect
Barometer
Unavailable
Power Sensor
Misc
Keyboard
Touchpad
USB-A
HDMI/DP
Unavailable
Ir TX
Broken
TrustZone
FOSS bootloader



This device is based on the Snapdragon 625.
See the SoC page for common tips, guides and troubleshooting steps

Maintainer(s)

  • M0Rf30

Users owning this device


How to enter flash mode

  1. Turn off the device
  2. Press Power + Volume Down to enter fastboot

Installation

Here's how to boot pmOS via fastboot:

  1. Install to a SD card with

$ pmbootstrap install --sdcard=/dev/sdX

  1. Insert the SD card into the device
  2. Connect the device to your PC
  3. Enter the fastboot mode
  4. Finally, boot pmOS:

$ pmbootstrap flasher boot

or

  1. Enter the fastboot mode
  2. Flash system

$ pmbootstrap flasher flash_system

  1. Flash kernel

$ pmbootstrap flasher flash_kernel

  1. Finally, reboot into pmOS:

$ fastboot reboot

Audio

To enable audio you need to install triggerhappy. You can do it in many ways:

As a flag during PMOS installation:

Follow the standard Installation guide, and during pmbootstrap install step, use --add triggerhappy flag

As a package on running device:

Type in device terminal: $ sudo apk add triggerhappy

Note On both cases you always need to enable the triggerhappy daemon with: $ sudo rc-update add triggerhappy default

FDE

Encryption works fine, but osk-sdl has some issues with pixelformat modes. I recommend to test Unl0kr, because its made on LVGL, so it shouldn't have the same problems that osk-sdl encounters with directfb SDL2 backend.

Note Actually, osk-sdl is working ok(ish) with pixelformat argument set in DFBARGS to ABGR, but I couldn't get this to work in initramfs and I don't think it is a proper way to do this.

Parts

Smart Speaker

To use the speaker, the device relies on:

Vendor Model
Texas Instruments tas2557 (some useful commits 1

2)

Seems to be very similar to tas2559

Fingerprint

Two drivers are available within downstream kernel

Vendor Model
Fingerprint Cards AB FPC1020 (some useful commits 12)
Goodix GF3208

Sensors

Type Vendor Model
Accelerometer / Gyroscope STMicroelectronics LSM6DSL 1
Magnetometer / Compass Asahi Kasei AK09918C 1
Ambient Light Liteon Opto LTR579 ALSPS
Hall ROHM Semiconductor BU52061NVX

Serial UART

TODO This section needs further testing

Getting UART output on this device should be pretty straightforward, because pins for serial transfer (TX and RX) are exposed directly on motherboard and are even labeled.

Xiaomi-vince-uart.jpg

Vince-uart-pins-shem.png

See also: Serial debugging

See also