[KERNEL][DISCONTINUED][LOS] Typhon - LG G5 ROMs, Kernels, Recoveries, & Other Developme

Features
Based on Codeaurora's msm-3.18 kernel branch LA.UM.5.5.r1-06700-8x96.0
Support for the camera laser autofocus
Lightweight (minimal amount of logging, tracing and debugging functions)
Compiled with Linaro GCC 6.4 using flags specific for Kryo
Userspace display color calibration (Kcal)
Under-the-hood performance patches
Caveats/To-Dos
Focusing on getting the NFC working (the kernel supports PN547, however, the blobs/configs provided by Lineage are for PN548)
Add F2FS support
Compatibility
Tested on LineageOS (2018-01-23), using the 20s bootloader/modem firmware
Downloads
https://forum.xda-developers.com/devdb/project/?id=24609#downloads
XDA:DevDB Information
Typhon Kernel, ROM for the LG G5
Contributors
waau
Source Code: https://github.com/waau/platform_kernel_typhon_q
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.x
ROM Firmware Required: 21S
Version Information
Status: Testing
Created 2018-01-26
Last Updated 2018-02-21

Changelog
M1
Initial release.
M2
Added (untested) support for the H830 & RS988 variants
installscript: Removed the partition fstrim step
ramdisk: Some memory bandwidth tweaks thanks to oxavelar @ the V20
Misc updates
M3
Ported the camera driver from stock, there are issues with the Lineage Snap camera see https://jira.lineageos.org/browse/BUGBASH-1076.
M4
Reverted to CAF's initial 3.18.31 kernel tree due to upstream changes causing crashes
Imported LMK changes from Motorola (avg time to find a task to kill from 1004us to 43us)
Misc driver improvements (bt should work better during streaming intensive workloads)
The IPC/Binder has been updated (is Oreo booting now?)
Relaxed the polling rates in some parts of the kernel
Crypto libs update
Booting takes 40 seconds or so.
This should be a stable build for all the supported variants, I'll improve the overall performance after taking a break and revisiting the Lineage kernel for the charging problem. M5 will be a mostly feature-oriented update including battery saving changes.
Artificial benchmarks seem much better now.
https://browser.geekbench.com/v4/cpu/6766622
M5 RC1
Merged EXT4 encryption from Lineage
Attempt to reduce the power consumption (artificial benchmarks will probably take a hit in some areas, the UX should not be affected)
Imported memory bandwidth improvements from Motorola
Re-enabled the ramoops console
Other misc merges
Let the phone settle for a while after the first boot.
The ramoops console has been re-enabled, in case there are any kernel panics, attach the dump and I'll take a look at it (/sys/fs/pstore/console-ramoops) The rest of the features will come in the final version. I'll also try to get the NFC working.
M6
Redone some parts of the memory management system (compaction, slab, ksm, cma, zram), also pagecaches are now dropped when the screen turns off
Dropped the serial console, kernel initialization should be faster
Driver adjustments (targeting memory leaks)
Memory bandwidth improvements from Sony
Enabled NTFS support (for OTG, untested)
Enabled KSM
Cleaned up the ramdisk, media.camera.ts.monotonic will need to be set manually (read: https://jira.lineageos.org/browse/BUGBASH-1076)
This is probably the last build since I'm giving away my G5 this month, if anyone wants to continue the kernel you are welcome to fork it, the new source is here.
https://github.com/waau/platform_kernel_typhon_q
Mirror for the kernel zip https://github.com/waau/platform_kernel_typhon_q/releases/tag/M6

Wait this is actually great. Quick charge on LOS 14.1 is back?

Kye2000 said:
Wait this is actually great. Quick charge on LOS 14.1 is back?
Click to expand...
Click to collapse
Ported from stock since it was too much of a hassle to fix it on the Lineage kernel, probably these merges broke it
https://review.lineageos.org/#/c/181342/
https://review.lineageos.org/#/c/181479/

waau said:
Ported from stock since it was too much of a hassle to fix it on the Lineage kernel, probably these merges broke it
Something amazing has begun. Thank you. :highfive:
Click to expand...
Click to collapse

Yup. Quick charge works on a fresh RRN install. Thank you very much.
EDIT: From an initial impression, the screen burn-in seems to be reduced a bit. Still very noticeable, though.

totalnoob34 said:
Yup. Quick charge works on a fresh RRN install. Thank you very much.
EDIT: From an initial impression, the screen burn-in seems to be reduced a bit. Still very noticeable, though.
Click to expand...
Click to collapse
I didn't reduce the panel voltage in the build posted here, only the one posted in the LOS thread has the panel voltage reduced. Probably going to reintroduce it later.

waau said:
I didn't reduce the panel voltage in the build posted here, only the one posted in the LOS thread has the panel voltage reduced. Probably going to reintroduce it later.
Click to expand...
Click to collapse
That's placebo effect right there. Is anything else different? I can test it, if you want.

totalnoob34 said:
That's placebo effect right there. Is anything else different? I can test it, if you want.
Click to expand...
Click to collapse
Nothing significant, besides reverting the reduced panel voltage stuff and dumping exFAT. Sure gonna attach it to this post after it's compiled.
Edit: Panel UV Build

This is fantastic! I'm itching to move back to LineageOS from Fulmics. Any chance we might see a fix for LiveDisplay or is that not related to the kernel?

halomademeapc said:
This is fantastic! I'm itching to move back to LineageOS from Fulmics. Any chance we might see a fox for LiveDisplay or is that not related to the kernel?
Click to expand...
Click to collapse
I will take a look at it.

waau said:
Nothing significant, besides reverting the reduced panel voltage stuff and dumping exFAT. Sure gonna attach it to this post after it's compiled.
Edit: Panel UV Build
Click to expand...
Click to collapse
Installed. I'll post back on how it goes.

For laser focus:
https://github.com/waau/platform_ke...ers/media/platform/msm/camera_v2/sensor/proxy
check: vl53l010 files.
Maybe it help to check LG G3 LOS kernel source because Laser focus is working.

I'm happy to report that the kernel works on an existing install of RR too, no need to clean flash :victory:
I was still on the 20a bootloader/modem so I flashed 20s first, just in case ... here are the steps I took:
Reboot to recovery
Nandroid
Flash 20s bootloader + modem
Wipe dalvik/cache
Reboot to system ... all good
Reboot to recovery again
Flash qc-typhon-h850-m1.zip
Wipe Dalvik/cache
Reboot to system
I was (well still am) on RR-N-v5.8.5-20171203-h850-Final and everything seems to work without an issue
Thanks for giving us back "normal" charging @waau :good: :highfive:

walter79 said:
For laser focus:
https://github.com/waau/platform_ke...ers/media/platform/msm/camera_v2/sensor/proxy
check: vl53l010 files.
Maybe it help to check LG G3 LOS kernel source because Laser focus is working.
Click to expand...
Click to collapse
Thanks, although I will try to port the camera drivers from stock and hope that the Lineage HAL cooperates.

waau said:
Thanks, although I will try to port the camera drivers from stock and hope that the Lineage HAL cooperates.
Click to expand...
Click to collapse
Would u be willing to recreate this kernel for the rs988? We only have 2 ROMs to choose from PA and rr and both have the slow charging issue

goast said:
Would u be willing to recreate this kernel for the rs988? We only have 2 ROMs to choose from PA and rr and both have the slow charging issue
Click to expand...
Click to collapse
I will add support for the RS998 and H830 tomorrow.

waau said:
I will add support for the RS998 and H830 tomorrow.
Click to expand...
Click to collapse
Thank u and I will be flashing tomorrow too lol

How can I help?
Hello, I have no development experience and am technically limited, but this project really gives me hope for the future of the G5. Is there anyway I can support you or be of assistence? Thank you so much for taking this on!

Hiya!
Would you be able to add CPU and GPU overclocking as well? I found this post from an old kernel developer who isn't updating theirs anymore, so the work is pretty much done I think.
https://forum.xda-developers.com/lg-g5/development/stock-kernel-t3540157/post72361249#post72361249
I would just use theirs and not bother you, but their kernel breaks bluetooth support for some odd reason, and I need that to use.
If you could add in overclocking I would be SUPER appreciative...
thanks!

Related

[KERNEL] BitO-K12 / KU: Kernel for Nvidia Shield Tablet [Stock / Custom / N]

This kernel aims to be an alternative (and experimental) to Stock or custom ROMs (CM, Bliss,...) default ones, applying tweaks (kernel source configuration) and patches (if them apply) to improve general responsive, performance and functionality.
*Remember, test at your own risk.
BitO-KU
Base "pure" kernel with latest Nvidia code + Linux upstream (v3.10.108)
More info here.
Main Features for K12:
SafetyNet bypass (TESTING)
Latest Linux 3.10.108 code fully merged
Latest F2FS code backported from Linux 4.10
Multi Core and SMT optimizations enabled
Extra IO Schedulers (CFQ - default)
Extra Governos (Interactive - default)
Extra TCP Congestion algorithms (Cubic - default)
L2TP VPN enabled
ZRAM with LZ4 enabled (you can disable)
NTFS RW enabled
UTF8 as default code table
Module support disabled
CPUQuiet (CPU dynamic hotplug)
Main Features for KX10:
All K10-001 features + ...
OC for CPU and GPU (thx to @laufersteppenwolf )
Other optimizations:
Debug info stripped down
Branch jump optimizations
Clean cache
Front swap
Memcopy operations optimized for ARM A15
ZCache enabled
Cryptographic operations
Downloads:
BitO-KU
BitO-K12
BitO-KX10
Installation
Install ZIP via custom recovery
Install F2FS injector ZIP if you need proper F2FS support.
Notes
Don't forget flash DTB if necessary
If you need to update blobs, you can easily flash this zip (OTA 4.2), thx to @Steel01
Info about F2FS, and experimental TWRP to support it here.
I would be glad to get some feedback about battery life, performance, etc... All suggestions welcome :good:
Thnx:
@Steel01
@Bogdacutu
@faux123
@twistedumbrella
@berryman13
@Unjustified Dev
@SuperPichu
@corvus
Tegra Devs and every developer and tester behind and supporting this big community.
Big thx to everybody for helping to get a new device​
List of donnors for a new Shield Tablet:
@xanthrax : $25
@gasgiver : $10
@primaleph : $25
@marvi0 : $10
@strann0 : $10
@DR_HAX34 : $15
-----------------------------
TOTAL: $95
XDA:DevDB Information
BitO-K, Kernel for the Nvidia Shield Tablet
Contributors
BitOBSessiOn
Source Code: https://github.com/BitOBsessiOn/android_kernel_nvidia_shieldtablet
Kernel Special Features: Latest Nvidia sources, stable, fast, responsive, smooth
Version Information
Status: Stable
Current Stable Version: K10-006
Stable Release Date: 2017-06-25
Current Beta Version: K12
Beta Release Date: 2018-05-28
Created 2015-04-01
Last Updated 2018-05-29
Could be worth mentioning the .IMG file can also be flashed using Flashify without having to connect to computer at all.
pretty and nice
Running almost perfect in CM12
Waiting for OC I know you can do it,I use run the shaky156 OC 2.499 kernel for almost 1 months with no problems and I switched to CM12
Thanks and keep the nice work
kickassdave said:
Could be worth mentioning the .IMG file can also be flashed using Flashify without having to connect to computer at all.
Click to expand...
Click to collapse
Thnx, OP updated.
kickassdave said:
Could be worth mentioning the .IMG file can also be flashed using Flashify without having to connect to computer at all.
Click to expand...
Click to collapse
BitOBSessiOn said:
Thnx, OP updated.
Click to expand...
Click to collapse
And right after flashing CM12 in TWRP
That's what I did anyways.
Anybody can give me feedback about battery on CM 12 / 12.1 when device screen off (deep sleep), please?
Thnx!
BitOBSessiOn said:
Anybody can give me feedback about battery on CM 12 / 12.1 when device screen off (deep sleep), please?
Thnx!
Click to expand...
Click to collapse
The - latest wifi ROM- version you uploaded in the CM12 thread also includes your kernel as presented here?
Is it possible to include colour profiles in the kernel? Love it on my nexus 5! Looking forward to seeing this move forward
Also is there a rest of world lte version in the works? Thanks
silasje1 said:
The - latest wifi ROM- version you uploaded in the CM12 thread also includes your kernel as presented here?
Click to expand...
Click to collapse
Yes, I always compile CM 12.x with my kernel version. The 12.1 is totally experimental.
ishamm said:
Is it possible to include colour profiles in the kernel? Love it on my nexus 5! Looking forward to seeing this move forward
Also is there a rest of world lte version in the works? Thanks
Click to expand...
Click to collapse
Take note for colour profiles but I don't know how complex it can be... I'll be studied, sure.
About LTE RoW (wx_un_do) vs LTE US (wx_na_do) they are totally compatible as @Steel01 and me have seen. I have LTE RoW model and actually use wx_na_do compilation. In the future, perhaps, we will create a specific branch.
BitOBSessiOn said:
Yes, I always compile CM 12.x with my kernel version. The 12.1 is totally experimental.
Click to expand...
Click to collapse
I will be away a few days so a lot of sleep time for the tablet Will report
Here's some cpu state time info for u. 51mhz is deep sleep right?
With CPU Spy you get how long the device is in deep sleep: http://forum.xda-developers.com/showthread.php?t=1011497
Cpu spy capture for u. I've been running it like I stole it all day.
I don't have installed CPU Spy but BBS reports that it sleeps like a baby.
Got a spare apk for bbs by chance?
Download Better Battery Stats XDA edition here http://forum.xda-developers.com/showpost.php?p=15869886&postcount=2
Just wanted to let u know the mic issue was a gapps thing, the minimal edition has problems, went back to pagapps (the final 03/15 one) and if I flash this kernel on steels cm12 it works perfect. No sound fc either. The ONLY issue I found is moving to SD. Still says no room even after the folder mount patch. Battery is great btw, thanks much for the work
Is it possible to add double tap to wake / sleep? ☺
Sent from my SHIELD Tablet
badly and +
drewski_1 said:
Is it possible to add double tap to wake / sleep?
Sent from my SHIELD Tablet
Click to expand...
Click to collapse
SD fix
OC CPU and GPU

[Repack][Kernel][Mido][06/05/17]

Preamble
​
Hey everyone!
Xiaomi JUST released their source on 17/5/17 for mm. THAT IS SO DAMN COOL, THE WAIT IS FINALLY OVER. You guys can expect a custom kernel from me sooner or later(i'm busy). However, if the custom kernel really comes out from me, it won't be on this thread. This thread will maintain active development though, repacks of other custom kernels!
What is a repack? A repack is essentially, in layman terms, porting a kernel. I can run a kernel for AEX on RRN and stuff like that, but please do take note that my repacks are tweaked towards battery life, while keeping some speed. I might add bonus scripts in future, but for now, i'm just trying to get this up and running.
Please flash at your own discretion. I try my best to test at every release, but sometimes i just don't have the time to do so. I have homework and revision and all,and i need sufficient sleep for growth(i'm 13) so just bear with me. I am NOT responsible for anything that happens with your device
Links​
Kernels​Git Repository​
Source​
- Stock MIUI Marshmallow Stable V8.2.5.0.MCFMIDL
- Stock MIUI Nougat Dev V7.5.19
Sauce released!
Requirements && Instructions
​- TWRP
- Basic flashing skills
- A working human brain
- The will to void your warranty
Just flash the zip after flashing the rom. It'll do it's thing.
Features​- Better battery life
- Snappier
- Runtime(Dalvik) optimisation
- Governor optimizations
- TCP tweaks
- 3G Tweaks
- Google DNS
- Faster internet
- Battery tweaks
- JIT as compiler
- Support both ipv4 && ipv6
- No ring delay
- Better voice quality
- GPU optimisation
- Faster boot
- 4 compile thread for dex2oat
- Better camera and image quality
- Purge assets(save battery)
- Logging and debugging disabled(save battery)
All these come from the tweaked ramdisks. All can be found on the git repo above.
Supported Roms​- MIUI Marshmallow [V8.2.5.0.MCFMIDL]
- MIUI Nogat [V7.5.19]
- LineageOS 14.1
- Cypher OS V3.6.2
- AOSP Extended 4.2
- crDroidAndroid v3.1
- Android Ice Cold Project
- Xperia Open source Project(XSOP)
- DarkNess reDefined v1.5
- Resurrection Remix Nougat 5.8.3
More will be added based on requests and popularity
Credits​
Jarius980 for teaching me how to do repacks and being cool
osm0sis for AIK
Lucas for being cool XDDD (Like the best tester and adviser ever)
CyanGreenMod for fixing the misplaced semicolon
Everyone who contributed/tested/supported
Notes
- WIpe dalvik cache and cache after flash, as dalvik's behavior and execution mode is changed
- Spot something wrong? Pull requests are always welcome!(just make sure you work on the latest upstream)
- Reporting bugs or failed boot are also contributions(VERY HELPFUL)
- Please attach log along with reports if possible
- Pre-release is available on git before release, go ahead and flash if you want
- Safetynet will still be intact since all modifications goes directly to the boot.img
- Thread is still under construction, it may look ugly for now
- NOT ALL THE RELEASES ARE STABLE, PLEASE DO A NAND BACKUP OF YOUR CURRENT BOOT
Thread rules
Do:
- You help one another
- You stay on-topic
- You READ and SEARCH
Don't:
- You do not demand
- You do not ask for ETAs
- You follow the RULES
Announcement:
Please report any issues with build #6
Changelog(please refer to git repo):
Build7:
Dalvik flags
Other tweaks and improvements
Base update
Firmware
Build6:
Update tweaks(dalvik and others)
Update base
Stabilisation
Clean dalvik cache && cache automatically
Build5:
Update tweaks(HUGE)
Fix setprop errors
Build4:
Hopefully fix all wifi issues
Update nogat base
Applied some tweaks
Build #3:
Support new roms (ACIP, RRN5.8.3, XSOP)
Wifi issues fixed for AEX
Build #2:
Fix wifi for some
Stabilisation checks
Build #1:
Compatibility build, so NA
Todo:
Take a huge break because of exams
Create build scripts(in meantime, manual is the only way out)
Dev Log:
[6/5/17]
-I'm too lazy to type it all out, just view my commits on git
[3/5/17]
- Added ACIP, RRN5.8.3, XSOP
- Update AEX Base
- Fix all wifi issues
(More detailed log look at git commits)
[1/5/17]
- Fix wifi for some
[30/4/17]
- Prerelease Build #1
- Complete compatibility checks
- Wrote update script
- Initialised git repo
- Added source unpacked boot files(ramdisk && split_img)
- Setup base and dependencies
Potential feature and support requests:
Known issues:
- Cast screen(Not kernel related unless explicitly proven)
FAQ:
How to NOT break safetynet?
- Just flash the build after the flashing the rom. You can flash mods like magisk and systemless supersu that does not modify /system
Why did i lose my root after flashing(SuperSU)?
- Because supersu patches boot.img and adds a script to start the SU daemon. Flashing a new boot.img will cause the script and patches to be overridden. Just flash the supersu zip again and everything will be reapplied
What can i report?
- After testing a build for a specific rom, you can state the rom your device is on, how old your device is, then the thing you wanna report. You can report failed boots, function bugs and SOT(battery)
Useful Links:
- Telegram Group Chat
https://t.me/joinchat/AAAAAEHQRgRmzU2eCxWK8w
- Whatsapp Group Chat
https://chat.whatsapp.com/7morKcwxExyAcc2deOoYu0
- Discord
https://discord.gg/HS8Ku
- Twrp 3.1.0-0
http://tinyurl.com/midotwrp
- Firmware
https://www.androidfilehost.com/?fid=817550096634766008
- LineageOS addons download
https://download.lineageos.org/extras
- OpenGapps
http://opengapps.org/
-BeanGapps
http://tinyurl.com/beangapps
Wanna donate?
I have to ask my mom again if she allows me to have her paypal donation link. But for now, i guess not
Got any examples of what can be added in? I assume it's mostly ramdisk related since the zImage can't be modified.
AutumQueen92 said:
Got any examples of what can be added in? I assume it's mostly ramdisk related since the zImage can't be modified.
Click to expand...
Click to collapse
yesh. and the ramdisk will be tweaked accordingly
like i can optimise governor values and stuff. the real development will start once sauce gets release(SAUCEEEEEE)
Edit: actually, ill just add this in OP
ala_mo said:
yesh. and the ramdisk will be tweaked accordingly
like i can optimise governor values and stuff. the real development will start once sauce gets release(SAUCEEEEEE)
Edit: actually, ill just add this in OP
Click to expand...
Click to collapse
Welp, is there any way to obtain the voltage values per frequency from there (Reading the values, not changing it)? I wanna read it and make a governor tweak.
AutumQueen92 said:
Welp, is there any way to obtain the voltage values per frequency from there (Reading the values, not changing it)? I wanna read it and make a governor tweak.
Click to expand...
Click to collapse
f im not wrong voltages are inside the kernel source, no way to change that if the kernel does not support it(its not by default)
Governor tweaks can be made. Values are found in init.qcom.rc
Whats rom this working?
Molniya said:
Whats rom this working?
Click to expand...
Click to collapse
Added in OP. I dont't want the first builds to fail, i need to go for class now. Will test myself tonight before release
Does it work on miui 8.2.2.0??
Prem2628 said:
Does it work on miui 8.2.2.0??
Click to expand...
Click to collapse
Miui MM is supported. will upload a build for this tonight.(10more hours) i will have to test before releasing since its the first build
Maybe this kernel will activate technology quick charge by Qualcomm? *Hopefully and I'll migration from Kenzo to Mido ?
Sent from my Redmi Note 3 using XDA Labs
NOS_bzone said:
Maybe this kernel will activate technology quick charge by Qualcomm? *Hopefully and I'll migration from Kenzo to Mido ?
Click to expand...
Click to collapse
QC requires kernel-side changes
AutumQueen92 said:
QC requires kernel-side changes
Click to expand...
Click to collapse
yeah...alot of stuff comes packaged if the kernel supports it(qc, voltage, more governers) but currently, the kernels from xiaomi are not meant for any customization, thus what i can do is to tweak whats currently in store. I cannot add features to the kernel now. I can only tweak the available features The real development starts when the sauce gets released
ala_mo said:
yeah...alot of stuff comes packaged if the kernel supports it(qc, voltage, more governers) but currently, the kernels from xiaomi are not meant for any customization, thus what i can do is to tweak whats currently in store. I cannot add features to the kernel now. I can only tweak the available features The real development starts when the sauce gets released
Click to expand...
Click to collapse
Heh, even with the kernel source I still can't add QC into my Xperia. It's a good thing the Note 4 has more devs. Also, are you experienced in kernel building?
The Carbon Rom that popped up last night listed Mido kernel sources, which I'm highly sceptical if it works. I just need someone to confirm since the OP isn't responding.
AutumQueen92 said:
Heh, even with the kernel source I still can't add QC into my Xperia. It's a good thing the Note 4 has more devs. Also, are you experienced in kernel building?
The Carbon Rom that popped up last night listed Mido kernel sources, which I'm highly sceptical if it works. I just need someone to confirm since the OP isn't responding.
Click to expand...
Click to collapse
from what i know, i suspect it's a partial source. That means that its not full, and there will be some limits
Pertaining to your first question, i can and will build kernels, but i will only do so in December, because my school projects require windows and linux would me more ideal compared to bash on win(always get that dpkg error)
where is the download link? oh, this is just pre-release?
Justin Timberlake said:
where is the download link? oh, this is just pre-release?
Click to expand...
Click to collapse
READ
ala_mo said:
from what i know, i suspect it's a partial source. That means that its not full, and there will be some limits
Pertaining to your first question, i can and will build kernels, but i will only do so in December, because my school projects require windows and linux would me more ideal compared to bash on win(always get that dpkg error)
Click to expand...
Click to collapse
Yeah, linux on windows is a pain. I ended up dual booting with Ubuntu and W10 too.

[Kernel] Project T Kernel for ZTE Axon 7 Mini

Hi guys,
I know that this forum is not widely used by ZTE Axon 7 Mini owners, but I still want to share my work the kernel used by the stock firmware.
Most of the parts were of course already based on the work of others, so I will give credits at the end of this thread of course.
Pre-requisites:
Unlocked bootloader
TWRP flashed
Knowledge you do this all at your own risk! I tested this kernel with my EU model, so I don't know if this will work on the US models, too.
Features:
- Based on latest kernel source shared by ZTE (ZTE B2017G Nougat(7.1.1) Kernel(3.10.84))
- Built with GCC 4.9 toolchain
- UC to 499MHz for BIG and 403 MHz for LITTLE (thanks to @flar2)
- OC to 1651 for BIG (again @flar2)
- Additional governors: yankactive, blu-active, impulse
- Additional IO schedulers: Sioplus, Zen, FIOPS. Tweaked Row is set as default
- Additional TCP congestion algorithms with westwood being the default one
- Approx. 30% faster due to CRC calculation and auditing disabling
- Sweep2Sleep on the navigation bar
- frandom RNG
- Sound Control by @flar2
- ZRAM using LZ4 optimized for ARM by default
- Optimized power management driver by @Yank555
- Native exFAT support without needing fuse @dorimanx)
- KCAL
- Vibration control
- uses higher power CPUs to boot (got roughly 3s faster boot time)
- Dynamic Fsync
- Gentle Fair sleepers can be toggled via sysfs and Kernel Adiutor
- Smaller tweaks
To do:
- Switch toolchain
- Remove "dirty" from the kernel name Apparently I need to push all changes to github before compiling(or recompiling the same kernel as soon as I pushed everything)
- Set the phone to accept the lower frequencies without having to set this up in Kernel adiutor
- Alter interactive governor to use full frequency range
- Add D2TS for screen and fingerprint sensor, S2W
- Wakelock reductions
- Maybe BLX, KCAL (even though I don't get the point to implement it) I was curious and did it now, looks nice
- LED and vibration control
- Switch hotplugging mechanism to Lazyplug, hotplugging is not that energy efficient anymore
See the attached picture regarding the CPU stats when using yankactive for example
Credits go to:
@Lord Boeffla @flar2 @dorimanx @Yank555
Unfortunately I didn't give proper credits on my github, I want everyone to know, that none of the features were designed and written by myself, just adapted to work on our phones!
Download here:
https://drive.google.com/drive/folders/0B0mn6OUqIDzBZG1DM1Y4dmxUV2c
Flash in TWRP, root and every other ramdisk modification will be preserved (Anykernel2 by osmosis)
Github:
https://github.com/TheSSJ/tulip_kernel
Changelog
V1.1: Initial version for public release!
V1.2: KCAL support
V1.3: Changed boot CPUs to higher power ones, added dynamic Fsync, added Quick Wakeup driver
V1.4: Gentle Fair Sleepers can be toggled now, ROW scheduler tweaked
NOTE: in case anyone is wondering why I didn't pick the DevDB projects: as our device is not activated to be used with DevDB, I went with normal threads
TheSSJ said:
V1.1: Initial version for public release!
NOTE: in case anyone is wondering why I didn't pick the DevDB projects: as our device is not activated to be used with DevDB, I went with normal threads
Click to expand...
Click to collapse
Hi! Amazing work! Thx for the job.
Can I use this kernel with AOKP? AOKP has android 7.1.2
Askael said:
Hi! Amazing work! Thx for the job.
Can I use this kernel with AOKP? AOKP has android 7.1.2
Click to expand...
Click to collapse
I wouldn't exclude this, but as I am running on stock, I can't confirm or deny...
You could make a backup of your boot and flash it and see what happens, worst thing is that you need to reboot to recovery and restore your backup
TheSSJ said:
V1.1: Initial version for public release!
NOTE: in case anyone is wondering why I didn't pick the DevDB projects: as our device is not activated to be used with DevDB, I went with normal threads
Click to expand...
Click to collapse
TheSSJ said:
I wouldn't exclude this, but as I am running on stock, I can't confirm or deny...
You could make a backup of your boot and flash it and see what happens, worst thing is that you need to reboot to recovery and restore your backup
Click to expand...
Click to collapse
Thank you for replay, what governor you use?
You will need to try and see.
It uses anykernel which is good. But aokp and lineage are on android 7.1.2 while stock is on android 7.1.1. There was at least one kernel api change that may cause problems. But I'm not sure.
I'm assuming this package has the wlan module also...?
Askael said:
Hi! Amazing work! Thx for the job.
Can I use this kernel with AOKP? AOKP has android 7.1.2
Click to expand...
Click to collapse
@ssj @tdm
Guys, try flash kernel, AOKP, don't work.
W8 kernel version from customs
tdm said:
I'm assuming this package has the wlan module also...?
Click to expand...
Click to collapse
You mean the prima wifi stuff I have seen in you github? Honestly I didn't feel the need...does it improve the wifi experience or is it just for making it compatible with LineageOS?
No, I mean the kernel module for wifi, /system/lib/modules/pronto/pronto_wlan.ko. If that doesn't match your kernel, it won't load and you won't have wifi.
Note stock has a handful of other kernel modules, but I don't think any of them are needed Most look like they are for testing.
TheSSJ said:
You mean the prima wifi stuff I have seen in you github? Honestly I didn't feel the need...does it improve the wifi experience or is it just for making it compatible with LineageOS?
Click to expand...
Click to collapse
tdm said:
No, I mean the kernel module for wifi, /system/lib/modules/pronto/pronto_wlan.ko. If that doesn't match your kernel, it won't load and you won't have wifi.
Note stock has a handful of other kernel modules, but I don't think any of them are needed Most look like they are for testing.
Click to expand...
Click to collapse
Oh, ok...pronto driver is built into the kernel though, all other modules are really for debugging and testing as far as I could gather, so they are not included (and the phone works fine)
@Askael: As for a custom kernel for Lineage/AOKP etc: as I won't have these OS's on my phone I use as my daily driver, I can of course create one, but it is always published as untested, so there is no point IMHO.
TheSSJ said:
Oh, ok...pronto driver is built into the kernel though, all other modules are really for debugging and testing as far as I could gather, so they are not included (and the phone works fine)
@Askael: As for a custom kernel for Lineage/AOKP etc: as I won't have these OS's on my phone I use as my daily driver, I can of course create one, but it is always published as untested, so there is no point IMHO.
Click to expand...
Click to collapse
But we can test this. But if you not want - don't worry! :good:
Askael said:
But we can test this. But if you not want - don't worry! :good:
Click to expand...
Click to collapse
Will think about it
Version 1.2 is out, now with KCAL screen control support!
I'm building a kernel with many of these features for the LineageOS ROM. Want me to make a thread, and then you can link it for people interested in using it in your OP? Source is here: https://github.com/djkazic/sombrax_kernel
kevincai96 said:
I'm building a kernel with many of these features for the LineageOS ROM. Want me to make a thread, and then you can link it for people interested in using it in your OP? Source is here: https://github.com/djkazic/sombrax_kernel
Click to expand...
Click to collapse
Hi,
Feel free to open a new thread it is important to push this phone amd its potential as good as possible!
Development will go on, i still have some items to implement :good:
@TheSSJ
Hi! Any news about update?
@TheSSJ
Good to see you in Axon mini from zenfone 2
Askael said:
@TheSSJ
Hi! Any news about update?
Click to expand...
Click to collapse
You mean a custom kernel for CM builds or an update for this stock kernel?
For the CM based one I didn't start, although applying the modifications I applied to my kernel should be working
Druboo666 said:
@TheSSJ
Good to see you in Axon mini from zenfone 2
Click to expand...
Click to collapse
I was spotted It's a great phone, let's get the most out of it
TheSSJ said:
You mean a custom kernel for CM builds or an update for this stock kernel?
For the CM based one I didn't start, although applying the modifications I applied to my kernel should be working
I was spotted It's a great phone, let's get the most out of it
Click to expand...
Click to collapse
For this stok kernel
I was spotted It's a great phone, let's get the most out of it
Click to expand...
Click to collapse
i am using Axon 7 and yeah its a great phone i must miss you in axon 7
Updated version uploaded and available on G-Drive, boot time increased by 3s (you take what you can get )
/EDIT: Next version out, small enhancements and adding the possibility to enable/disable gentle fair sleepers

[KERNEL][EAS][O2][UBER] Chihayafuru Kernel v0.90 Honor 8 for Android 8.0+

Chihayafuru might feel like an awkward name for a kernel, but the meaning is pure and beautiful. Inspired from an Anime series, the name means "do towards good direction powerfully" like a "thousand swift swords". That's exactly what this kernel is.
This kernel has been made with love by cherry-picking commits from most of the work already done by other developers and introducing other slight changes which ensure your device gets the love it deserves. From performance to battery saving options, you're in full control of your device and the plethora of configurations available allow you to tweak it to your needs.
Presenting CF Kernel (ver 0.90) for Huawei Honor 8​
Compatibility Notes:
This kernel is tested to work with stock EMUI 8, Treble 8.x and 9.x ROMs. Compatibility with other ROMs is not guaranteed, However, this doesn't mean I won't support them. If you face a bug or issue, please report it here and I'll happily take a look at it.
GPL Notice:
This kernel conforms to GPL license requirements. Thus all the source code is freely available here without any charge: https://github.com/hackslashX/android_kernel_hisi_hi3650
Recommended Apps:
To tweak most of the settings in the kernel, I recommend using EX Kernel Manager: https://forum.xda-developers.com/general/paid-software/app-ex-kernel-manager-t3560850, Kernel Adituor: https://play.google.com/store/apps/details?id=com.grarak.kerneladiutor&hl=en and FK Kernel Manager: https://play.google.com/store/apps/details?id=com.franco.kernel&hl=en
Early Release Notice:
The kernel is still young and not yet mature. However, with time and your support, we can help make this project rock solid stable for Honor 8. Even though my initial testing has proved good, things might break on your end. Don't fret when that happens, take some logs and send it to me so that I can take a look at them and attempt for a fix.
Features:
Compiled with UberTC 4.9 toolchain with Cortex A53 and O2 optimizations
Upstreamed to v4.4.198
Added blu_active and enabled sched CPU governors (sched, blu_schedutil)
Enabled Scene Aware, Performance, and Powersave GPU governors
Enabled HiSilicon GPUFreq Hotplug and Frequency Hopping feature
Disabled useless drivers and features
Say no to Huawei D.U.B.A.I analytics and root scan feature
Disabled Huawei OASES and Livepatching feature
Disabled Swap and zRAM for much smoother operations
Mali GPU tweaks for improved performance
Added zen, FIOPS IO Schedulers
Added westwood and other advanced TCP algorithms
Fingerprint boost driver for quick recognition
Added CPU boost driver to reduce input lag
Reduced allowed wakelocks and better timer frequency
Boeffla Wakelock Blocker to kill unecessary wakelocks that interrupt your device sleep
Dynamic Sched Tune CPU support
Fast USB Charging support
Option to toggle FSync
Option to toggle SELinux to Permissive or Enforcing
Wireguard VPN support
Improvements to the sound module and vibration driver
... and more which I didn't note down or forgot xD
Installation:
Installing the kernel is pretty easy. Reboot your device to fastboot and execute the following command:
Code:
fastboot flash kernel <kernel-name.img>
Downloads:
Please check the Downloads tab for all downloads (till versions v0.45).
For v0.60 and later, please download from Google Drive: https://drive.google.com/open?id=1fHd7Y9XulrhzHou4013o3K_Ew3AZx2nq
XDA:DevDB Information
Chihayafuru Kernel v0.90 Honor 8 for Android 8.0+, Kernel for the Honor 8
Contributors
hackslash
Source Code: https://github.com/hackslashX/android_kernel_hisi_hi3650
Kernel Special Features:
Version Information
Status: Stable
Created 2018-09-08
Last Updated 2019-11-05
Thank you for your work
And i hope someone running android pie gsi can test this and see if it fix the overheating problem
Thanks a lot <3
Trying it .. will let you know, if I hit any issues
Does it affect the root after flashing this kernel?
$lim $hady said:
Does it affect the root after flashing this kernel?
Click to expand...
Click to collapse
No root is not affected after flashing this kernel.
The kernel image only modifies the 'kernel' partition and leaves the 'ramdisk' one as it is.
hackslash said:
No root is not affected after flashing this kernel.
The kernel image only modifies the 'kernel' partition and leaves the 'ramdisk' one as it is.
Click to expand...
Click to collapse
Thanks will flash it now..
Thank you bro' i flashed on my FRD-L09 Oreo ( stock + root ) and it's work
enzospain said:
Thank you bro' i flashed on my FRD-L09 Oreo ( stock + root ) and it's work
Click to expand...
Click to collapse
Good to know
delete
PremiumBlaze said:
Thank you hack slash for your support for having the honor 8 finally have a custom kernel, it works very well for me
I Flash the custom kernel using twrp for my honor 8, it went very well,
Performance is nice, I notice some speed improvements in games and also battery Improvment.
Im waiting for Undervolt now and the battery would be awesome!!!
Click to expand...
Click to collapse
Thanks for your review.
For gaming you can also set GPU governor to Performance for a more better experience.
I've noted down your request. I'll do my best to deliver.
I never flashed custom kernel before. Is there any chance of permanent brick? If something goes wrong, can't I just flash stock kernel and get it working again?
Also, do I need to wipe data after flashing kernel to see the changes?
SirDarknight said:
I never flashed custom kernel before. Is there any chance of permanent brick? If something goes wrong, can't I just flash stock kernel and get it working again?
Also, do I need to wipe data after flashing kernel to see the changes?
Click to expand...
Click to collapse
There's no chance of permanent brick. Restoring is as easy as flashing the stock kernel via fastboot.
You don't need to perform a data wipe. However, you should allow the kernel to 'settle' i.e. use it for 2-3 charge/discharge cycles to see the effect.
@hackslash .. Installed it yesterday, seems to be working fine.. Jus wanted to check, I m running LoS B5, any specific recommendations on the Governor setting for battery?
I'm using openkirin RR b2. Recent Openkirin on H8 seems to have the problem to barely go into deepsleep or not anymore at all after a while. So I suffer from a quick battery drain. The support channel suggested to try out a custom kernel. I wonder if you know that this kernel will solved the problem?
How about future openkirin or kernel updates? Will I have to go back to stock first or can I just flash new openkirin while still being on this kernel?
Thanks for your hard work! I recently flashed it and it works like a charm!
UPDATE 1: I redownloaded the EMUI 8 package and now it contains everything, including the stock kernel.
UPDATE 2: Short-term experiences: The fingerprint scanner's performance is drastically improved and now it is just as fast and accurate as on EMUI, the camera performance is now closer to EMUI, but there's a little room for improvement, the fast charging is faster than on EMUI, the phone doesn't want to overheat anymore on my custom ROM and overall the phone is now a little bit faster. I'm testing it with the Kirin-GSI AOSP Android 9.0 Pie ROM, not with an OpenKirin ROM, but it is really stable just like on EMUI and OpenKirin ROMs. And I have a suggestion for bugfixes for Honor 8s (eights) running this AOSP Android Pie ROM: Please fix the broken hotspot function in kernel level on Honor 8s (eights) running this custom firmware, implement the EMUI camera app into the kernel and make the camera performance identical to EMUI's. The Kirin-GSI project is now abandoned because the dev bought a new phone which is not a Huawei phone, so he wouldn't fix the problems anymore. It's really annoying that I can't share my unlimited cellular data to friends or to my PS4 when I'm on vacation.
Damn. Now my touchscreen is no longer working. :crying:
Sujanth said:
Damn. Now my touchscreen is no longer working. :crying:
Click to expand...
Click to collapse
Have you managed to back up or download the stock kernel image? You can flash it back.
---------- Post added at 05:56 PM ---------- Previous post was at 05:55 PM ----------
Sujanth said:
Damn. Now my touchscreen is no longer working. :crying:
Click to expand...
Click to collapse
Have you used fastboot or TWRP? If you used TWRP, you need to flash back the stock recovery and the stock kernel, then you can try again flashing CF via fastboot. Flashing with fastboot makes different results than flashing with TWRP.
Sujanth said:
Damn. Now my touchscreen is no longer working. :crying:
Click to expand...
Click to collapse
Noted. I know what's causing the issue. I disabled several touchscreen drivers since not all of them are needed for Honor 8. Flash stock kernel for your device and please send me the file:
Code:
/sys/devices/platform/huawei_touch/uevent
ThePS4Gamer said:
Thanks for your hard work! I recently flashed it and it works like a charm!
UPDATE 1: I redownloaded the EMUI 8 package and now it contains everything, including the stock kernel.
UPDATE 2: Short-term experiences: The fingerprint scanner's performance is drastically improved and now it is just as fast and accurate as on EMUI, the camera performance is now closer to EMUI, but there's a little room for improvement, the fast charging is faster than on EMUI, the phone doesn't want to overheat anymore on my custom ROM and overall the phone is now a little bit faster. I'm testing it with the Kirin-GSI AOSP Android 9.0 Pie ROM, not with an OpenKirin ROM, but it is really stable just like on EMUI and OpenKirin ROMs. And I have a suggestion for bugfixes for Honor 8s (eights) running this AOSP Android Pie ROM: Please fix the broken hotspot function in kernel level on Honor 8s (eights) running this custom firmware, implement the EMUI camera app into the kernel and make the camera performance identical to EMUI's. The Kirin-GSI project is now abandoned because the dev bought a new phone which is not a Huawei phone, so he wouldn't fix the problems anymore. It's really annoying that I can't share my unlimited cellular data to friends or to my PS4 when I'm on vacation.
Click to expand...
Click to collapse
Thanks for taking the time to review the kernel.
Let's get some facts straight. First, camera performance has nothing to do with the kernel and 'camera app' can't be implemented inside the kernel. That's not how things work. Camera processing and everything is handled by Android and so your ROM developer can help you with that. Taking about hotspot, I'm not sure why it doesn't works with Pie. Again, I believe it's a ROM bug and has got nothing to do with kernel. I would wait for Pie releases by OpenKirin team and see if that bug exists there too and 'really' requires a kernel hack to fix it.

Nethunter kernel for android 11

I slightly modified and compiled the kernel from tImIBreakdown, put it in .zip installer. It doesn't have overclocking and lots of governors or i/o schedulers, because I couldn't find a kernel supporting them on android 11. If you want to help me, I will be very glad.
My Changes:
The conservative governor is enabled
Added Nethunter support
Minor changes to the dtc for the compiler
Several patches from Undermind
Install: flash the zip file through custom recovery
If this caused a bootloop, then you can format /system and flash the firmware again, and since you did not format /data, your data will be saved.
Tested on Arrow-OS 11 and crDroid 7.18
Source code:
Github: github.com/tImIbreakdown/android_kernel_leeco_msm8976/tree/lineage-18.1
The work is in progress... wait...
Is it specific for Android 11 or does it work also on Android 10?
devel13 said:
Is it specific for Android 11 or does it work also on Android 10?
Click to expand...
Click to collapse
I do not know, but I am doing this on a fork of the lineage 18.1 kernel from tImIbreakdown. I can try after this kernel to make another one on kernel 17.1 if it won't work on android 10.
trottling said:
I do not know, but I am doing this on a fork of the lineage 18.1 kernel from tImIbreakdown. I can try after this kernel to make another one on kernel 17.1 if it won't work on android 10.
Click to expand...
Click to collapse
Thanks. There is a big issue with the lineage kernels: the GPS lock time is very, very long.
On oldest kernels, I mean the ones affected by the echo in call issue, the GPS lock time was fast.
So, as usual, one issue fixed and a new one introduced.
I wonder if you brand new kernel is just a tuning of the governors or could affect also the GPS driver.
devel13 said:
Thanks. There is a big issue with the lineage kernels: the GPS lock time is very, very long.
On oldest kernels, I mean the ones affected by the echo in call issue, the GPS lock time was fast.
So, as usual, one issue fixed and a new one introduced.
I wonder if you brand new kernel is just a tuning of the governors or could affect also the GPS driver.
Click to expand...
Click to collapse
Сan you send me the version of your firmware and kernel? Maybe I will be able to transfer the GPS drivers from there to the new version.
It will be much better if you also find the location of these files and show me the source code of the kernel with a high-speed GPS. Here is an example of the kernel source code on which I make this kernel: (github.com/tImIbreakdown/android_kernel_leeco_msm8976/tree/lineage-18.1)
I am now seriously busy implementing hotplug and about 20! new governors.
To tell the truth, I didn't understand your problem very well, I use a translator and it distorts the essence. Tell us in more detail.
trottling said:
To tell the truth, I didn't understand your problem very well, I use a translator and it distorts the essence. Tell us in more detail.
Click to expand...
Click to collapse
OK, sorry. I've just investigated further and the GPS issue seems related to a wrong default gps.conf and not to the kernel itself, although the GPS signal is quite weak.
So go on with your kernel development and, when you have finished, I will try it.
Thanks
devel13 said:
OK, sorry. I've just investigated further and the GPS issue seems related to a wrong default gps.conf and not to the kernel itself, although the GPS signal is quite weak.
So go on with your kernel development and, when you have finished, I will try it.
Thanks
Click to expand...
Click to collapse
New kernel forum.xda-developers.com/t/kernel-x52x-android-11r-ballistic-kernel-v1-1-with-nethunter-support.4455463/

Categories

Resources