Huawei Mediapad M5 pro (huawei-cameron)

Contributors

 * JohnBergago

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:
 * 1) Create kernel image:
 * 2) Flash ramdisk and kernel with fastboot:
 * 1) Flash ramdisk and kernel with fastboot:

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.

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

For now the backlight is completely dark when the system boots.

Links

 * Kernel Sources with adapted dtc tool to build in fakeroot of pmbootstrap
 * initial MR