Jump to content

Xiaomi Mi 4c (xiaomi-libra)

From postmarketOS Wiki
Xiaomi Mi 4c
Mi 4c running weston
Mi 4c running weston
Manufacturer Xiaomi
Name Mi 4c
Codename xiaomi-libra
Released 2015
Type handset
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
Software
Original software Android (MIUI)
Original version 5.1.1
postmarketOS
Category testing
Pre-built images no
Mainline partial
postmarketOS kernel 3.10.107
Unixbench Whet/Dhry score 1926.2
Features
Flashing
Works
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
Works
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
No data
Audio
No data
Camera
No data
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
No data
GPS
No data
NFC
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
No data
USB OTG
No data
HDMI/DP
No data
Sensors
Accelerometer
No data
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data


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