yashsingh1/xdaforums huggingface dataset:
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Wow I never had any hope that they will release it... thx I will try that one.

... Hm I have some trouble integrating this one into the build environment. For the old kernel it was just a wrong path but here it comes to a identical point compared to the old kernel where it fails "~/kernel/drivers/vendor/hisi/modem/drv/acore/bionic/libc/Android.mk:634: *** arm64 not supported"

This wansn't an issue before. Couldn't find out so far where it includes this makefile.

... Hm managed to integrate it... let's see... It seems my device doesn't really like it kernel crashes.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] wbrambley:
Does a diff on the two kernel configs show anything major?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Tons of minor changes but as far as I saw only in the code not the makefiles. I can replace the whole modem folder and I still get the same message. I can remove the bionic/lib folder from the kernel source and build it just fine. But that's probably only because cyanogenmod already has those modules defined.

However I shouldn't have to remove this folder. The old kernel had it as well without any change in this condition which produces the error and it built fine.

Building as mentioned in the readme is fine but that's not the way it is supposed to be built. It must integrate in the NDK.

Edit... hm The 6.0 kernel misses an Android.mk in the root. It builds fine by using the old Android.mk. However I can't boot it up with this kernel. I'm not sure what's the best way to continue...

Without debugging possibilities it could take ages to find out what's wrong. I'm probably faster by fixing the existing kernel.

[MENTION=6901118]erayrafet[/MENTION] are you sure that this kernel is for the GRA-L09? In theory it should boot fine. At least the build is.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] wbrambley:
Silly question, any differnce between using Android.mk and AndroidKernel.mk in the kernel root? I'm guessing not.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
There is no Android*.mk in the root at all in the new kernel. The old had a working one. The Makefile itself isn't different compared to the old when it comes to what it does. The included linearo kernel looks like their base from which they started.

Well at least I can use parts of the kernelcode to update huawei specific drivers and merge the upstream kernel patches when it's required. The kernelversion itself should be enough for Android 6.0 with some minor patches I already did.... I did this for framebuffer and again kernel space gpu driver sleep of death still exists. Maybe I should look into their powermanagement kernel source.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] erayrafet:
Here is a screenshot from their website from July. I can't acces Huawei support website now. It gives an error.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
GRA stands for GRACE and it doesn't seem that there are many devices. But still a few. Probably the kernel isn't espescially made for the P8. I tried using the old kernel config as well but the result is the same. It doesn't work with this one. But it seems to work fine when I take out a few proprietary parts and use them in the old kernel. A.e. Framebuffer and GPU wasn't that hard to compile the new version.

But well as I said that did not resolved the SOD problem.

By looking into the new source - It seems that they are more generic. At least some defines are different where I think they were especially enabled for the P8 in the old kernel.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I'm running a bit out of time at the moment because I have some different projects which have priority over this. But I won't stop it. The progress may go slow a little bit until I get more time again. I will have a bit more time for sure in 2-3 months.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
The sleep of death issue is gone! The sourcecode for the mali kernel driver v8 has some new build options. When I copied the gpu kernel driver from the Mate8 I did not noticed them or I did but could not know that they are required.

I took the kernelconfig from the new kernel which contains the same gpu driver version which I took from the Mate 8, sorted them alphabetically and compared them. I noticed these two:

CONFIG_MALI_PM_DEMAND=y

CONFIG_MALI_TIMELINE_DISABLED=y

Well did not tried that yet. The code affected by this is located in the gpu backend pm (powermanagement) policy. Now it is fine :) I will make a build to publish..... could take a while. Then I will fix the rest of the parts over time.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] user_x25:
Oh they're good news... Thanks dev!

Inviato dal mio HUAWEI GRA-L09 utilizzando Tapatalk
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Will you release your updated source trees on github?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] javitraver:
thank you very much!!!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
It's all on github. Sometimes this is a bit delayed since it is WIP and I dont commit everything just to revert it.

When I publish the build it will be updated to this state. The changes are up but the local manifest needs some cleanup.

https://github.com/Nexolight/gra_l09_local_manifests

