Xiaomi Mi 4c (xiaomi-libra)

From postmarketOS
Xiaomi Mi 4c
Mi 4c running weston
Mi 4c running weston
Manufacturer Xiaomi
Name Mi 4c
Codename xiaomi-libra
Released 2015
Category testing
Pre-built images no
Original software Android (MIUI)
Original version 5.1.1
postmarketOS kernel 3.10.107
Hardware
Chipset Qualcomm Snapdragon 808 (MSM8992)
CPU 4x1.4 GHz Cortex-A53 & 2x1.8 GHz Cortex-A57
GPU Adreno 418
Display 1080x1920 IPS
Storage 16/32 GB
Memory 2/3 GB
Architecture AArch64
Type Handset
Unixbench Whet/Dhry score 1926.2
Features
USB Networking
Works
Flashing
Works
Touchscreen
Works
Display
Works
WiFi
Works
FDE
Mainline
Partial
Battery
Works
3D Acceleration
Audio
Bluetooth
Camera
GPS
Mobile data
Internal storage
SMS
Calls
USB OTG
NFC
Sensors
Accelerometer
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


Mi 4c running gnome 3

Contributors

  • aostanin

Maintainer(s)

Users owning this device

  • Hastalavista (Notes: PMOS edge w/ downstream kernel, broken touchscreen, WiFi not working, wonky PMIC)
  • Netman (Notes: No battery)
  • Russanandres (Notes: MIUI v8)


Issues

  • (Gnome) Password request dialog covers OnBoard input
Demo of issue with Onboard

How to enter flash mode

Recovery mode

  • Turn the device off (or restart also works)
  • Hold Volume Up and Power button
  • Once you feel vibration and phone turns on, release Power button
  • Keep holding Volume Up until you get to recovery.

Flashing (Download, Fastboot) mode

  • Same as recovery, but this time hold the Volume Down and Power keys.

Installation

  • Install pmbootstrap first on your PC
  • zap & reinit pmbootstrap (pmbootstrap -y zap ; pmbootstrap init), choose xiaomi-ferrari as a device
  • proceed with installation as usual: reboot device to fastboot mode, then:
pmbootstrap install
pmbootstrap flasher flash_kernel
pmbootstrap flasher flash_rootfs

Mainline kernel

There is a close-to-mainline kernel fork featuring USB, screen via simplefb and basic core bringup. Find it here.


See also