Jump to content

Xiaomi Mi 5 (xiaomi-gemini): Difference between revisions

From postmarketOS Wiki
mNo edit summary
Maxnet (talk | contribs)
m Update GitLab Link
 
(44 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Infobox device
{{Infobox device
| manufacturer = Xiaomi
| manufacturer = Xiaomi
| name = Mi 5
| name = Mi 5
| codename = xiaomi-gemini
| codename = xiaomi-gemini
| image = File:xiaomi-gemini.jpg
| image = File:Xiaomi-Mi5-gemini-phosh-linux.jpg
| imagecaption = Xiaomi Mi5
| imagecaption = Xiaomi Mi5 and phosh on mainline kernel
| releaseyear = 2016
| releaseyear = 2016
| originalsoftware = Android 6 (marshmallow)
| originalsoftware = Android (MIUI)
| chipset = Qualcomm MSM8996 Snapdragon 820
| originalversion = 6.0
| cpu = Quad-core (2x1.8 GHz Kryo & 2x1.36 GHz Kryo) or Quad-core (2x2.15 GHz Kryo & 2x1.6 GHz Kryo)
| extendedversion = 8.0
| chipset = Qualcomm Snapdragon 820 (MSM8996)
| cpu = Quad-core (2x 1.8 GHz Kryo & 2x 1.36 GHz Kryo) or Quad-core (2x 2.15 GHz Kryo & 2x 1.6 GHz Kryo)
| gpu = Adreno 530
| gpu = Adreno 530
| storage = 32GB, 64GB or 128GB
| storage = 32/64/128 GB
| display = 1080x1920
| display = 1080x1920
| memory = 3GB or 4GB
| memory = 3/4 GB
| architecture = aarch64
| architecture = aarch64
| status_usbnet =  
| type = Handset
| status_usbnet = Y
| status_flashing = Y
| status_flashing = Y
| status_touch =
| status_touch = Y
| status_screen = Y
| status_screen = Y
| status_wifi =
| status_wifi = Y
| status_xwayland =
| status_xwayland = Y
| status_fde =
| status_fde = Y
| status_mainline =
| status_mainline = Y
| status_battery =  
| status_battery = P
| status_3d =
| status_3d = Y
| status_accel =
| status_accel = N
| status_audio =
| status_audio = P
| status_bluetooth =
| status_bluetooth = Y
| status_camera =
| status_camera = N
| status_gps =
| status_gps = N
| status_mobiledata =
| status_nfc = Y
| status_sms =
| status_mobiledata = P
| status_calls =
| status_otg = Y
| booting = Y
| status_sms = P
}}
| status_calls = P
| booting = yes
}}{{Based on SoC|Qualcomm_Snapdragon_820/821_(MSM8996)|Snapdragon 820}}
A nice and thin Xiaomi ex-flagship from 2016. Originally with Android 6, it was updated up to Android 8. It is one of the official LineageOS supported devices, making it a nice choice for developers, and performs very well in spite of its 3GB of RAM.


== Contributors ==
== Contributors ==
* pinoaffe
* R


== Maintainer(s) ==
== Maintainer(s) ==
* pinoaffe
* R
* Tooniis
 
== Device owners ==
{{Device owners}}


== How to enter flash mode ==
== How to enter flash mode ==
Either run `adb reboot bootloader` while the phone is booted into android,
Either run `adb reboot bootloader` while the phone is booted in Android,
or turn the device off and hold the power button and the volume down button.
or turn the device off and hold the power button and the volume down button.
Your device should now be in so-called "fastboot" mode.
Your device should now be in "fastboot" mode.


== Installation ==
== Installation ==
<!-- add more sections below as necessary, e.g. Wifi, photos, ... -->
<!-- add more sections below as necessary, e.g. Wifi, photos, ... -->
Standard procedure, boot to Fastboot and then flash boot.img and the rootfs
== What's missing ==
In general, the device works very nicely. But some relevant things are to be noticed:
* Battery does not charge (i.e., needs reboot to recovery mode), and status (%) is not shown yet.
* Wi-Fi works, but is unstable and reception is bad
* Audio works only through the headphone jack, and only if SLPI is disabled. The speaker needs a codec which isn't mainlined yet
* Clearly, no fingerprint sensor or support for capacitive keys (those around the home button)
* Sensors, including the accelerometers, are not enabled yet. This is due to the odd Qualcomm SLPI subsystem
* Modem and GPS can be get to work only by using significant hacks and patchwork around ModemManager and ofono. This will take a while to be solved
* Camera. This device uses a Sony IMX298 (the same as the Oneplus 3/3T) as back camera and an OmniVision OV4688 as front camera.
== Mainline ==
Works and pending upstreaming. Essentially we are in the same state as [[Xiaomi Mi Note 2 (xiaomi-scorpio)]].
== Charging ==
As there is no charger driver yet, you need to boot into recovery mode (TWRP or similar) to charge the phone. This is a known limitation of all MSM8996 devices, which will be hopefully fixed soon.


