Xiaomi Mi Pad (xiaomi-mocha)
Appearance
	
	
| This device has been tested with postmarketOS, but its device package has not yet been added to the postmarketOS repositories. This means that it cannot be selected in pmbootstrap. Status: mainline in progress | 
|  Xiaomi Mi Pad | |
| Manufacturer | Xiaomi | 
|---|---|
| Name | Mi Pad | 
| Codename | xiaomi-mocha | 
| Released | 2014 | 
| Type | tablet | 
| Hardware | |
| Chipset | Nvidia Tegra K1 (T124) | 
| CPU | 4x 2.2 GHz Cortex-A15 | 
| GPU | Nvidia GK20A (192-core Kepler) | 
| Display | 1536 x 2048 LCD IPS | 
| Storage | 16 GB / 64 GB | 
| Memory | 2 GB | 
| Architecture | armv7 | 
| Software | |
| Original software The software and version the device was shipped with. | Android 4.4.4 | 
| Extended version The most recent supported version from the manufacturer. | Android | 
| FOSS bootloader | yes | 
| Mainline Instead of a Linux kernel fork, it is possible to run (Close to) Mainline. | no | 
| Flashing Whether it is possible to flash the device with  pmbootstrap flasher. | Untested | 
|---|---|
| USB Networking After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system). | Broken | 
| Battery Whether charging and battery level reporting work. | Untested | 
| Screen Whether the display works; ideally with sleep mode and brightness control. | Partial | 
| Touchscreen | Broken | 
| Multimedia | |
| 3D Acceleration | Broken | 
| Audio Audio playback, microphone, headset and buttons. | Untested | 
| Camera | Untested | 
| Connectivity | |
| WiFi | Works | 
| Bluetooth | Untested | 
| GPS | Untested | 
| Miscellaneous | |
| FDE Full disk encryption and unlocking with unl0kr. | Untested | 
| USB OTG USB On-The-Go or USB-C Role switching. | Untested | 
| Sensors | |
| Accelerometer Handles automatic screen rotation in many interfaces. | Untested | 
| Magnetometer Sensor to measure the Earth's magnetism | Untested | 
| Ambient Light Measures the light level; used for automatic screen dimming in many interfaces. | Untested | 
| Proximity | Untested | 
| Hall Effect Measures magnetic fields; usually used as a flip cover sensor | Untested | 
| Power Sensor Sensor to monitor current, voltage and power. Not fuel gauge! | Untested | 
| Primary Bootloader Whether it is possible to replace stock bootloader with U-Boot. | Works | 
|---|---|
| Secondary Bootloader Whether it is possible to chainload U-Boot from stock bootloader. | Works | 
| Mainline Whether latest upstream versions of U-Boot are not broken and it is possible to use them. | Works | 
| Internal Storage Whether it is possible to boot from internal storage (e.g. eMMC or UFS). | Works | 
| SD card Whether it is possible to boot from SD card. | Works | 
| USB Host Whether it is possible to boot from a USB storage or connect a keyboard. | Broken | 
| USB Peripheral Whether it is possible to use device as a peripheral in U-Boot, e.g. for fastboot mode. | Works | 
| Display | Partial | 
| Buttons Whether it is possible to navigate in boot menu or grub with volume and power buttons. | Works | 
| This device is based on the Tegra K1. See the SoC page for common tips, guides and troubleshooting steps | 
Contributors
- CEllenvia
Users owning this device
- CEllenvia (Notes: 64Giga, Atmel touchpad)
- Clamor (Notes: pmOS with Grate kernel and U-Boot)
- IonAgorria (Notes: Stock - OK)
How to enter flash mode
will use upstream u-boot, WIP
Installation
WIP
Progress
Now turn to FOSS Boot-loader porting, since the Linux kernel refused to boot w/o firmware built-in.
Mainline Status
Reading existing tree and trying to boot the minimal system.
Kernel Boot Log
https://github.com/MiPadLinux/stuff/blob/main/ttyUSB0 d254a6c.log
Function Sheet
| Function | Hardware | Status | Info | 
|---|---|---|---|
| Boot | - | Y | 6.15.0/6.15.1 | 
| Display | Sharp LQ079L1SX01/AUO ? | P | Only work in u-boot | 
| Touchscreen | Atmel mXT1664T2-C2U/Synaptics 7040(?) | P | There are two kinds of touchscreen, which for my device is mXT1664T2-C2U. Upstream Broken. | 
| Onscreen RGB LED | Texas Instruments(National Semiconductor) LP5521 | Y | Need to add to DTS Documentation/leds/leds-lp5521 | 
| Backlight LED | Texas Instruments LP8556 | Y | - | 
| Charger IC | Texas Instruments BQ24192 | Y | Need to add to DTS power/supply/bq24190 | 
| Battery Management | Texas Instruments BQ27520-G4 | Y | Need to add to DTS power/supply/bq27xxx | 
| Power Management & NTP etc. (palmas) | Texas Instruments TPS65913 | Y | |
| Wi-Fi, BT & FM | Cypress(Broadcom) CYW4354XKUBG | P | net/wireless/brcm,bcm4329-fmac, WiFi worked. | 
| GPU | NVIDIA GK20A | P | Known issues | 
| Audio | NXP TFA9890 & Realtek RT5671 | - | sound/nxp,tfa989x, Missing bindings for RT5671 | 
| Ambient Light | Renesas ISL29035 | - | iio/light/isl29018 | 
| Magnetometer | AKM09911 | - | Is it exists? | 
| Gyro + Accelerometer | TDK MPU6515 | - | Need to add to DTS iio/imu/invensense,mpu6050 | 
| Camera | Sony IMX179 & Omni OV5696 | N | 
See also
The kernel Xiaomi official released: [1]
The kernel used for mainline: [2]