Xiaomi Mi Pad 5 Pro (xiaomi-elish)

From postmarketOS
Revision as of 16:09, 21 January 2022 by Jianhua (talk | contribs)
Jump to navigation Jump to search
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 Android 11
Hardware
Chipset Qualcomm SM8250-AC Snapdragon 870 5G
CPU Octa-core (1x3.2 GHz Kryo 585 & 3x2.42 GHz Kryo 585 & 4x1.80 GHz Kryo 585)
GPU Adreno 650
Display 1600x2560 120HZ LCD
Storage 128/256 GiB
Memory 6/8 GiB
Architecture aarch64
Features
USB Networking
Works
Flashing
Works
Touchscreen
Display
Partial
WiFi
FDE
Mainline
Works
Battery
Partial
3D Acceleration
Audio
Bluetooth
Camera
GPS
Unavailable
Mobile data
Unavailable
SMS
Unavailable
Calls
Unavailable
USB OTG
NFC
Unavailable
Sensors
Accelerometer
Magnetometer
Ambient Light
Proximity
Hall Effect
Barometer
Power Sensor
Misc
Camera Flash
Keyboard
Touchpad
USB-A
HDMI/DP
Ir TX
Ir RX
Stylus
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

Back up super partiton(need root, recommand to use magisk[1]):

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

Switch to slot b to boot and disable dtbo:

fastboot set_active b
fastboot erase dtbo

Clone the pmaports forks, and rebase with master:

cd /path/to/your/pmaports (for example: /home/jianhua/.local/var/pmbootstrap/cache_git/pmaports)
git remote add myself https://gitlab.com/jianhua000/pmaports.git
git fetch myself && git checkout xiaomi_elish
git rebase master

Compile the kernel and flash rootfs to the super partition:

pmbootstrap build linux-xiaomi-elish
pmbootstrap build device-xiaomi-elish
pmbootstrap install
pmbootstrap flasher flash_rootfs --partition super
pmbootstrap flasher flash_kernel

SSH into the device (Full instructions):

ssh user@172.16.42.1

See also

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