yashsingh1/xdaforums huggingface dataset:
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Hulzer:
mkbootimg.exe --kernel Image*.gz --base 0x0 --cmdline "loglevel=4 initcall_debug=n page_tracker=on unmovable_isolate1=2:192M,3:224M,4:256M printktimer=0xfff0a000,0x534,0x538 enforcing=0 androidboot.selinux=permissive buildvariant=user" --tags_offset 0x07A00000 --kernel_offset 0x00080000 --ramdisk_offset 0x07c00000 --os_version 9.0.0 --os_patch_level %1 --output KERNEL_%1.img
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
I just test it. It's not booting indeed, LoL

am keen to try to build from source, but i gonna need to re-set up my linux environment first :silly:

btw
[MENTION=268751]Hulzer[/MENTION]

do you mind to share your current image.gz for testing on my device ?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Hulzer:
Here my current build: https://drive.google.com/file/d/1zd87cf66thLJbPZmqpxKJZdnv-EP082V/view?usp=sharing

It's built for CLT-L29C432 B163, Security patch 2018-11.

It's the stock kernel + WireGuard support

Just flash it with

fastboot flash kernel ....
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
tried to build from source but it fail and give error

Makefile152 recipe for target submake failed

any idea how to fix this ?

---------- Post added at 05:30 PM ---------- Previous post was at 05:15 PM ----------

saw this late,

will try now

EDIT : it's bootlooping, now thats weird. May i know your model and build number [MENTION=268751]Hulzer[/MENTION] ? Am on CLT29C636 9.0.168 Desember 2018 security patch
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Hulzer:
It's built for CLT-L29C432 B163, Security patch 2018-11
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
ah, i see,i think the security patch is mismatch with my current system

is it possible if you share the Image.gz instead ? I'll try to patch it for my security version (2018-12)
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Hulzer:
https://drive.google.com/open?id=1QLZZ7xgrdaE3xzO9uDiWPqxHpkVn2V8w
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
man try this is evira builded for your security patch

https://www.androidfilehost.com/?fid=11410963190603902670
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
Thx. Will try tmrw, am away from pc already :D
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] bobaoapae:
Can you make build for security path January-2019?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
Sure but now i am at work tomorrow i add image for january security
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
just got chance to try your file,

unfortunately it stuck on "Device is booting"

btw, FYR stock kernel for C636 9.0.0.168 state the version is 4.9.97

are you using 4.4 or 4.9 when upstreaming ?

am keen to build from source myself, but i can't seems to find the cause of makefile error i mentioned in the previous page, seems like my source has problem,

may i know from which link you download your EMUI 9 kernel source code ?

EDIT : I redownload source code. now it compiling fine. I will see whether it boot or not.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] yavuzgurkan:
Hello can i use with mate 10 pro?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
after trying to compile from my own source, it always fail in one or another lines, even after start clean. (i re set up linux, compiler, redownload source and all)

this source code is kinda a mess i guess. so many warning, :silly:

do you by any chance already uploaded your code to github ? am curious whether it can successfully compiled if am cloning your source,

btw,

so far error i get is mostly due to recipe failed for drivers, followed by sub make recipe fail.

in your case, you said you need to type make command twice,

which make command did you exactly repeat ?

i build by doing this command

export ARCH=arm64 && SUBARCH=arm64

export CROSS_COMPILE=path to my GCC

make O=output clean

make O=output mrproper

make O=output merge_kirin970_defconfig

make O=output -j8
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Hulzer:
I repeated the last command

make O=output -j8
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] bstiti:
I updated to latest emui 9 this morning, flashed your kernel, flashed your ramdisk, btw its wrong command, after that my phone did not boot anymore....
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Kimas90:
updated to 195 today. now i wanted to flash via fastboot flash kernel this kernel.

now i got bootloop.

erecovery cant recover my phone.

what can i do?

---------- Post added at 04:21 PM ---------- Previous post was at 04:16 PM ----------

i got a L29C432.

cant flash twrp also
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
this is for oreo. of course it wont boot.

flash back your stock kernel using fastboot

if you dont have your stock kernel, extract it first from stock firmware using huawei update extractor app
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] kessaras:
what is that ? https://github.com/EviraKernel/EviraP20Pro/commit/6d7f725ecdfe46a307e95916dfbdf4e880828209

why did you name it bloeffa ?

commit with git cherry-pick -e , do what you do and then git commit or git commit --amend, to keep original author.

EDIT:

omg, amateur.

thats not how you upstream https://github.com/EviraKernel/EviraP20Pro/commit/8f11943884cddb557207bc1c52cff353901b2781

what about everything else ? don't just change the kernel version to fake its 4.9.150...

here:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/?h=v4.9.153

1 way is to cherry-pick everything you see since 4.9.97.

And another way is to make a merge of 4.9.98+++ until you get to 4.9.150.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] djparent:
If it's for Oreo why does the OP title state EMUI 9? Gonna confuse a lot of people lol
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
wot,

i didnt even notice the thread title was changed to EMUI 9 already :eek:

now i also confused
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] olygopoly:
does this work with emui 9.0 ? if it does what is the difference with stock kernel with this one
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] JF-GINO:
Im also confused, I thought this was the tread for the 8.1 Kernel.

Shouldnt Emui 9 have its own thread? Also wondering why the previous 8.1 kernels are now missing??

What if we wanted to keep using Emui 8.1?

Im personally not a fan of Emui 9.

Am I now in the 'not'-cool zone? LOL!

Just think this thread should have been left alone for emui 8
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] kessaras:
First of all show little respect.

He may did some mistakes and I pointed there but he doesn't deserve these words.

Please delete that post ... It's up to him to fix his mistakes and learn. Never post like that and ofc not caps. It's not like he did any crime. He will learn.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] SynisterWolf:
Lite thread cleaning.

As mentioned before. There is no need to get upset with someone who is learning to develop. Everyone starts somewhere. If you dont like how this kernel works then dont use it. If you dont like this developer style then find someone else? If you feel like helping teach a developer, you must do it with the utmost respect.

Thank you for your understanding

Wolf
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] bstiti:
It's a just a fact that this kernel does not work with the latest .195 Emui9 rom.

Its fact that there is no information about that in this thread, i test it and first time, my phone does not boot anymore, twrp + erecovery does not work anymore too

i thought, okay no problem, my mistake.... than i flashed it a second time, my phone does not boot... i thougt..hmmm whats wrong...?

at the third time i flashed this kernel MY PHONE DOES NOT BOOT!

It took me about 2 hours to get the phone to run, without erecovery! ..the stock kernel he uploaded to this thread does not work with .195 too!

The only mode i could boot without any problems was Fastboot, and if i does not have the know-how of about 10 years of flashing-stuff, maybe i would struggle with getting my phone back to stock/boot!

So he published a Kernel without any information about version that will softbrick my device.

btw it was not a bootloop, i had to fight with: Phone boot to yellow text, than huawei logo than freeze and than display turns to black, same while try to boot to recovery!

yes u r right, he can make mistakes and he has to learn but other people here should be warned cause actually this Kernel does not work and it will clearly softbrick your device if u r on latest version of emui9.

This is a FACT!

---------- Post added at 05:03 PM ---------- Previous post was at 04:57 PM ----------

Its not the Point that i dont like how this Kernel work, its the fact that this kernel softbrick devices. It does not work with the latest stock emui9. Thats the point, I think this Thread could need an update like ''out of date'' other users should be warned if he does not give any information. This is simply and clear.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] SynisterWolf:
You are the one who's responsible for flashing software on your device. If you aren't comfortable with it. Then don't flash. Period.

XDA isn't a place to make your phone "cool". It's a place to share work and learn to grow on your coding skills.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] bstiti:
I have had the same problem.....dont worry u have to boot to fastboot and flash the latest stock kernel, i uploaded the stock one for u. Its for C432 than boot to fastboot, flash kernel via adb and restart your phone...

here u go: https://drive.google.com/drive/folders/1fFBRuyPcHIeVNTaaGxUlqxv29e4tMxFt?usp=sharing

---------- Post added at 05:18 PM ---------- Previous post was at 05:13 PM ----------

I understand and i know and i dont tell him its his fault.... its my own responsibility, but he does not react, check out the thread, im not the only one who struggle with this kernel. There is no reaction to any kind of critic and no information, just ''evira for emui9'' so people with emui 9 flash it and will softbrick their device....
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] SynisterWolf:
Submit a logcat or bug report and wait for the developer to respond. you don't need to post all hostal like which cause issues for everyone else. Now that we successfully derailed this thread. Talk back and forth needs to stop. You can PM me if you want to continue but for now this thread needs to get back on topic so no more of this.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] bvannier:
Good morning from an old man...

Just for info, the one for 8.1 rom was absolutly fabulous!

Just wait for the one working for.195.

I am quite sure it will be perfect.

Please, [MENTION=1385016]resurrect[/MENTION], let us know and keep on.

Kindly yours
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
Sorry all but im at work and not see all message of this thread Pls moderator close this thread becouse i stop development for p20 pro so not test it kernel and not have device to test it i say this so Pls closed all
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] matt4321:
Thread closed as per OP request!

Matt

