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 Android
Original version
The version the device was shipped with.
4.4.4
FOSS bootloader yes
postmarketOS
Category testing
Pre-built images
Whether pre-built images are available here.
no
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
partial
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.
Works
Touchscreen
Partial
Multimedia
3D Acceleration
Untested
Audio
Audio playback, microphone, headset and buttons.
Untested
Camera
Untested
IR TX
Untested
Connectivity
WiFi
Untested
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
HDMI/DP
Video and audio output with HDMI or Display Port works.
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
Barometer
Sensor to measure air pressure
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

Hold Power + Volume Down until "FASTBOOT" shows on screen

Installation

Attention: IF YOU ARE ON ANY NON-STOCK ROM(BootBlobs), Flash to original first.

It is recommended to install from recovery mode, which can write pmos to system partition.

Following is the old bsp kernel installation.

$ pmbootstrap initfs hook_add debug-shell
$ pmbootstrap install
$ pmbootstrap flasher flash_rootfs --partition userdata # Flashing to the system partition fails with (remote: '(InvalidSize)'), May cause by 2 system partition.

$ pmbootstrap flasher flash_kernel

Progress

Now turn to FOSS Boot-loader porting, since the Linux kernel refused to boot w/o firmware built-in.

Mainline Status

This device comes with a interesting boot package method, which dt.img isn't QCDT style at all. Instead, it just use dtb file as dt.img. So for packaging, i need some workaround to make qcdt happy.

PSCI(4 core enable) is possible by using TOS-For-PSCI 0.2, but this makes the wlan unusable on 5.4 fork.


Function Hardware Status Info
Boot - P Boot with exists 5.4 fork, working on mainline.
Display Sharp LQ079L1SX01 Y -
Touchscreen Atmel mXT1664T2-C2U/Synaptics 7040(?) P There are two kinds of touchscreen, which for my device is mXT1664T2-C2U.
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 Need to add to DTS regulator/palmas-pmic.txt regulator/palmas-pmic.txt
Wi-Fi, BT & FM Cypress(Broadcom) CYW4354XKUBG - net/wireless/brcm,bcm4329-fmac
SDCard Onsemi CM1624 - -
GPU NVIDIA GK20A P Known issues
Audio NXP TFA9890 - Documentation/devicetree/bindings/sound/nxp,tfa989x
Camera Sony IMX179 & Omni OV5696 -

See also

The Kernel Xiaomi Official released: [1]

pmaports!3735 Initial merge request