Jump to content

Xiaomi Redmi 4 Prime (xiaomi-markw)

From postmarketOS Wiki
Revision as of 15:49, 5 May 2023 by Vipaol (talk | contribs) (Installation: Rewrite the installation guide, because the device is now supported by the kernel and added to pmaports)
Xiaomi Redmi 4 Prime
xiaomi-markw showing phosh about
xiaomi-markw showing phosh about
Manufacturer Xiaomi
Name Redmi 4 Prime
Codename xiaomi-markw
Released 2016
Hardware
Chipset Qualcomm Snapdragon 625 (MSM8953)
CPU Octa-core 2 GHz Cortex-A53
GPU Adreno 506
Display 1080x1920 IPS
Storage 32 GB
Memory 3 GB
Architecture aarch64
Software
Original software Android
Original version 6.0.1
postmarketOS
Category testing
Pre-built images no
Mainline yes
postmarketOS kernel mainline
Features
Flashing
Works
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
Works
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
No data
Camera
No data
Camera Flash
No data
IR TX
No data
Connectivity
WiFi
Works
Bluetooth
Works
GPS
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
Partial
USB OTG
Works
Sensors
Accelerometer
Works
Magnetometer
Works
Ambient Light
Partial
Proximity
Works
Haptics
No data
Power Sensor
No data

Contributors

Maintainer(s)

Users owning this device

  • ApertureUA (Notes: Atmel with green lightsaber stripe in the middle focaltech, unlocked with aboot patch)
  • Vipaol (Notes: pmOS,Ebbg+Atmel)


How to enter flash mode

[Power] + [Vol-] to fastboot mode

Device Notes

Display Panels

Display Touch Status
Ebbg atmel,maxtouch Works
Tianma edt,edt-5336 (edt,edt-ft5x06) Works

Sensors

Connected to i2c-gpio

Sensor Model Status
Accelerometer/Gyroscope bosch,bmi120 (bosch,bmi160) Works
Light/Proximity liteon,ltr559 (liteon,ltr501) Works
Magnetometer yamaha,yas537 (yamaha,yas530) Works

Bluetooth

To fix it in phosh: rc-update add bluetooth boot

Suspend

The device can't wake up from suspend (but turning display off is working). You can disable it in your UI's settings.

FDE

Atmel touch works incorrectly in osk-sdl (focaltech is untested). You can just use more modern unl0kr instead of osk-sdl.

Installation

Note Note: lk2nd is a hard dependency, without it the mainline kernel will not select the display panel and you'll get a black screen.
  • Use the --add lk2nd-msm8953 flag during pmbootstrap install to get the lk2nd package.
  • Do not use "android recovery zip" method, because it can't install lk2nd.
  • If you want to use FDE, you need to add --fde --add=unl0kr to use unl0kr instead of broken osk-sdl.

Installation:

On SD-card
Find your SD-card: lsblk
Install (change /dev/sdX to your card)
$ pmbootstrap install --add lk2nd-msm8953 --sdcard /dev/sdX
On internal memory
$ pmbootstrap install --add lk2nd-msm8953
$ pmbootstrap flasher flash_rootfs --partition userdata

Flash lk2nd:

$ pmbootstrap flasher flash_lk2nd

Then boot into lk2nd and flash the kernel:

$ pmbootstrap flasher flash_kernel

See also