Senior Moderator
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
Yes maybe next version when i have time to spent add another tips i do all in my free time XD
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] enderffx:
You're da man!

THANK YOU, playing with it now on L29 !

after flashing all seems to work fine, but when i enter root shell and type "getenforce" it still says "Enforced", do i need a switch app to get permissive mode or did i do or understand something wrong (i am a noob, i just know i need permissive mode for some Xposed module i want to use).

Greetings,

Ender
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] dlads:
[MENTION=1385016]resurrect[/MENTION]

Nice one on making a kernel for the Pro, sorely needed it.

Think the OP may need a bit more clarity.

Also people can flash several different types of ROMs now.

EMUI

Treble

Berkeley ROMs

Can flash and see but it'd be nice to know to save having to restore or reflash back.

Appreciate your work man.

Cheers.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
Yep i find same bug and i fixi it in new version posted 1 minute ago :cool::cool::cool:
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
I test this kernel on EMUI not post for wath emui treble ecc becouse phone born with emui so i test it on offcial firmare
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] enderffx:
Its funny :) Great that i have not just been dumb ;)

Have a great day,

Ender
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] dlads:
Cheers

As it's systemless I'll test it on Berkeley ROMs. May or may not test on Treble.

Have you tried it on pie?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
No man i test only with official if any user test it on another rom and tell me work i edit post with working test it rom :good:
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Ereniemis:
Hello, thank you very much for this.

I don't know anything about kernel creating, but, could you somehow, maybe, enable "advanced charging control support" so the Magci Charging Switch (MCS) would work?

I don't know if you are aware of it (I used to use the MCS on Nexus 6P it's used to stop charging your phone at specific % of charge and restart at some other point. Like stop at 90% and restart at 85% and so on and the MCS is awesome!) https://xdaforums.com/apps/magisk/module-magic-charging-switch-cs-v2017-9-t3668427

Thank you very much!
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] enderffx:
DId you try "Battery charge Limit" ?

I recall that App worked for me at least some OS versions before..

(While other similar apps failed).

I use to fly drones with my phone and often do not want the Drone remote to charge my phone.

Give it a shot !

Ender

---------- Post added at 10:25 PM ---------- Previous post was at 09:51 PM ----------

Replying to myself:

That App does not work anymore, SORRY.

I am very sure it worked at some point but at least with 159 it does not.

SO i second your request :)

Ender
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] dlads:
Aye that's what I said pal.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] enderffx:
--- BS edited, SORRY for all that fuzz, you live, you learn :) ---
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Ereniemis:
Hi, I guess I'm dumb or something. But.... How do you flash kernel using fastboot with clt-l29 ? At the nexus it was pretty simple and you just simply flashed the whole fastboot flash boot boot.img, but it doesn't seem to work here and I don't kinda understand the whole "fastboot flash *ramdisk something*" why is there the ramdisk thingy? Why can't you just flash boot, system, radio as it was on nexus?

So... how to flash back the original kernel when I have yours KERNEL.img?

Thank you
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
Fastboot flash kernel kernel.img
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
Amazing,

And i used to think that the source code given by huawei was not complete, because last time we tried to compile it, it wont boot. LoL

Thx for this !

Edit : might be just me, but the phone feel blazingly fast. Wow.

Only one particular quirk. I cant set the I/O scheduler in kernel adiutor, as no scheduler are listed, LoL. Do you also experience this ?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
Yh i see same problem on all kernel manager can't set i/o idk where is the problem
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] wayneace8888:
Does this kernel work on normal p20 or only on p20 pro?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
Pls Read first comment on post release i write test it device not say if work on another variant or rom try and then tell me if work or not. I think. Work on all p20 variant because is same processor but test it....
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Ereniemis:
Okay, works on CLT-L29 without any problem, just ran into problem with booting into erecovery when using the mentioned KERNEL.img to restore the original kernel. I had to flash new rom through the erecovery (cause I didn't have any official ROM downloaded to extract kernel.img from)

I've extracted the kernel.img from CLT-L29 C432 8.1.0.157 and it should work on L29 I guess.

https://drive.google.com/file/d/1Zj3bLU6fczsqBXySREfFtJPKVEI2bDoV/view?usp=sharing
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] zhu911203:
Since no root on pie , I can't see if it's working or not, but it's working fine on 156.

Mine is L29.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] FirstEver:
Thank you for this Kernel - it works on my AOSP 9.0 based ROM !!! :D
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] draligus:
Have you seen any significant battery improvement after flashing this kernel?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
Idk this question try if not like disinstall and stay on stock kernel
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] draligus:
Ok, thank you
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] songokuk:
Do we know if the ptrace call (which doesnt work in the standard kernel) is working?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] fuzziion:
Just flashed 1.0.5 on my L29 everything went smooth. I'm also trying out the new impulse governor as of now its the best governor i have tried no lag and the battery life is just unbelievable.

