Jump to content

Xiaomi Redmi 5A (xiaomi-riva)

From postmarketOS Wiki
Revision as of 01:10, 31 January 2025 by Bczeman (talk | contribs)
Note This device is supported as part of a generic port. Refer to Generic MSM89x7 (qcom-msm89x7) for installation instructions and more information.
Xiaomi Redmi 5A
Redmi 5A running gnome-mobile
Redmi 5A running gnome-mobile
Manufacturer Xiaomi
Name Redmi 5A
Codename xiaomi-riva
Released 2017
Type handset
Hardware
Chipset Qualcomm Snapdragon 425 (MSM8917)
CPU Quad-core 1.4 GHz Cortex-A53
GPU Adreno 308
Display 720x1280 IPS
Storage 16/32 GB
Memory 2/3 GB
Architecture aarch64
Software
Original software Android
Original version 7.1.2 (MIUI 9)
postmarketOS
Category testing
Pre-built images no
Mainline yes
postmarketOS kernel 6.13
Generic port Generic MSM89x7 (qcom-msm89x7)
Features
Flashing
Works
USB Networking
Works
Internal storage
Works
SD card
Works
Battery
Works
Screen
Partial
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
Works
Camera
Broken
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
Works
GPS
Broken
NFC
No data
Modem
Calls
Broken
SMS
Broken
Mobile data
Broken
Miscellaneous
FDE
Works
USB OTG
Broken
HDMI/DP
No data
Sensors
Accelerometer
Broken
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data

Contributors

Maintainer(s)

Users owning this device

  • AppData 174
  • Bczeman
  • CoderCharmander (Notes: Recently superseded by my new phone, trying to port various Linux distros on it)
  • Gelzar2041 (Notes: slightly cracked screen, 2/16)
  • Hander (Notes: testing rolex version on riva)
  • Meowka (Notes: Boots with kernel for android)
  • Misopog (Notes: Few scratches, stock)
  • Paricbat (Notes: Im not sure if it works, cracked screen)


How to enter flash mode

  • Shutdown the phone completely
  • Hold power and Volume - (down) until fastboot logo

Installation

Note Oreo version is not supported, downgrade to V10.1.1.0.NCKCNFI
Note Warning: Flashing lk2nd is required, as it is a hard dependency. Without it the mainline kernel will not select the display panel (resulting in black screen on boot).
$ pmbootstrap init # choose Vendor: qcom Device codename: msm89x7
$ pmbootstrap install
$ pmbootstrap flasher flash_lk2nd
$ pmbootstrap flasher flash_rootfs

Wifi

To connect to a wifi network simply run:

$ sudo nmtui

And connect to your prefered wifi network using the terminal UI.

Note: Use the wlan0 interface.

Notes

Some desktop environment will result in a blank. LXQT or SXMO UI is Recommended to use

Gallery

See also