Huawei P10 Lite (huawei-warsaw)

Contributors

 * Ignapk

Maintainer(s)

 * Ignapk

How to enter flash mode
With power off, press power und volume-down at the same time, with the usb-cable plugged in.

How to flash
As Huawei changed the partition layout, there is no boot partition anymore. Instead there is a ramdisk and a seperate kernel partition. In order to create the correct images the following steps need to be done:


 * 1) Get mkbootimg and unpackbootimg i.e. from here
 * 2) You can extract the kernel-image and ramdisk from the created boot.img with unpackbootimg.
 * Use the extracted files in the following steps.
 * 1) Create ramdisk image:
 * 2) Create kernel image:
 * 3) Flash ramdisk and kernel with fastboot:
 * 4) Flash rootfs to sdcard to boot it
 * 1) Create kernel image:
 * 2) Flash ramdisk and kernel with fastboot:
 * 3) Flash rootfs to sdcard to boot it
 * 1) Flash rootfs to sdcard to boot it
 * 1) Flash rootfs to sdcard to boot it

About
OASES stands for Open Adaptive Security Extensions. Its a Tradmark of Baidu and seems to have something todo with adaptive kernel live-patching. For now there were no disadvantages from disabling it.

Location in menu
-> Device Drivers -> Huawei Platform Drivers -> Huawei platform drivers support (HUAWEI_PLATFORM [=y]) In Order to compile the kernel OASES had to be disabled.

Phosh on framebuffer
See https://wiki.postmarketos.org/wiki/User:Ollieparanoid/Run_wlroots_with_fbdev

Additional Info
The display brightness can be set by writing a value between 0 and 9960 to.