You should be able to find the device tree from there^^ With the manifest one should be able to just repo sync and build it out of the box ( ehh don't think it will work on the first try^^ ). That's why it's there.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
*kill me pls* When I was preparing the clean state for git and build... I managed to break the Hotspot again with one of the last few commits or minor changes.

I usually don't make clean builds for testing purposes that makes it a bit hard to find the cause.

As I'm running out oft time this will be a long night. I hope I can present the first build soon.

Edit: fixed it somehow I was using the vendor wpa_supplicant while I had uncommented it in the proprietary files. When I did the clean build the cm one was used. I'm building the image now... Is it normal that userdebug takes so much more time... Building since ~3hrs

Edit2: Had again wifi problems with the new userdebug build (I usually do eng). It seems fine now I'm uploading it.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Upload done.... Now spam me with "it's not working" messages. I'm crossing my fingers....

But hey I'd prefer to make a break. As I said I don't have time forever during my work and other stuff has higher priority. When I continue like now I will be soon completely out of sleep. I get more time in ~2 months again.

Some crashes may be normal since I did not yet included all build packages in the device_hwgra.mk. A.e. backgrounds. Just use own files or download something from play store.

It seems like userdebug and eng builds have some significant differences and this is the first userdebug build. At the first glance that's the only thing I noticed so far but there might be more.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] bedobela:
Ok, so I would be able to test but just have a few questions before I dive in

Will I be able to access the SD card if I flash the recovery provided?

Is it possible to just back up the current ROM and restore it in case I need the hone. I already have another daily driver, this is a backup phone for me which I wanted to sell until you started developing cm...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
SD card doesn't work yet. The issue may be simple but didn't got time for that yet.

Backup should be fine as long as it includes the partitions you flash. You can always flash a recovery with fastboot. Make a backup with a recovery where you have the img and you know that it works (the backups from recoverys aren't cross compatible). Then you can always flash back this recovery and restore the backup. There's also an option to make backups with dd directly from the partition ( I did this for me for every partition even the untouched).

By flashing system.img and boot.img (that's all you should need) you only override system and boot partition. You can keep the old recovery as it's standalone. So only these 2 partitions are touched and they are available within any update.app from huawei.

Oh sry I missunderstood that. The recovery can access USB, Internal storage and SDcard just fine. Only the system doesn't like the SDcard. But when you need another recovery just flash it back "sudo fastboot flash recovery recoveryofyourchoice.img. That should always work.

I'd not really recommend you to flash the recovery.img from me when you're not sure what you do. All who tested it reported that it doesn't work for them so far.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] bedobela:
Thanks for the answer. I will make a backup of the current ROM with my current recovery then and flash system.img and boot.img through fastboot tomorrow. It is late here so I won't risk messing anything up. You should get some sleep too :)

BTW, thanks for saving this phone... I was really disappointed until now because even though it is one of the most beautiful phones, the software was not on par in my opinion. That is why I went for a nexus...
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Dito the lack of any ROM would have destroyed this phone.

Your plan should work just fine :)

Don't forget to wipe caches and probably data.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Shamako:
Hey, I flashed this on the GRA-UL00 (system.img and boot.img, already had working TWRP installed from before), wiped cache and data & factory reset. Does not boot - Huawei logo boot loop. Perhaps some incompatibility?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
It's for GRA-L09 !!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Shamako:
Yes I know but they are almost the same, only modem difference. Dev said that it could probably work on UL00, but this isn't booting at all.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
^ This.

It may have a different kernel and I have no idea what else is different (probably just the modem).

Hey don't take that as a "it's like this" statement I never did anything with this device. Just noticed that the ROM and kernel hat configurations and settings for the UL00 as well.

I'm not going to support it directly but you could try to compile the kernel for GRA-UL00, apply the GPU driver patches when it's not for 6.0 and replace it in the boot.img ^^ good luck with that. Forking the project and modify it for UL00 is always an option.

Had anyone success with the images? I just remember that "recovery did not boot" thing where it did for me. The kernel there is the same altough the ramdisk is different. When it doesn't work for all GRA-L09 then there must be some hidden difference (that's why I cross my fingers). I flashed recovery.img, boot.img and system.img. All of them work for my GRA-L09 as expected. I bought mine in Switzerland from Salt aka Orange.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] user_x25:
I flashed on GRA-L09 but huawei logo bootloop. Still trying to get it work.

Inviato dal mio SM-A500FU utilizzando Tapatalk
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
When the huawei logo loops then the kernel doesn't come up and you usually have no possibility to debug this or get any logs. You had the same problem with recovery didn't you?

The only thing which comes in mind is that something of recovery and recovery2 is blocking the boot. That's impossible to my point of understanding but the only obvious difference as I have overriden both of those partitions. Well or there are differences among the GRA-L09's (Single SIM variant)

[MENTION=6233909]AD2076[/MENTION] has forked the git project to help with some stuff.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
I am gonna flash boot and system images in a while.

