Jump to content

Xiaomi Redmi 5A (xiaomi-riva): Difference between revisions

From postmarketOS Wiki
Bczeman (talk | contribs)
Remove deprecated TODOs section and add device and kernel package links
 
(18 intermediate revisions by 8 users not shown)
Line 4: Line 4:
| codename = xiaomi-riva
| codename = xiaomi-riva
| image = File:xiaomi-riva.jpg
| image = File:xiaomi-riva.jpg
| imagecaption = CHANGE_ME
| imagecaption = Redmi 5A running gnome-mobile
| releaseyear = 2017
| releaseyear = 2017
| originalsoftware = Android 7.1.2 with MIUI 9
| originalsoftware = Android
| chipset = Qualcomm MSM8917 Snapdragon 425
| originalversion = 7.1.2 (MIUI 9)
| chipset = Qualcomm Snapdragon 425 (MSM8917)
| cpu = Quad-core 1.4 GHz Cortex-A53
| cpu = Quad-core 1.4 GHz Cortex-A53
| gpu = Adreno 308
| gpu = Adreno 308
Line 14: Line 15:
| memory = 2/3 GB
| memory = 2/3 GB
| architecture = aarch64
| architecture = aarch64
<!-- the following status_* questions should be answered with Y - yes, P - partial, N - no, or left blank (for untested or unknown) -->
| type = handset
| status_usbnet = Y<!-- USB networking does work? then put Y here and delete this comment -->
| status_usbnet = Y
| status_flashing = Y<!-- Flashing with "pmbootstrap flasher" works? Put Y here. It works the same for everything coming below. -->
| status_flashing = Y
| status_touch = Y<!-- Touch screen is working? You can also answer these questions with P for partially. -->
| status_touch = Y
| status_screen = P<!-- The display is working? -->
| status_screen = P
| status_wifi = Y<!-- Wireless network works? -->
| status_wifi = Y
| status_xwayland = <!-- Showing X11 applications in a Wayland compositor (Weston, KWin, ...) works? -->
| status_xwayland = Y
| status_fde = <!-- When installing with full disk encryption, can you type in the password with the on screen keyboard? -->
| status_fde = Y
| status_mainline = N<!-- Instead of a Linux kernel fork, it is possible to run mainline. -->
| status_mainline = Y
| status_battery = <!-- Charging the battery with charging-sdl is possible -->
| status_battery = Y
| status_3d = N<!-- Hardware accelerated 3D graphics (e.g. with freedreno) -->
| status_3d = Y
| status_accel = <!-- The sensor that measures proper acceleration works -->
| status_accel = N
| status_audio = N<!-- Using the device's speakers/headphone jack works -->
| status_audio = Y
| status_bluetooth = <!-- It's possible to pair and use other devices via the bluetooth protocol -->
| status_bluetooth = Y
| status_camera = <!-- Taking photos and videos works. -->
| status_camera = N
| status_gps = <!-- The Global Positioning System sensor works.  -->
| status_gps = N
| status_mobiledata = <!-- Connecting to the Internet via cellular network. -->
| status_mobiledata = N
| status_sms = <!-- Sending and receiving short messages works as intended. -->
| status_sms = N
| status_calls = <!-- Talking to other people over the cellular network. -->
| status_calls = N
| status = <!-- Text displayed in the "not booting" table on the Devices page , e.g "kernel compiles, doesn't boot" -->
| status_emmc = Y
| booting = yes <!-- The device is booting at all, can be yes/no *IMPORTANT* -->
| status_sdcard = Y
 
| status =
<!-- you can also use these lines if you need to:
| booting = yes
Version of the kernel that pmos is running
| pmoskernel = 6.13
| pmoskernel = 3.x.x
| genericdevice=Generic MSM89x7 (qcom-msm89x7)
see Unixbench page on wiki
| optionalgenericdevice = no
| whet_dhry = 0.0
| status_otg = N
Is OTG available, not used in wiki
}}{{Based on SoC|Qualcomm_Snapdragon_425/427/430/435_(MSM8917/MSM8920/MSM8937/MSM8940)|Snapdragon 425}}
| status_otg = -
-->
}}


== Contributors ==
== Contributors ==
* None
* ''[[user:bczeman|Barnabas Czeman]]''


== Maintainer(s) ==
== Maintainer(s) ==
<!-- Only if this device doesn't run on linux-postmarketos yet! -->
<!-- Only if this device doesn't run on linux-postmarketos yet! -->
<!-- This person needs to be willing to answer questions from users of this device -->
<!-- This person needs to be willing to answer questions from users of this device -->
* ''[[user:bczeman|Barnabas Czeman]]''


== Users owning this device ==
== Users owning this device ==
Line 67: Line 66:


== Installation ==
== Installation ==
First build the image:
<source lang="shell-session">
$ pmbootstrap init
$ pmbootstrap install
</source>


Then in order to flash it put your device in fastboot mode, and plug it in USB. Then do:
{{Note|Oreo version is not supported, downgrade to V10.1.1.0.NCKCNFI}}


<source lang="shell-session">
* Follow the [[Installation guide]]
{{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).}}
<syntaxhighlight lang="shell-session">
$ pmbootstrap init # choose Vendor: qcom Device codename: msm89x7
$ pmbootstrap install
$ pmbootstrap flasher flash_lk2nd
$ pmbootstrap flasher flash_rootfs
$ pmbootstrap flasher flash_rootfs
$ pmbootstrap flasher flash_kernel
</syntaxhighlight>
</source>


=== Wifi ===
=== Wifi ===
To connect to a wifi network simply run:
To connect to a wifi network simply run:
<source lang="shell-session">
<syntaxhighlight lang="shell-session">
$ sudo nmtui
$ sudo nmtui
</source>
</syntaxhighlight>
And connect to your prefered wifi network using the terminal UI.
And connect to your prefered wifi network using the terminal UI.


Note: Use the '''wlan0''' interface.
Note: Use the '''wlan0''' interface.
== Notes ==
- Some desktop environment will result in a blank. LXQT or SXMO UI is Recommended to use.
- KDE Mobile DE may be struggling running on this device


== See also ==
== See also ==
Line 94: Line 97:
* {{Device package|xiaomi-riva}}
* {{Device package|xiaomi-riva}}
* {{Kernel package|xiaomi-riva}}
* {{Kernel package|xiaomi-riva}}
* {{Firmware package|xiaomi-riva}}
<!--
<!--
Link to related GitLab issues or merge requests like the following (replace CHANGEME with the ID, e.g. 1234):
Link to related GitLab issues or merge requests like the following (replace CHANGEME with the ID, e.g. 1234):

Latest revision as of 22:51, 2 February 2025

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.

- KDE Mobile DE may be struggling running on this device

See also