Huawei Honor 5X (huawei-kiwi)

What works
There are ~23 variants of this device. Yours might not be fully supported yet


 * Buttons


 * Display ( and   is support now,but , ,  is not support now)


 * WIFI/Bluetooth


 * SD Card slot


 * Touch


 * Magnetometer


 * Ambient Light/Proximity Sensor


 * Audio / Microphone


 * Vibrator


 * Hall effect sensor


 * Notification LED


 * Accelerometer


 * Full disk encryption (with the supported panel; hardware acceleration could probably be added)



What does NOT work

 * AUO,BOE,TRULY panel can't work now

Add panel driver in kerneldir/drivers/gpu/drm/panel/msm8916-generated is useless of enable auo panel,the reason is AUO panel has ESD
 * Battery fuel gauge

Can be found here https://gitlab.com/msm8939-mainline/linux/-/blob/v5.18-msm8916+msm8939-v2/arch/arm64/boot/dts/qcom/msm8939-huawei-kiwi.dts#L108-124 Uncertain whether the values are correct.


 * Torch/Flash missing

Probably requires rmt_oeminfo and other services. Similar error described in Google_Nexus_6P_(huawei-angler) and https://github.com/msm8916-mainline/linux/pull/192, help appreciated.
 * Modem starts and is detected, but every ~40s it crashes with following error. Should work just like any other msm8916 device.

dmesg error [  91.795192] qcom-q6v5-mss 4080000.remoteproc: fatal error received: dog.c:1503:Watchdog detects stalled initialization [  91.795231] remoteproc remoteproc0: crash detected in 4080000.remoteproc: type fatal error [  91.795322] remoteproc remoteproc0: handling crash #1 in 4080000.remoteproc [  91.795350] remoteproc remoteproc0: recovering 4080000.remoteproc [  91.910476] snd-malloc: invalid device type 0 [  93.595751] qcom-wcnss-pil a204000.remoteproc: unexpected response to sysmon event [  93.595764] remoteproc remoteproc0: stopped remote processor 4080000.remoteproc

Using Xiaomi_Mi_4i_(xiaomi-ferrari)s modem firmware prevents this crash. And with User:TravMurav/Dual-Sim_QMI_draft the sim card can be unlocked. But getting the modem online does not work.


 * GPS: Probably requires modem to run and config like in https://github.com/msm8916-mainline/linux/pull/158

How to enter flash mode
Hold +  at the same time.

Installation

 * 1) Unlock the bootloader. See Bootloader
 * 2) Install lk2nd. Although Huawei already provides a Fastboot interface, lk2nd contains various quirks for booting mainline.
 * 3) Please follow the Installation guide. Enable nonfree firmware for WIFI/BT/GPU
 * 4) Follow the steps displayed at the end of output the previous command to finally flash postmarketOS.

Photos




Links

 * Unmaintained downstream package
 * TWRP image
 * TWRP image