I'll keep the already working recovery (twrp3 from hrt). Will report back and eventually write a mini howto to get your rom up and running.

p.s. can I link the post with the recovery here?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Sure^^
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
About the differences... That's what's written on the back bottom of my device:

Huawei Technologies CO, LTD, IC:6369A-GRAL09

Model: GRA-L09 Made in China FCC ID: QISGRA-L09

Well and the kernel which seems to fail for some of you is the one downloadable from the Huawei website (5.0) with some minor patches.

One could try to compile the latest kernel which was broken for me or even use the stock kernel from the 6.0 rom.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Same here... Did you started from stock LP or MM?

I already was on MM when I tried your recovery
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] user_x25:
Yes, but then I flashed another TWRP and I reflashed the stock rom.

Inviato dal mio SM-A500FU utilizzando Tapatalk
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I started from LP

... Hm well The update.app contained different partitions as well which I never touched. That could explain why the new kernel fails for me. But then the new kernel should work for you... I compile it and upload a boot.img and recovery.img with this one. I just can't test that one^^. Maybe try to downgrade to stock LP and then flash my images as well.

Edit: I pushed the NDK buildable 6.0 kernel as a new branch just for everyone who forks the project. Now I'm building recovery and bootpartition with the new one again. It could do the trick for stock MM when it's what I suspect. Then my images should also work fine for everyone who still had LP.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
With the official 6.0 kernel (May work when you started with MM aka android 6.0):

boot.img (4620333a32807f9a203a7265e227e6fa)

recovery.img (434a3d22ce53be1ba26554b503ddfbef)

I can't test them since this kernelbase doesn't work for me. But exactly this could be the LP/MM base difference. In case this works I will have no idea what's up with the modem/RIL (It may work better than for me or it may work not at all). I suspect especially that the partitions which contain the modem firmware are responsible for this.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
I am gonna try those new images after lunch :P

I got a bootloop with LP based ones.

BTW backup/restore cycle of the stock rom worked flawlessly :) I can test without any fear now
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
When they do not work we may try to replace the kernel in these images with the stock kernel which comes from the 6.0 UPDATE.APP. I didn't changed anything in the config from the 5.0 kernel except the stuff which I patched into it and is already there in the 6.0 kenel. So the stock kernel should work in theory.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
I'll try my best if have some free time. ATM I am still trying to set up the build environment on OSX, I guess I'll switch to Linux if I can't get it to work soon.

---------- Post added at 11:23 AM ---------- Previous post was at 11:21 AM ----------

Will try both, I have boot.img from B380 always handy (played with Magisk, suhide and some other nasty stuff :P)
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Hm when building the rom I took the vendor files and stuff from the boot partition from this one "Huawei P8 Firmware (GRA-L09, Android 6.0, EMUI4.0, C432B321, Nordic European)" But that shouldn't be key difference.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
I may be wrong but B321 should be MM

btw B380 (leaked) works a lot better
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] user_x25:
With B380 boot image it boots.

Inviato dal mio SM-A500FU utilizzando Tapatalk

---------- Post added at 12:35 PM ---------- Previous post was at 12:35 PM ----------

Yes, B321 is MM

Inviato dal mio SM-A500FU utilizzando Tapatalk
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
It is. But I did not used it at any time. I just extracted the vendor files from there for building the rom. Never used the rom itself on my P8.

With the second upload or the original bootimage?
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Shamako:
Can confirm OP's new boot/recovery image flashed results in working boot.

On my P8 UL00 everything that works for L09 seems to be working here. Haven't tried SIM/RIL yet because this isn't my main phone. It does recognize that there is no SIM inserted, may be a good sign.

Very smooth and quick. Incredible work! :o
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Lol really?

f*** off huawei

Thx very much for the report. nice to hear that it runs on the UL00. Yes the sim is reconized but I think you only have the settings for the first sim. There's a file... phone.props in the root of the original rom. It contains different lines for different modems. by trying a few of those I had the settings for the 2nd sim slot displayed. You may have luck by just finding the right set and put the settings of them in the build.props in order to get dualsim working.

I'd like to know if the signal is reported correctly for anyone who uses the 2'nd boot.img I provided. If so the issue with the signal is just because my modem firmware from 5.0, the ril files from 6.0 and the kernel from 5.0 have trouble working together.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Booting now with your boot.img (MM). Still my old recovery wich now has the "have to wait screen timeout bug" :S

Will try your recovery to see if it is solved.

I have to switch my build environment to linux before I can build, test and if my build process work try to help you in developement.

CM is booting on my P8!!! So excited :D

