Jump to content

Xiaomi Redmi Note 5A: Difference between revisions

From postmarketOS Wiki
Flafflar (talk | contribs)
No edit summary
Bczeman (talk | contribs)
mNo edit summary
 
(23 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Infobox device
{{Infobox device
| manufacturer = Xiaomi
| manufacturer = Xiaomi
| name = Redmi Note 5A
| name = Redmi Note 5A Prime
| codename = xiaomi-ugg
| codename = xiaomi-ugg
| image = File:CHANGE_ME_TO_DEVICE_CODENAME.jpg
| image = File:xiaomi-ugg.jpg
| imagecaption = CHANGE_ME
| imagecaption = Xiaomi Redmi Note 5A running XFCE4
| releaseyear = 2017
| releaseyear = 2017
| originalsoftware = Android 7.1.2, MIUI 11 <!-- e.g. Android 2.1 -->
| originalsoftware = Android (MIUI)
| originalversion = 7.1.2 (MIUI 11)
| chipset = Qualcomm Snapdragon 435 (MSM8940)
| chipset = Qualcomm Snapdragon 435 (MSM8940)
| cpu = 1.4 GHz Cortex-A53
| cpu = 1.4 GHz Cortex-A53
Line 14: Line 15:
| memory = 3GB
| memory = 3GB
| architecture = aarch64
| architecture = aarch64
<!-- the following status_* questions should be answered with Y for yes, P for partial, N for no, - for N/A or unavailable, or left blank for untested or unknown -->
| type = handset
| status_usbnet = Y
| status_usbnet = Y
| status_flashing = Y
| status_flashing = Y
| status_touch = Y
| status_touch = Y
| status_screen = P
| status_screen = Y
| status_wifi = <!-- 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 = <!-- 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 = <!-- Hardware accelerated 3D graphics (e.g. with freedreno) -->
| status_3d = Y
| status_audio = <!-- 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_sdcard = Y
| status_calls = <!-- Talking to other people over the cellular network. -->
| status_emmc = Y
| status = <!-- Text displayed in the "not booting" table on the Devices page , e.g "kernel compiles, doesn't boot" -->
| status_sms = N
| status_otg = <!-- USB-OTG adapters work, e.g. to connect an USB flash drive to the device -->
| status_calls = N
| status_nfc = N/A
| status =
| status_usba = N/A
| status_otg = N
| status_hdmidp = N/A
| status_nfc = -
| status_usba = -
| status_hdmidp = -
| status_keyboard = -
| status_keyboard = -
| status_touchpad = N/A
| status_touchpad = -
| status_irtx = <!-- Infrared (IR) port works -->
| status_irtx = <!-- Infrared (IR) port works -->
| status_trustzone = <!-- TrustZone works -->
| status_trustzone = <!-- TrustZone works -->
| status_accel = <!-- The sensor that measures proper acceleration works -->
| status_accel = N
| status_magnet = <!-- Magnetometer works -->
| status_magnet = N
| status_light = <!-- Ambient light sensor works -->
| status_light = N
| status_proximity = <!-- Proximity sensor works -->
| status_proximity = N
| status_hall = <!-- Hall effect sensor works -->
| status_hall = N
| status_barometer = <!-- Barometer works -->
| status_barometer = -
| status_powersensor = <!-- Power sensor works -->
| status_powersensor = -
| status_fossbootloader = N
| booting = yes
| booting = yes
<!-- you can also use these lines if you need to:
if the device haven't originally ran Android OS, e.g. Nokia N900
| n-android =  ✔
| n-android =  ✔
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
}}{{Based on SoC|Qualcomm_Snapdragon_425/427/430/435_(MSM8917/MSM8920/MSM8937/MSM8940)|Snapdragon 435}}
-->
}}


== Contributors ==
== Contributors ==
Line 66: Line 63:
== Users owning this device ==
== Users owning this device ==
{{Device owners}}
{{Device owners}}
== Installation ==
* 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
</syntaxhighlight>


== How to enter flash mode ==
== How to enter flash mode ==
While the phone is off, hold the Power and Volume Down buttons together for a few seconds.
While the phone is off, hold the {{Button|Power}} + {{Button|Volume Down}} buttons together for a few seconds.
 
