Jump to content

Xiaomi Mi Pad (xiaomi-mocha)

From postmarketOS Wiki
Xiaomi Mi Pad
Xiaomi Mi Pad
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
Features
Flashing
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
Charging and battery level reporting works
Untested
Screen
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
Auto screen rotation works in desktops e.g. Phosh or Plasma Mobile
Untested
Magnetometer
Sensor to measure magnetism
Untested
Ambient Light
Untested
Proximity
Untested
Hall Effect
Also known as flip cover sensor
Untested
Power Sensor
Sensor to monitor current, voltage and power. Not fuel gauge!
Untested
U-Boot
Primary Bootloader
It is possible to replace stock bootloader with U-Boot.
Works
Secondary Bootloader
It is possible to chainload U-Boot from stock bootloader.
Works
Mainline
Latest versions of U-Boot are not broken and it is possible to use them.
Works
Internal Storage
It is possible to boot from internal storage (e.g. eMMC or UFS).
Works
SD card
It is possible to boot from SD card.
Works
USB Host
It is possible to boot from a USB storage or connect a keyboard.
Broken
USB Peripheral
It is possible to use device as a peripheral in U-Boot, e.g. for fastboot mode.
Works
Display
Partial
Buttons
It is possible to navigate in boot menu or grub with volume and power buttons.
Works


Contributors

  • CEllenvia

Users owning this device


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]

pmaports!6694