Xiaomi Redmi Note 5 Pro (xiaomi-whyred)

From postmarketOS
Xiaomi Redmi Note 5 Pro
Xiaomi Redmi Note 5 Pro
Xiaomi Redmi Note 5 Pro
Manufacturer Xiaomi
Name Redmi Note 5 Pro
Codename xiaomi-whyred
Released 2018
Category testing
Pre-built images no
Original software Android (MIUI)
Original version 9
postmarketOS kernel 4.4.78
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
Type Handset
Features
USB Networking
Works
Flashing
Touchscreen
Works
Display
Works
WiFi
FDE
Mainline
Battery
Works
3D Acceleration
Audio
Bluetooth
Camera
GPS
Mobile data
Internal storage
SMS
Calls
USB OTG
NFC
Sensors
Accelerometer
Broken
Magnetometer
Ambient Light
Proximity
Hall Effect
Barometer
Power Sensor
Misc
Built-in DVB
Camera Flash
Keyboard
Touchpad
USB-A
HDMI/DP
Ir TX
Ir RX
Stylus
Memory Card
Haptics
Ethernet
FOSS bootloader


This device is based on the Snapdragon 636.
See the SoC page for common tips, guides and troubleshooting steps

Contributors

  • javabird25

Maintainer(s)

  • javabird25

Users owning this device

  • AAT596 (Notes: LineageOS 18.1, audio broken, internal speaker still works)
  • 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)
  • TheMooskyFish (Notes: Old Phone - Testing Device)
  • Vincele (Notes: LOS 18.1, activity tracker)
  • ZeroCool32 (Notes: runs pmos, modem doesn't work)


How to enter flash mode

  1. Turn off the device
  2. Press Power + Volume Down to enter fastboot

Installation

Note 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.

Here's how to boot pmOS via fastboot:

  1. Install to a SD card with pmbootstrap install --sdcard=/dev/sdX
  2. Insert the SD card into the device
  3. Connect the device to your PC
  4. Enter the fastboot mode
  5. 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 use pmbootstrap flasher boot or fastboot boot. Create an image if you haven't done that already:
    $ dd if=/dev/zero of=dummy.img bs=8K count=1
    
  6. Flash the freshly created dummy.img to the antirbpass partition:
    $ fastboot flash antirbpass dummy.img
    
  7. 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:

  1. Create a recovery zip with pmbootstrap install --android-recovery-zip
  2. Export the zip with pmbootstrap export, this will create a link to the zip at /tmp/postmarketOS-export/pmos-xiaomi-whyred.zip
  3. 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)


See also