Xiaomi Redmi Note 5 Pro (xiaomi-whyred)
![]() Xiaomi Redmi Note 5 Pro | |
Manufacturer | Xiaomi |
---|---|
Name | Redmi Note 5 Pro |
Codename | xiaomi-whyred |
Released | 2018 |
Type | handset |
Hardware | |
Chipset | Qualcomm Snapdragon 636 (SDM636) |
CPU | Octa-core Kryo 260 1.8 GHz |
GPU | Adreno 509 |
Display | 2160x1080 (403 PPI) IPS |
Storage | 64 GB |
Memory | 4/6 GB |
Architecture | aarch64 |
Software | |
Original software The software and version the device was shipped with. |
Android (MIUI) 9 |
Extended version The most recent supported version from the manufacturer. |
Android (MIUI) |
FOSS bootloader | partial |
postmarketOS | |
Category | testing |
Mainline Instead of a Linux kernel fork, it is possible to run (Close to) Mainline. |
yes |
pmOS kernel The kernel version that runs on the device's port. |
6.14 |
Device package |
![]() |
Kernel package |
![]() |
Flashing Whether it is possible to flash the device with pmbootstrap flasher . |
Works
|
---|---|
USB Networking After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system). |
Works
|
Internal storage eMMC, SD cards, UFS... |
Works
|
SD card Also includes other external storage cards. |
Works
|
Battery Whether charging and battery level reporting work. |
Works
|
Screen Whether the display works; ideally with sleep mode and brightness control. |
Works
|
Touchscreen |
Works
|
Multimedia | |
3D Acceleration |
Works
|
Audio Audio playback, microphone, headset and buttons. |
Broken
|
Camera |
Broken
|
Camera Flash |
Broken
|
Connectivity | |
WiFi |
Works
|
Bluetooth |
Works
|
GPS |
Broken
|
Modem | |
Calls |
Broken
|
SMS |
Broken
|
Mobile data |
Broken
|
Miscellaneous | |
FDE Full disk encryption and unlocking with unl0kr. |
Works
|
USB OTG USB On-The-Go or USB-C Role switching. |
Broken
|
HDMI/DP Video and audio output with HDMI or DisplayPort. |
Broken
|
Sensors | |
Accelerometer Handles automatic screen rotation in many interfaces. |
Works
|
Magnetometer Sensor to measure the Earth's magnetism |
Partial
|
Ambient Light Measures the light level; used for automatic screen dimming in many interfaces. |
Partial
|
Proximity |
Partial
|
Haptics |
Works
|
Primary Bootloader Whether it is possible to replace stock bootloader with U-Boot. |
Broken
|
---|---|
Secondary Bootloader Whether it is possible to chainload U-Boot from stock bootloader. |
Works
|
Mainline Whether latest upstream versions of U-Boot are not broken and it is possible to use them. |
Partial
|
Internal Storage Whether it is possible to boot from internal storage (e.g. eMMC or UFS). |
Works
|
SD card Whether it is possible to boot from SD card. |
Works
|
USB Host Whether it is possible to boot from a USB storage or connect a keyboard. |
Broken
|
USB Peripheral Whether it is possible to use device as a peripheral in U-Boot, e.g. for fastboot mode. |
Works
|
Display |
Works
|
Buttons Whether it is possible to navigate in boot menu or grub with volume and power buttons. |
Works
|
This device is based on the Snapdragon 636. See the SoC page for common tips, guides and troubleshooting steps |
Contributors
- javabird25
Maintainer(s)
Users owning this device
- AAT596 (Notes: LineageOS 18.1, audio broken, internal speaker still works)
- Alexeymin (Notes: Test subject #3)
- Csoftware (Notes: Not working Wayland, Touch and Display is broken, controlled by usb otg mouse)
- Devajithvs (Notes: Possible Future Test subject)
- Fireman112 (Notes: Daily driver)
- ItsVixano (Notes: Requires USB charger port replacement)
- RedVelvetCake11 (Notes: Main device, crDroid 12 Beta)
- Seebz (Notes: pmOS, no battery)
- TheMooskyFish (Notes: Old Phone - Testing Device)
- Uvraj
- Vincele (Notes: LOS 18.1, sports activity tracker, unlocked)
- ZeroCool32 (Notes: runs pmos, modem doesn't work)
How to enter flash mode
- Turn off the device
- Press + to enter fastboot
Bootloader unlocking
In order to install postmarketOS the bootloader must be unlocked.
Like other Xiaomi devices, the user will have to acquire the bootloader unlock key: https://en.miui.com/unlock
The device will not unlock if the device isn't 7 days old (from the time when your device connects to internet and powered on, and linked with Mi Account)
Installation
CAUTION: Flashing any image with antirollback index lower than 4 (Android 8 or lower, for example) could potentially brick your device due to Anti-rollback protection. See a related XDA Developers post for more information. |
Regular Installation/Using_pmbootstrap method works.
1. Run pmbootstrap init
and select xiaomi
as vendor and whyred
as device. Follow the onscreen instruction and configure as your needs.
2. Next, we will build the system:
$ pmbootstrap install
3. Flash the kernel and rootfs:
$ pmbootstrap flasher flash_kernel $ pmbootstrap flasher flash_rootfs --partition userdata $ fastboot erase system # just to be sure there is no old pmOS install on it
Installation to SD card
Here's how to boot pmOS via fastboot:
- Install to a SD card with
pmbootstrap install --sdcard=/dev/sdX
- Insert the SD card into the device
- Connect the device to your PC
- Enter the fastboot mode
- In order to boot an image with fastboot, an 8-Kb image of zeros should be flashed to the
antirbpass
partition every time we want to usepmbootstrap flasher boot
orfastboot boot
. Create an image if you haven't done that already:$ dd if=/dev/zero of=dummy.img bs=8K count=1
- Flash the freshly created
dummy.img
to theantirbpass
partition:$ fastboot flash antirbpass dummy.img
- Finally, boot pmOS. Note that it does take a while to load the desktop:
$ pmbootstrap flasher boot
Alternatively, flashing a zip image through the recovery does not appear to trigger anti-rollback protection.
This has only been tested on one device with the following procedure, proceed at your own risk:
- Create a recovery zip with
pmbootstrap install --android-recovery-zip
- Export the zip with
pmbootstrap export
, this will create a link to the zip at/tmp/postmarketOS-export/pmos-xiaomi-whyred.zip
- Copy the zip to your device and flash with the recovery of your choice, though this has only been tested on OrangeFox Recovery R11.0.
Your recovery may show some warnings during the install process and warn you that no OS is installed after flashing postmarketOS. You can ignore those warnings.
For more info on using recovery zips, see Installation from recovery mode
Accessing UART
- Disassemble the device
- Unscrew the battery connector holder
- Disconnect charging board connector (Note: UART test point is under the charging board connector so you can't use usb while accessing UART or you solder thin wires to it)
-
Test point locations
See also
- pmaports!1088 Initial merge request