Xiaomi Mi Pad 4 (xiaomi-clover)

From postmarketOS
Xiaomi Mi Pad 4
Mi Pad 4 running Sxmo
Mi Pad 4 running Sxmo
Manufacturer Xiaomi
Name Mi Pad 4
Codename xiaomi-clover
Released 2018
Category testing
Pre-built images no
Original software Android
Original version 8
postmarketOS kernel 6.7
Hardware
Chipset Qualcomm Snapdragon 660 (SDM660)
CPU 4x Qualcomm Kryo 260 Silver @ 1.8GHz + 4x Qualcomm Kryo 260 Gold @ 2.2GHz
GPU Adreno 512
Display 1920x1200 IPS
Storage 32GB
Memory 3GB
Architecture AArch64
Type tablet
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Broken
FDE
Broken
Mainline
Works
Battery
Works
3D Acceleration
Broken
Audio
Broken
Bluetooth
Broken
Camera
Broken
GPS
Broken
Mobile data
Broken
Internal storage
SMS
Broken
Calls
Broken
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 660.
See the SoC page for common tips, guides and troubleshooting steps

There are 3 different variant to take note:

  • WiFi only model (SDA660, 8 inch)
  • LTE model (SDM660, 8 inch)
  • Plus model with LTE (SDM660, 10 inch, different touch controller/display)

Contributors

  • nergzd723

Users owning this device

  • Alexeymin (Notes: Mi Pad 4 PLUS actually)
  • Anthony (Notes: Main goal - working kernel with all the hardware)
  • Bczeman
  • KenOokamiHoro (Notes: Running Pixel Experience 13)
  • Kevinwidjaja21 (Notes: Running Lineage OS. Dual boot through SD card and pmbootstrap flasher boot.)
  • Nergzd723 (Notes: mainline now)


How to enter flash mode

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

Installation

In order to install postmarketOS the bootloader must be unlocked. Unlocking is done by following the official process provided by Xiaomi (read the FAQ for detailed instructions).

Follow Installation guide using pmbootstrap to build your own image.

1. Run pmbootstrap init and select xiaomi as vendor and clover as device.

2. Follow the onscreen instruction and configure as your needs.

Next, we will build the system:

$ pmbootstrap install

Flash the kernel and rootfs:

$ pmbootstrap flasher flash_kernel
$ pmbootstrap flasher flash_rootfs --partition userdata

Installation to SD card

You can take advantage of Mi Pad 4's SD card slot to install postmarketOS for testing.

Install to the SD card:

$ pmbootstrap install --sdcard=/dev/sde 

To boot from SD, with the device in fastboot mode (with device off, press Power + Volume Down until it enters fastboot mode), type:

$ pmbootstrap flasher boot

Note: This uses pmbootstrap from your computer to boot postmarketOS from the SD card without disturbing your bootloader or your system.

Additional information

UART pins location

Xiaomi Mi PAD 4 (clover) UART test pins

See also