== See also ==
== See also ==
* [https://source.codeaurora.org/quic/la/kernel/lk/tree/?h=lk.lnx.1.0.r5-rel Latest lk version for msm8996]
* [https://source.codeaurora.org/quic/la/kernel/lk/tree/?h=lk.lnx.1.0.r5-rel Latest kernel version for msm8996] '''MIGHT BE FOUND AT [https://git.codelinaro.org/explore?sort=latest_activity_desc&name=quic&sort=latest_activity_desc git.codelinaro.org]'''
* [https://gitlab.com/pinoaffe/pmaports fork of the aports repo with APKBUILDs for xiaomi-gemini]
* [https://gitlab.com/msm8996-mainline/linux Mainline kernel tree]
<!--
* [https://deviceinfohw.ru/devices/item.php?item=93054 Device Mi 5 - deviceinfohw.ru]
Link to related gitlab issues or merge requests like the following (replace CHANGEME with the ID, e.g. 1234):
* {{MR|CHANGEME}} Initial merge request
* {{issue|CHANGEME}} Some related issue
You can also add normal web links:
* [https://redmine.replicant.us/projects/replicant/wiki/GalaxyS2I9100 Replicant wiki page]
-->

Latest revision as of 06:46, 18 February 2025

Xiaomi Mi 5
Xiaomi Mi5 and phosh on mainline kernel
Xiaomi Mi5 and phosh on mainline kernel
Manufacturer Xiaomi
Name Mi 5
Codename xiaomi-gemini
Released 2016
Type handset
Hardware
Chipset Qualcomm Snapdragon 820 (MSM8996)
CPU Quad-core (2x 1.8 GHz Kryo & 2x 1.36 GHz Kryo) or Quad-core (2x 2.15 GHz Kryo & 2x 1.6 GHz Kryo)
GPU Adreno 530
Display 1080x1920
Storage 32/64/128 GB
Memory 3/4 GB
Architecture aarch64
Software
Original software Android (MIUI)
Original version 6.0
Extended version 8.0
postmarketOS
Category testing
Pre-built images no
Mainline yes
Features
Flashing
Works
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
Partial
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
Partial
Camera
Broken
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
Works
GPS
Broken
NFC
Works
Modem
Calls
Partial
SMS
Partial
Mobile data
Partial
Miscellaneous
FDE
Works
USB OTG
Works
HDMI/DP
No data
Sensors
Accelerometer
Broken
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data

A nice and thin Xiaomi ex-flagship from 2016. Originally with Android 6, it was updated up to Android 8. It is one of the official LineageOS supported devices, making it a nice choice for developers, and performs very well in spite of its 3GB of RAM.

Contributors

  • R

Maintainer(s)

  • R
  • Tooniis

Device owners


How to enter flash mode

Either run `adb reboot bootloader` while the phone is booted in Android, or turn the device off and hold the power button and the volume down button. Your device should now be in "fastboot" mode.

Installation

Standard procedure, boot to Fastboot and then flash boot.img and the rootfs

What's missing

In general, the device works very nicely. But some relevant things are to be noticed:

  • Battery does not charge (i.e., needs reboot to recovery mode), and status (%) is not shown yet.
  • Wi-Fi works, but is unstable and reception is bad
  • Audio works only through the headphone jack, and only if SLPI is disabled. The speaker needs a codec which isn't mainlined yet
  • Clearly, no fingerprint sensor or support for capacitive keys (those around the home button)
  • Sensors, including the accelerometers, are not enabled yet. This is due to the odd Qualcomm SLPI subsystem
  • Modem and GPS can be get to work only by using significant hacks and patchwork around ModemManager and ofono. This will take a while to be solved
  • Camera. This device uses a Sony IMX298 (the same as the Oneplus 3/3T) as back camera and an OmniVision OV4688 as front camera.

Mainline

Works and pending upstreaming. Essentially we are in the same state as Xiaomi Mi Note 2 (xiaomi-scorpio).


Charging

As there is no charger driver yet, you need to boot into recovery mode (TWRP or similar) to charge the phone. This is a known limitation of all MSM8996 devices, which will be hopefully fixed soon.

See also