Edit: after flashing boot and system images in fastboot I rebooted the phone in recovery, flashed opengapps-nano and then booted the system for the first time. Setup works, 2 factor authentication included (sms received on P8 itself)

Edit2: it tells my Samsung SD is not supported and ask for formatting. I am gonna back it up and try. Hope it will work
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Interesting that you now have this bug 0o. But that helps a lot to find out what the cause is. Apparently the recovery accesses something on the system image (I can't imagine it does so for boot) which causes this. My recovery won't resolve this. I had this bug from the very beginning and just got no time to fix it.

Would you mind to open a bug with this notice?

https://github.com/Nexolight/gra_l09_device_huawei_gra_l09

I will keep it in mind but I'm busy.

Edit: It asks you for formating the SDcard? Oh well... Mine wasn't even reconized. This is still listed as not working btw.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Shamako:
Actually i'm content with only one sim working because I don't need the dual sim function! Also, my Sandisk sdcard was also recognized and said it was corrupt. Formatting doesn't work, but like you said it's probably having trouble mounting it due to vold crap. Anyways doesn't matter. I'll confirm if SIM1 working on my UL00 right now.

EDIT: SIM1 working great on UL00!
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Recovery refers to surfaceflinger when compiling.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
What about signal strenght. especially on LTE connections. I have eighter reported zero signal or 100% signal while it is connected and the speed is as it should be for the current location.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] Shamako:
Currently getting a little less than half signal, similar to my S6 with same sim. Don't have a data package so can't test LTE
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
I will wait until someone else reports that it displays something else. I guess by then I will update my partitions and use the new modem image with the new kernel.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Seems well reported. I also received a call, audio was very good (switched to speaker too with no problems) Proximity doesn't work, I had to wake the screen with the power button.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
Sensors do generally not work on this build and locally I only got the accelerometer/orientation to run so far. I Forgot to include that partial fix in the build.

I believe that the RIL works fine but I'd like to know if the signal is reported somehow strange. As I said for me I always get 2 bars for < LTE and for LTE 0 or full signals.... No matter how good the connection really is.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Signal isn't reported properly :(

I am gonna restore the stock backup, it's my daily driver...

But I'll go on testing and soon (hopefully) fixing too
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
As I told it is not reported correctly but how should I explain that. You still have a signal that good as it should be. When you usually have 2 bars and 0 bars are reported you still have 2 bars in practice... Otherwise I don't think I could download with 10 mb/s with zero bars and the minimal signal reported.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
[MENTION=6290750]TachyonGun[/MENTION] can you please have a look here and, eventually, feature this thread?

Thank you
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] AD2076:
Here are some directions to install CM-13.0 on HUAWEI GRA-L09​

Be sure a MM stock firmware is installed on your phone.

Be sure you know what you are doing, you know hot to use adb and fastboot, you know hot to unbrick your device.

Download all the files you need and keep them at hand.

Copy gapps into sd card (will work in recovery) or into Internal Storage or a OTG usb. I used an OTG usb

unlock bootloader

install official twrp linked here.

boot into twrp

make a full backup of you current rom

wipe system, dalvik, cache and data partitions. Do not wipe internal storage and sd card. Be aware wipe can be slow

reboot into bootloader either from twrp or using adb command

adb reboot bootloader

flash boot.img

fastboot flash boot boot.img

and system.img

fastboot flash system system.img

(if the second command doesn't give any output, stop it with CTRL-C, disconnect and reconnect the usb cable, type the command again) this works for me and usually happens when flashing from OSX, may not work for you. I take no responsibility if you damage your device.

reboot to recovery (disconnect cable and reboot using Vol+ and power)

install nano open gapps ARM64 - 6.0

reboot into system

enjoy

please do not report obvious bugs (have a look at OP), it's still WIP and most of the bugs and/or don't working functions/apps are well known to dev.

Flash at your own risk.

Following carefully those steps I was able to install CM, try it and restore the previous installed stock ROM.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] bedobela:
The MM version worked for me too. Nice to see that it runs pretty smooth. Thanks for the development again.
[Huawei P8 ROMs, Kernels, Recoveries, & Other Devel] nexolight:
[MENTION=6233909]AD2076[/MENTION] thx for the step by step for everyone. I linked it in the initial post. There's just one thing. I cannot really support the new kernel as long as I'm not using it by myself. Just keep it in mind. I will modify both of them when I make changes and will probably switch soon to the new one (now I know why it failed for me ^^).

When it comes to more heavy kernel modifications I might drop updates for the older version.