Jump to content

Xiaomi Redmi Note 5A: Difference between revisions

From postmarketOS Wiki
Bczeman (talk | contribs)
No edit summary
Bczeman (talk | contribs)
mNo edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 26: Line 26:
| status_battery = Y
| status_battery = Y
| status_3d = Y
| status_3d = Y
| status_audio = N
| status_audio = Y
| status_bluetooth = Y
| status_bluetooth = Y
| status_camera = N
| status_camera = N
| status_gps = N
| status_gps = N
| status_mobiledata = N
| status_mobiledata = N
| status_sdcard = Y
| status_emmc = Y
| status_sms = N
| status_sms = N
| status_calls = N
| status_calls = N
Line 51: Line 53:
| booting = yes
| booting = yes
| n-android =  ✔
| n-android =  ✔
| pmoskernel = 6.12.5
| pmoskernel = 6.13
}}
| genericdevice = Generic MSM89x7 (qcom-msm89x7)
| optionalgenericdevice = no
}}{{Based on SoC|Qualcomm_Snapdragon_425/427/430/435_(MSM8917/MSM8920/MSM8937/MSM8940)|Snapdragon 435}}


== Contributors ==
== Contributors ==
Line 59: Line 63:
== Users owning this device ==
== Users owning this device ==
{{Device owners}}
{{Device owners}}
== How to enter flash mode ==
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 ==
== Installation ==
Line 82: Line 74:
</syntaxhighlight>
</syntaxhighlight>


== Display ==
== How to enter flash mode ==
Both the display and the touchscreen work normally, although the interface won't show up if you are using LightDM. This happens because for whatever reason logind does not recognize the user's session as graphical. To fix this, edit <code>/etc/lightdm/lightdm.conf</code> and add the line <code>logind-check-graphical=false</code> to force LightDM to start the graphical session. See this article for more info: [[Display_manager#CanGraphical_issue]].
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:


The display also has trouble waking up after being put to sleep. The backlight is enabled as expected, but the screen stays blank.
[[File:xiaomi-ugg_EDL_Testpoints.jpeg|300px|EDL testpoints on Redmi Note 5A motherboard (highlighted in red)]]


== WiFi ==
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.
The WiFi works, but only with the proprietary firmware distributed with the phone. Make sure to enable nonfree firmware if you need to use WiFi.


When the WCNSS driver gets enabled, it might complain with the following error:
<syntaxhighlight lang="text">
[  140.798259] wcnss: no space available for smd frame
</syntaxhighlight>
This is probably a false error. After the firmware is loaded, the interface appears and works correctly, so you can ignore it.


== See also ==
== See also ==
Line 104: 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