Jump to content

Xiaomi Mi Pad 4 (xiaomi-clover)

From postmarketOS Wiki
Xiaomi Mi Pad 4
Mi Pad 4 PLUS running swmo
Mi Pad 4 PLUS running swmo
Manufacturer Xiaomi
Name Mi Pad 4
Codename xiaomi-clover
Released 2018
Type tablet
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
Software
Original software Android
Original version 8
FOSS bootloader partial
postmarketOS
Category testing
Pre-built images no
Mainline yes
postmarketOS kernel 6.13
Features
Flashing
Works
USB Networking
Works
Internal storage
Works
SD card
Works
Battery
Works
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
Broken
Camera
Broken
Camera Flash
Broken
Connectivity
WiFi
Partial
Bluetooth
Works
GPS
Broken
Modem
Calls
Broken
SMS
Broken
Mobile data
Broken
Miscellaneous
FDE
Works
USB OTG
Broken
Sensors
Accelerometer
Works
Magnetometer
Broken
Ambient Light
Broken
Proximity
Broken
Hall Effect
Broken
Haptics
Works
U-Boot
Primary Bootloader
Broken
Secondary Bootloader
Partial
Internal Storage
Works
SD card
Broken
USB Host
Broken
USB Peripheral
Works
Display
Works
Keyboard
Broken
Buttons
Partial

Contributors

  • nergzd723

Users owning this device

  • Alexeymin (Notes: Test subject #2. Mi Pad 4 PLUS actually)
  • Anthony (Notes: Main goal - working kernel with all the hardware)
  • Bczeman
  • KenOokamiHoro (Notes: Running Pixel Experience 13)
  • Kevinwidjaja21 (Notes: WiFi only model. Running crDroid. Dual boot PMOS through SD card.)
  • Nergzd723 (Notes: mainline now)


Device variants

There are 3 different variant to take note:

  • WiFi only model (SDA660, 8 inch)
  • LTE model (SDM660, 8 inch) does it exist? other two we have and for sure know about
  • Plus model with LTE (SDM660, 10 inch, different touch controller/display)

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