Thanks Mate!!
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] maahmd:
what is Governor profile ur used??
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
Just try new impulse governor i ported for Huawey and for me At moment is the best
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] enderffx:
Hi guys, any word about Overclocking ability ?

;)

Greetings,

Ender
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] jalk44:
Could you make a version of this kernel for the AL00 variant?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
Not have phone to test it if work or no
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
its already has overclock feature

---------- Post added at 04:53 PM ---------- Previous post was at 04:52 PM ----------

it should just work. hardware is basically the same, except when you have 6/64GB variant.

easier if you just rebrand it first to L29
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] golf60:
Can you make the impulse gov as standard? I don't like to use apps for kernel control.

Thanks.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] enderffx:
Oops, sorry, i was unable in Kernel Adiutor to see that.

Max CPU freq (big & little) seem to be stock. I switched to impulse Governor okay but i am unable to increase freqs.

Could you tell me which app you use for freqs / Voltages ? SetCPU stalls when starting :(

Greetings & thanks,

Ender
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
but then other people might prefer other governor as default, no ?

the app exist for a reason :)
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] golf60:
Sure, but how you said, everybody can use the app but the kernel should have the best gov as standard and after testing from different people besides me the impulse works great.

Cheers
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
Wait you can't set freq voltage can only increase max cpufreq
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] enderffx:
Hi !

Uh i dont understand, are you saying i should be able to set a max freq higher then stock in Adiutor ?

I certainly can not.

WHat app are you using, as i set setcpu freezes when starting with my P20Pro 1.05 kernel.

Thanks,

Ender
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
Sure i can set max freq on kernel audietor
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] enderffx:
YEs you can but the max frequency is no overclock frequency but stock maximum, right ?

I wanted to overclock..

Greetings,

Ender
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
I think not Safe overclocking max freq more of max stock
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] jalk44:
Its not, bricked my phone... changing to a note 9
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
I can make for your version but you need test because i not have phone to test it myself
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] MajinkenSword:
[MENTION=1385016]resurrect[/MENTION] I'm not sure if this is related to the kernel, but afyer installing this, I can only enroll one fingerprint for security.

Everytime I register an additional one, it asks me for my screenlock password in a loop. Also, the screenlock password within the Developer menu becomes buggy where you can't disable it.

Is anyone else experiencing this issue?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] rafeex:
works great on the huawei p20 eml-l29 thanks a lot

---------- Post added at 05:00 PM ---------- Previous post was at 04:57 PM ----------

there is just the home button that does not work but otherwise it turns very well
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] rafeex:
could you disable the ptrace in your kernel to change the value with gameguardian please
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
Any reference for disable it?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] rafeex:
Yes, please could you?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
He need a reference on how to disable it, a git or any document about it,

huawei been having issue with game guardian since 8.0 firmware,

and btw [MENTION=1385016]resurrect[/MENTION] , its not about disabling ptrace, but rather the ptrace function/implementation itself is broken in huawei kernel, so it might cause issue with system call process and proot function,

the last huawei device with proper ptrace implementation might be 'angler', in case you want to have a look at it kernel source code, but that was an aosp device

or you can take a look into Huawei Mate 9 Nougat Kernel, which still have a proper ptrace implementation

i think its something in /include/asm/ptrace in the source code

some discussion about it (mostly have a dead end though) :

https://xdaforums.com/mediapad-m5/help/huawei-device-ptrace-implementation-t3817114/page1

https://gameguardian.net/forum/topic/20721-huawei-firmware-ptrace-problem/
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] rafeex:
Where can I find the reference please ?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
i revise my info about ptrace location,

it seems huawei using asm-generic/ptrace.h instead

but i just compared the code with one from Nougat kernel of Mate 9 (when ptrave still work) and it was exact same code,

so problem must be lay somewhere else

oh, btw [MENTION=1385016]resurrect[/MENTION]
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] rafeex:
And you think it's possible to find a solution to definitively remove the ptrace ?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] otonieru:
it shouldn't be remove in the first place,

if it removed, GG wont work either,

it need to be properly implemented. Then only game guardian can change the value of process traced
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] rafeex:
Yes so it takes the kernel to be remodified so that ptrace is not a problem for gameguardian?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] resurrect:
When i go At home try to iplement correct need wait becouse i work and i do all on My free time and all my source is for all and i not take money for do my work so patient when i can do and i not stay At work i see wath i can do ?