== How to enter EDL mode ==
[https://www.thecustomdroid.com/qualcomm-edl-mode-guide/ EDL mode] (Emergency Download Mode) is a special mode in Qualcomm devices that allows, among other things, flashing firmware even when the phone is completely bricked. This might come useful in case something goes extremely wrong and the device won't even boot to fastboot.
 
To boot into EDL, you must first disassemble the device in order to expose the motherboard points required. This phone is very easy to disassemble, you can search for videos on YouTube if necessary. Once you have removed the back case and disconnected the battery, find the points shown below on the motherboard:
 
[[File:xiaomi-ugg_EDL_Testpoints.jpeg|300px|EDL testpoints on Redmi Note 5A motherboard (highlighted in red)]]
 
These are the test points that enable EDL mode. With the battery disconnected, use a metal tweezer or a small wire to short these two points. While keeping them sorted, plug the phone to a computer. The device should show up as "Qualcomm HS-USB QDLoader 9008". You can now use [https://github.com/bkerler/edl this tool] to download firmware to your device.


== Installation ==
<!-- add more sections below as necessary, e.g. WiFi, photos, ... -->


== See also ==
== See also ==
Line 81: Line 95:
* [https://redmine.replicant.us/projects/replicant/wiki/GalaxyS2I9100 Replicant wiki page]
* [https://redmine.replicant.us/projects/replicant/wiki/GalaxyS2I9100 Replicant wiki page]
-->
-->
<!--
* {{Device package|qcom-msm89x7}}
If you manage to get your device packages merged, uncomment links below and change DEVICE_CODENAME with the actual one.
* {{Kernel package|postmarketos-qcom-msm89x7}}
* {{Device package|DEVICE_CODENAME}}
* {{Kernel package|DEVICE_CODENAME}}
-->

Latest revision as of 01:09, 31 January 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 Note 5A Prime
Xiaomi Redmi Note 5A running XFCE4
Xiaomi Redmi Note 5A running XFCE4
Manufacturer Xiaomi
Name Redmi Note 5A Prime
Codename xiaomi-ugg
Released 2017
Type handset
Hardware
Chipset Qualcomm Snapdragon 435 (MSM8940)
CPU 1.4 GHz Cortex-A53
GPU Adreno 505
Display 720x1280 IPS LCD
Storage 32G
Memory 3GB
Architecture aarch64
Software
Original software Android (MIUI)
Original version 7.1.2 (MIUI 11)
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
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
Works
Camera
Broken
Camera Flash
No data
IR TX
No data
Connectivity
WiFi
Works
Bluetooth
Works
GPS
Broken
Modem
Calls
Broken
SMS
Broken
Mobile data
Broken
Miscellaneous
FDE
Works
USB OTG
Broken
Sensors
Accelerometer
Broken
Magnetometer
Broken
Ambient Light
Broken
Proximity
Broken
Hall Effect
Broken
Haptics
No data

Contributors

  • Flafflar

Users owning this device

  • Bczeman
  • Filip2cz (Notes: Prime version - this just added fingerprint reader, better camera and littlebit better cpu)
  • Flafflar (Notes: Broken camera)
  • Xiaoyu2006 (Notes: Broken display)


Installation

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

How to enter flash mode

While the phone is off, hold the Power + Volume Down buttons together for a few seconds.

How to enter EDL mode

EDL mode (Emergency Download Mode) is a special mode in Qualcomm devices that allows, among other things, flashing firmware even when the phone is completely bricked. This might come useful in case something goes extremely wrong and the device won't even boot to fastboot.

To boot into EDL, you must first disassemble the device in order to expose the motherboard points required. This phone is very easy to disassemble, you can search for videos on YouTube if necessary. Once you have removed the back case and disconnected the battery, find the points shown below on the motherboard:

EDL testpoints on Redmi Note 5A motherboard (highlighted in red)

These are the test points that enable EDL mode. With the battery disconnected, use a metal tweezer or a small wire to short these two points. While keeping them sorted, plug the phone to a computer. The device should show up as "Qualcomm HS-USB QDLoader 9008". You can now use this tool to download firmware to your device.


See also