[Honor 8 ROMs, Kernels, Recoveries, & Other Develop] hackslash:
Background:

So Huawei released the kernel sources for Honor 8 (FRD-L04) a couple days back and as I (@hackslash) and [MENTION=7354786]XePeleato[/MENTION] are always too excited to dig into what Huawei releases, we straight away downloaded the source code to see what (mess) Huawei has released this time. If some of you don't already know, Huawei sources are known for being:

A complete mess,

Broken

Missing few implementations and drivers (not always but take Honor 4C for example as for it they forgot to include WiFi and Modem implementations)

And I'm proud to add Honor 8 to the list of 'broken sources' too because as always Huawei love to make stupendous mistakes every time.

So what Huawei released for Honor 8

(all credits for fixing the source and making it compile successfully goes to [MENTION=7354786]XePeleato[/MENTION])

So [MENTION=7354786]XePeleato[/MENTION] downloaded the source and as always the kernel build failed. And the reason it failed was because it was zipped it a non case-sensitive OS. Now if you already don't know Linux treats 'abc.txt' and 'Abc.txt' as two different files whenever supported whereas Windows doesn't respects case sensitivity and would treat the above mentioned files as one same file. The kernel source code has files which are case-sensitive and thus zipping those files on a non case-sensitive OS would cause problems and issues as only one of that file will get zipped and the other for Windows never existed. Thanks to [MENTION=7354786]XePeleato[/MENTION] he fixed it and the kernel after it compiled successfully. We can't really argue much about it since it's their production kernel and that is what they have released. Apart from it, the kernel is filled with great examples of poor coding, nonsense use of functions and Chinese comments in the 'hisi' drivers (simply, hisilicon (chipset) specific implementations) thus ensuring you'll have a great time with the kernel.

To the main point

In the spirit of the Honor Hub program, we need to know what Huawei has released for Honor 8 and if the kernel source are complete (in a sense that everything on the end-user device such as RIL, WiFi, works). This would allow me and [MENTION=7354786]XePeleato[/MENTION] and many other people interested in the Honor Hub program to provide a better more constructive feedback. Hence we (@hackslash and [MENTION=7354786]XePeleato[/MENTION]) are releasing a compiled version of the source code together with the source code (hosted on Github) to facilitate the Honor Hub program and get a better picture of what we need from Huawei to ensure development for the Kirin platform.

So here is our small custom kernel for the Huawei Honor 8 (FRD-L04 and maybe other variants)

Please note that this kernel is not tested what so ever, and is being provided so that you can test it, fork the source, implement new stuff in the spirit of development. Our mission was to provide a kernel source which at least compiles successfully. We have added some new features, applied patches so it would be great if you could test the kernel and provide your feedback and any features which you would like to see.

Changelog

September 14, 2016

Intial Release

Added Thunderplug hotplug

Added Lionheart governor

Compiled using Linaro 4.9 toolchain (this will change in future)

Small optimizations (Frandom support, RWESM algorithms)

Updated kernel patches to 3.10.99

​

thanks to [MENTION=453495]JEANRIVERA[/MENTION] for the screenshot

See next post for downloads, source code and instructions on how to compile the kernel for yourself.