Xiaomi Mi Pad 5 Pro (xiaomi-elish)

From postmarketOS
Revision as of 14:37, 22 August 2022 by Jianhua (talk | contribs) (touchscreen worka)
Xiaomi Mi Pad 5 Pro
Xiaomi Pad 5 Pro booting mainline with simple framebuffer.
Xiaomi Pad 5 Pro booting mainline with simple framebuffer.
Manufacturer Xiaomi
Name Mi Pad 5 Pro
Codename xiaomi-elish
Released 2021
Category testing
Original software MIUI 12.5 (Android 11)
Hardware
Chipset Qualcomm SM8250-AC Snapdragon 870
CPU Octa-core (1x3.2 GHz Kryo 585 & 3x2.42 GHz Kryo 585 & 4x1.80 GHz Kryo 585)
GPU Adreno 650
Display 2560x1600 120HZ IPS LCD
Storage 128/256 GiB
Memory 6/8 GiB
Architecture aarch64
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Partial
WiFi
Works
FDE
Mainline
Works
Battery
Partial
3D Acceleration
Works
Audio
Bluetooth
Broken
Camera
GPS
Internal storage
USB OTG
Sensors
Accelerometer
Works
Magnetometer
Ambient Light
Proximity
Hall Effect
Barometer
Power Sensor
Misc
Built-in DVB
Camera Flash
Keyboard
Touchpad
USB-A
HDMI/DP
Ir RX
Stylus
SD card
Haptics
Ethernet
FOSS bootloader


Contributors

  • Jianhua

Users owning this device

  • Jianhua (Notes: mainlining in progress)


How to enter flash mode

You have to press Power + Volume Down to enter the bootloader.

Installation

(Optional) Backup super partiton(need root, recommand to use magisk):

 $ adb shell
 $ su
 $ dd if=/dev/block/by-name/super of=/sdcard/super.img
 $ exit
 $ exit
 $ adb pull /sdcard/super.img

Install pmbootstrap and execute:

 $ pmbootstrap init
 $ pmbootstrap install

There are two ways to flash rootfs:

1.Flash rootfs to the super partition:

 $ pmbootstrap flasher flash_rootfs --partition super
 $ pmbootstrap flasher flash_kernel --partition boot_b
 $ fastboot erase dtbo_b
 $ fastboot set_active b

2.Use fastbootd to flash rootfs to system_b partition(dual boot):

 $ fastboot set_active a
 $ fastboot reboot fastboot
 $ pmbootstrap flasher flash_rootfs --partition system_b
 $ pmbootstrap flasher flash_kernel --partition boot_b
 $ fastboot reboot bootloader
 $ fastboot erase dtbo_b
 $ fastboot set_active b

SSH into the device (Full instructions):

 $ ssh user@172.16.42.1

Issues

1. FBDEV_EMULATION doesn't work, framebuffer will be broken after drm-msm driver loads. Need to enter power key twice to update ui(drm only).

See also

Device's hardware info

Initial merge request: pmaports!2871 pmaports fork: [1]