[KERNEL] [Oreo-8.1] [libra/aqua] HateKernel-2.0 -UBERTC-5.3.x - Xiaomi Mi 4C

Introduction
HateKernel is a custom kernel compatible with libra/aqua and on LineageOS 15.1-based ROM (Oreo 8.1.0). This kernel source are forked from Cozzmy13's source (CAF) and are made to improve performance, battery life, features and stability of our device. Obviously, I can't guarantee all of those claims at once due to the fact that there is a trade-off among them, so its up to you for applying tweak or setting-up your device based on your usage criteria.
Click to expand...
Click to collapse
Image
Damn! I'm too lazy to post any. :silly:
Click to expand...
Click to collapse
Features
-Boeffla wakelock blocker.
-FAUX sound control.
-KCAL advanced color control.
-CPU boost & input-boost. (off by default)
-Kernel samepage merging. (off by default)
-Power-efficient workqueue. (on by default)
-Disable storage CRC check. (reduce IO overhead)
-FSync on/off. (on by default)
-250Hz tick timer-interrupt & dyntick tickless-idle. (may help with battery and UI lagginess? I'm not sure.)
-Added CPU Governor - relaxed, blu-active, despair, zzmoove, elementalx, wheatley, impulse, bioshock.
-Added IO-Scheduler - fiops, sio, sioplus, zen, vr, maple.
-Exposed all TCP congestion algorithm.
-Proper undervolt. (untweakable. Hardcoded in kernel. Blame QCom)
-Compiled with UBERTC-8.x.x -O2 flag.
-A few more optimization.
Click to expand...
Click to collapse
Installation instruction
Required - TWRP recovery latest version & Nougat-bootloader.
NOTE: For AnyKernel2 flashable zip, I highly recommend to flash your stock ROM's boot.img first.
Flash via 'fastboot':
1) Download 'HateKernel-x.x.img'
2) Put the image in same folder as fastboot executable.
3) Run thru command "fastboot flash boot HateKernel-x.x.img"
Flash via TWRP recovery (boot.img):
1) Select install and change mode to "Flash Image" in TWRP.
2) Flash 'HateKernel-x.x.img' in 'boot' partition.
3) Obviously, reboot.
Flash via TWRP recovery (AnyKernel zip) RECOMMENDED
1) I think you should know how at this point.
2) Install as usual.
Click to expand...
Click to collapse
Downloads
All version >
Dropbox: Download
Click to expand...
Click to collapse
Credits
*Cozzmy13 for kernel source
*AndropaX
*flar2
*faux123
*savoca
*Boeffla
*jollaman999
*nathanchance
*tester/suggester/advisor and everyone who helped to improve HateKernel
*everyone i forgot to add
Click to expand...
Click to collapse
XDA:DevDB Information
HateKernel, Kernel for the Xiaomi Mi 4C
Contributors
kopter36
Source Code: [url]https://github.com/iZwnMswn/kernel_xiaomi_msm8992[/URL]
Kernel Special Features: Read "Features".
Version Information
Status: WIP
Current Stable Version: HateKernel-3.1
Stable Release Date: 2018-05-28
Current Beta Version:
Beta Release Date:
Created 2018-02-14
Last Updated 2019-03-08

+ Preliminary info.
- Kernel in .img format are only compatible with Lineage-15.1 by Cozzmy13 ONLY. Don't flash it on other ROM even from the same source.
- HateKernel-1.5_r2 and up currently had issue with some device won't be able to boot. I'm currently still working on it.
+ Download info.
- Testbuild : There is 2 version (Lineage-15.1 stock & HateKernel build). Please test both version from lower-number to highest and report back which one is working + state last Stable-release of HateKernel that is working before.
- Experimental release is essentially a beta version but have been tested by me, but sometimes it might not working reliably with certain ROM+variant(libra/aqua).
- Stable release, as the name imply, mostly always working and have no major bug. This version have been tested extensively to avoid complaint from users and headache for me
Thank you so much for every feedback.

+ Changelog {ascending order}
HateKernel-1.1
- initial build using Google's toolchain. (GCC-4.9)
HateKernel-1.2
- support libra and aqua variants.
- expose all standard CPU governors + add elementalx.
- expose all standard IO-schedulers.
- expose all standard TCP congestion algorithms.
- input-boost and CPU-boost.
- enable RCU boost.
- Kernel Samepage Merging.
- implement display_state API.
- msm8992 initial overclocking.
- Slimbus overclock.
- enable Error Detection and Correcting log capability.
- enable CTS and SHA512 crypto for ARMv8.
- use asymmetric-key-type for crypto.
- compiled with UberTC-4.9.X (GCC-4.9.4)
HateKernel-1.3
- add CPU governors > (bioshock, blu_active, despair, impulse, relaxed, wheatley, zzmoove)
- add IO-schedulers > (fiops, maple, sio, sioplus, vr, zen)
- add WireGuard support.
- revert msm8992 initial overclocking.
- undervolt CPU with stable value.
- fix display_state implementation.
- compiled with UberTC-5.3.X (GCC-5.3.1)
HateKernel-1.4
- add KCAL advance color controls.
- add FAUX sound controls.
- add Boeffla wakelock blocker.
- 1000Hz ticks + dynamic tickless-idle.
- disable storage CRC check.
- FSync on/off.
- remove Edge-Touch for touchscreen.
- enable ARM's v8 hw CRC32.
- enable parallel crypto engine.
- compiled with -O3 flags.
HateKernel-1.5_r2 {stable} {alternative}
- based on HateKernel-1.1 config with stable features.
- fixed Synaptic's touchscreen issue.
- revert some minor features and optimization in favor of stability.
- compiled with -O2 flags again.
HateKernel-1.6b {staging}
- based on Hatekernel-1.4 config with fixed Synaptic's navigation button issue.
- 100Hz timer interrupt tick.
- enable MSM kgsl triple buffer.
- improve scheduler for SMT operation.
- a lot of underlying optimization.
- optimize very likely/unlikely branch (yes, I'm aware of security-hole for this one)
- fully compiled with -O3 flags (don't worry about cache miss, trust me)
ps : This list is depreciated. I will clean this as soon dev-build are complete

Whoa, can't wait for this to be released and given a bunch of customization soon

flammenwerferx said:
Whoa, can't wait for this to be released and given a bunch of customization soon
Click to expand...
Click to collapse
DL link posted. Try it out

long time not see a custom kernel, cool
so if you use kernel based on Los 15.1, can I use this for other roms based los15.1 kernel?

nicee, will this compatible with others 15.1 based?

hanuraiga said:
long time not see a custom kernel, cool
so if you use kernel based on Los 15.1, can I use this for other roms based los15.1 kernel?
Click to expand...
Click to collapse
IcyGlacial said:
nicee, will this compatible with others 15.1 based?
Click to expand...
Click to collapse
It should work. I've no idea if my kernel will broke something on other LoS-15.1 based rom as I've only tested it on unofficial LoS15.1 by Cozzmy13 but sure, try it and if something breaks, I'll try my best to fix it. :good:

Just try installing on AEX rom, but not explore more.

kopter36 said:
It should work. I've no idea if my kernel will broke something on other LoS-15.1 based rom as I've only tested it on unofficial LoS15.1 by Cozzmy13 but sure, try it and if something breaks, I'll try my best to fix it. :good:
Click to expand...
Click to collapse
i've got bootloop on NOS....

caxwan said:
Just try installing on AEX rom, but not explore more.
Click to expand...
Click to collapse
AEX on libra? Can you give me the thread link?

ClaviluX said:
AEX on libra? Can you give me the thread link?
Click to expand...
Click to collapse
Sure, here the thread
4pda - mi4c

hanuraiga said:
i've got bootloop on NOS....
Click to expand...
Click to collapse
I can see that rom used Cozzmy13 kernel source which is the same tree of my kernel. Probably something changed in boot.img ramdisk for NOS kernel. I try to make anykernel patcher tonight.
Sidenote : HateKernel 1.3 already compiled with GCC 5.3.1 (ubertc-5.3.X) and booted up properly. Will released tonight with some other changes.

kopter36 said:
I can see that rom used Cozzmy13 kernel source which is the same tree of my kernel. Probably something changed in boot.img ramdisk for NOS kernel. I try to make anykernel patcher tonight.
Sidenote : HateKernel 1.3 already compiled with GCC 5.3.1 (ubertc-5.3.X) and booted up properly. Will released tonight with some other changes.
Click to expand...
Click to collapse
Thanks guy! You are really great!

kopter36 said:
I can see that rom used Cozzmy13 kernel source which is the same tree of my kernel. Probably something changed in boot.img ramdisk for NOS kernel. I try to make anykernel patcher tonight.
Sidenote : HateKernel 1.3 already compiled with GCC 5.3.1 (ubertc-5.3.X) and booted up properly. Will released tonight with some other changes.
Click to expand...
Click to collapse
Awesome... I'll be waiting

Is this kind of kernel features only available on kernel version 3.18.xx or is it also available on kernel version of 3.10.xxx

flammenwerferx said:
Is this kind of kernel features only available on kernel version 3.18.xx or is it also available on kernel version of 3.10.xxx
Click to expand...
Click to collapse
Most of those features are not limited to 3.18.xxx kernel. I've seen most of it implemented on Nexus 5X's custom kernel which share same kernel version with our device with the only exception is Qnovo charging driver. In fact, I've seen some of those features implemented on 3.10.9x which arent upstream to latest version at all.

HateKernel-1.3 is up
Changelog ;
-upgrade compiler to UBERTC-5.3.X (GCC-5.3.1)
-revert overclocking code until I found (if possible at all) working code
-proper undervolt to keep thermal-throttle a bit manageable
Click to expand...
Click to collapse
P.s: Not much changes in this version because I'm currently on holidays. Regarding kernel-patcher (AK2/lazyflasher), I'm currently still learning to do that. Very sorry guys. Development for more feature and upstream will continue soon.
To-do list ;
-upstream with latest CAF tag for msm8992
-upstream security patch
-Boeffla wakelock blocker
-backport zRam, F2FS and ext4 driver
-Adreno idler
Click to expand...
Click to collapse
I'm open to any suggestion to add other feature, just make sure its reasonable. Would be a great help too if you can point me to the commit if available.

Thanks @kopter36
HateKernel 1.3 intalled on my phone.
AEX Rom, without trouble on booting.

kopter36 said:
Changelog ;
P.s: Not much changes in this version because I'm currently on holidays. Regarding kernel-patcher (AK2/lazyflasher), I'm currently still learning to do that. Very sorry guys. Development for more feature and upstream will continue soon.
To-do list ;
I'm open to any suggestion to add other feature, just make sure its reasonable. Would be a great help too if you can point me to the commit if available.
Click to expand...
Click to collapse
Well, I'mma just suggesting these
1. KCAL Advanced Color Contol [with satutation, contrast and etc. Control]
2. Faux Sound Control [this really useful especially if somebody is experiencing a hissing noise on their headset, so they can reduce the output volume through this control]
3. Intelliplug or any hotplugging [only if it's really necesarry]
4. Adreno idler / booster of course (You've mentioned)
5. Upstreaming to the latest CAF (You've aforementioned)
6. ZRAM LZ4 Backport (On your to-do list)
7. Some kind of power efficient workqueue maybe
8. So-called boeffla wakelock (if i ain't mistaken the name)
PS : Anyway, undervolting seems working flawlessly, I've never reached 50°C now on normal chatting usage (usually it is around 50-55°C after one hour usage)

Related

[KERNEL][AOSP]Torched Kernel LP B2.5[01/01/2015] F2FS

Introducing Torched Kernel for Evita!!​
First I must give some thanks to all the great developers that paved the way for this, for I would have nothing if it wasn't for these guys. Most of this work is a collection of various pathes from many devs, adapted into our CM kernel. So, if you have the chance to speak with any of these guys, make sure you spread some appreciation around. The list includes but is not limited to:
Intervigil, H8rift, kushdeck, mdmower, flemmard, codeworxs, Faux123, Flar2, zarboz, showp1984, tbalden.
Also I'd like to add my fellow custom kernel devs rmbq (ville) and NineInchNails (evo 4G) whom i've had the oppertunity to bounce ideas off of and share some work.
Kernel for AOSP roms only!!
Based on CM's current 3.4 kernel
Compiled with Christopher83's custom tweaked GCC 4.9.3 linaro toolchain
This should work on all 5.0 AOSP roms for EVITA
FEATURES:
Interactive/ROW by default
1.7ghz OC available (1.5ghz is stock/default setting) - REMOVED IN noOC/noVC VERSION
3 stage 2D/3D GPU OC avaialable (200/400 stock/default setting, 320/512 max) - REMOVED IN noOC/noVC VERSION
Voltage Control -as implemented by Faux123 - REMOVED IN noOC/noVC VERSION
QCOM Vmin Bypass (allows CPU to follow stock voltages tables rather than qcom enforced minimum voltage for errata cases - REMOVED IN noOC/noVC VERSION
3 stagekernel based thermal control from Showp1984
S2W/DT2W/POCKET DETECTION from flar2 (off by default)
BLN (button light notification) from tbalden, blinks hardkey backlight when there are pending notifications (off by default)
Dynamic Fsync from Faux 123
Additional Gov/Sched options
USB FAST CHARGE
Faux sound control patches from Faux123
Advanced TCP Congestion Control Choices
Bunches of minor optimizations from all over github. My source is always current with my releases and possibly any new work, feel free to check in on it anytime for the full list of tweaks and thier sources.
JB CHANGELOGS
Code:
[B]Initial build[/B]
Keeping it simple for the first build, more to come
-USB fast charge (off by default,turn on w/ trickster/KT)
-Added governors ( Intellidemand, smartmax)
-Added schedulers (BFQ, fiops, SIO)
-reverted recent linux .61/.62 updates as they may be root cause of frequent bootloops (TESTING THEORY HERE)
-dynaimc fsync, advanced SHA1/AES algorithms from faux123
-better cpu freq control (will help with OC later)
-all the linaro build flags and -O2 flags
[B] B2 [/B]
- BLN is working now (off by default)
-enable with trickster/kernel tuner
-IMPORTANT NOTE: This will break variable button brightness control recently added in CM and maybe other roms as well...sorry can't have both.
-I will post a flashable revert zip for the required file permmisions change if there is a demand for it.
-Also made a few mods to boost freqs on smartmax gov.
[B] B3 [/B]
TWO VERSIONS - OC/VC and NO OC/VC
-GPU OC 266 2d / 480 3d enabled by default on both
-Kernel updated to fix display issues
-OC/VC version allows OC to 1.7, 15 at boot and remains there by default use KT or Trickster to enable
-OC/VC remove vmin errate cases that force a higher minimu voltage at low freq. Allows CPU to follow our designed coltage tables
If this causes issues on your device try raising voltage or switching to the NO OC/VC version.
[B]B4[/B]
ONE VERSION ONLY
ALL OPTION OFF/STOCK BY DEFAULT
- Faux sound control credit to Faux123
- 3 stage thermal control by showp1984
Allows users controlled controlled limits for thermal throttling
- S2W /DT2W fix from rmbq/thicklizard.
- S2W/DT2W as implemented by flar2 with pocket detection.
- GPU OC steps added and set to stock speeds by default
Again all boots up like stock... If you want the options turn them on. Most kernel apps include options to set profiles at boot :)
[B]B5[/B]
-O3 optimizations
Added optional lower min frequency (168 mhz)
All Cm updates
[B]B6[/B]
-started over from B4 base
-Dropped lower min freq from B5
-updates to smartmax freqs
-Enabled XZ compression
-Enabled Zram
-Cleaned up linaro flags and cpu freq tables
[B]B6.1[/B] && [B]B6.1.VMIN[/B]
-updates for faux sound 3.0
-VMIN version leave vmin check active, but still allows user controllable voltages
SEE VOLTAGE INFO BELOW
[B]B7 && B7-noOC-noVC[/B]
[B]FINAL VERSIONS for 4.3[/B]
-Updated with all recent CM updates including the CPUfix we are all so excited for( HUGE THANKS to Intervigil )
-bump to linux version 3.4.72
KK CHANGELOGS
Code:
[B]KK-BUILD#1[/B]
-Back to basics, starting from a clean slate again
-CPU OC, GPU OC && Voltage Control
-GCC 4.8 with CFX linaro based tool chain [URL="https://github.com/codefireXperiment/prebuilts_gcc_linux-x86_arm_arm-eabi-4.8"]here[/URL]
-optimization level -O2
-VMIN enabled for now
[B]KK-BUILD#2[/B]
-update to linux v3.4.70
-3 stage thermal control
-S2W w/ user selectable swipe buttons (use kernel tuner)
-BLN
-Faux sound control 3.0
-Vmin disabled, voltages follow qcom voltage tables
[B]KK-Build#2.1[/B]
-rework of S2W to fix initialization issues
-DT2W and pocket detection are back now as well (thanks flar2)
[B]UPDATED WITH "SAFE" VERSION [/B]
-Safe version disables all voltage/clock mods
-Operates at stock clocks and voltages w/vmin check enabled
-all other features carry over from normal build
-DO NOT FLASH VOLTAGE SCRIPT WITH THIS VERSION, IF YOU HAVE PREVIOUSLY FLASHED IT NAVIGATE TO /ETC/INIT.D/ WITH A ROOT EXPLORER AND DELETE THE OLD SCRIPT (74havsvoltage)
[B]KK-Build#2.2[/B]
-Minor update to catch up with CM
-updated to 3.4.72
-Cpufix is now integrated
- noOC/noVC version available
[B]KK-Build#3[/B]
-Most remaining features are back now
-Add governors(smartmax & Intellidemand)
-Add schedulars(BFQ,fiops,sio)
-Updates for Faux Sound (needs testing, still seems alittle off)
-USB FAST CHARGE
-optimized AES and SHA1 routines (faux123 && flar2)
-optimized string and memcopy routines from faux123
-dynamic fsync from faux123
-noOC/noVC version available as well
## All builds prior to Build 3.2 will lose WiFi on CM nightlies after 1/5/14
Use build 3.2 or newer for anything after 1/5/14 ##
[B]KK-Build#3.2[/B]
-Catch up to CM
-Wifi module now built inside kernel, makes for smaller package
[B]KK-Build#3.5[/B]
-Catch up to CM
-Bump max OC to 1.9
-remove a few commits that seem to be root cause of previous SOD issues
[B]KK-Build#3.6[/B]
-Catch up to CM
-Reduce max OC back to 1.7, 1.9 thermals out way to fast to be useful
-complete patches for 3-stage thermal that i missed on original import
-update BFQ to latest v7.2
-fix s2w/BLN broken by new touchscreen/led drivers brought in by CM for M7 import
[B]KK-Build#3.7[/B]
-Catch up to CM
[B]KK-Build#4.0[/B]
-Catch up to CM
-TCP congestion control options
-3.4.86 updates
-build with Christopher83's custom Cortex-A15 tweaked linaro 4.8.3 toolchains
[B]KK-Build#4.1[/B]
- update to support new fstab formats
- should be backwards compatable so this is the only version supported at this point
[B]KK-Build#4.2[/B]
- minor CM updates
- moved to 4.9.1 optimized linaro toolchains]
[B]KK-Build#4.3[/B]
- headset fixes from CM
[B]KK-Build#4.5[/B]
-Catch up with CM
-ADD F2FS support!
[B]KK-Build#4.6[/B]
- Add inline_data flag for F2FS performance
- fix minor derp with versioning
[B]KK-Build#4.7[/B]
- Playing catch up with CM kernel base
[B]KK-Build 4.8[/B]
- Catch up with CM, major update for wifi drivers hit on 8/19. All nightlies after will need this build to
allow wifi to turn on.
[B] KK-Build 5[/B]
-playing catch up with CM
- added partition comments to installer, shows what type of partitions it found.
[B] KK-Build 5 FINAL[/B]
-playing catch up with CM for the last time
[B] KK-Build 6 FINAL[/B]
-catch up w/cm
-zram from LP
-wiimote support from LP
-lowclocks from LP torched
-f2fs from 3.20 mainline Linux
-faux123’s async I/o back ports from mainline
LP CHANGELOGS
Code:
[B] LP BUILD #1 [/B]
- initial LP release
[B] LP BUILD #1.1 [/B]
- update fstab in f2fs checker to match current LP version. This was breaking radio.
[B] LP Build #1.3 [/B]
- remove dated LMK/zram tweaks
- add Low CPU clocks
- exFat support
- pile of async IO tweaks from Faux123
- wiimote support for gaming controller (useless until http://review.cyanogenmod.org/#/c/89843/ gets merged)
[B] LP Build #1.4 [/B]
- return of ZRAM, fully functional this time (this will likely cause issues with the popular swap mod as zram is effectively compressed swap in RAM)
- updated F2FS source to current 3.20 mainline linux kernel source. (Smooth like butter)
[B] LP Build #2.0 [/B]
- zram/f2fs merged into cm base, rebased accordingly
- updated for 5.1
[B] LP Build #2.5 ]/B]
- updated from CM mainline
- added display commits for ambient display compatability
My source : https://github.com/jrior001/Torched_kernel
Toolchain Source : https://github.com/Christopher83/linaro_toolchains_2014
Planned additions
- who knows what else...
Installer uses AnyKernel install method, will only work on s-off.
OLD DOWNLOADS:
JB BUILDS
Torched.B1.zip - 20.32 MB
Torched.B2.zip - 20.32 MB
Torched.B3.zip - 20.15 MB or Torched.B3-noOC-noVC.zip - 20.15 MB
Torched.B4.zip - 20.15 MB
Torched.B5.zip - PULLED NOT happy with this one
Torched.B6.zip
Torched.B6.1 or Torched.B6.1.VMIN
Torched-JB.B7 or Torched-JB.B7-noOC-noVC
KK BUILDS
Torched-KK Build #1
Torched-KK Build #2
Torched-KK Build #2.1 or Torched-KK.Build2.1-novc-nooc
Torched-KK Build #2.2 or Torched-KK.Build2.2-noOC-noVC
Torched-KK Build #3 or Torched-KK.Build3-noOC-noVC
Torched-KK Build #3.2 or Torched-KK.Build3.2-noOC-noVC
Torched-KK Build #3.5 or Torched-KK.Build3.5-noOC-noVC
Torched-KK Build #3.6 or Torched-KK.Build3.6-noOC-noVC
Torched-KK Build #3.7 or Torched-KK.Build3.7-noOC-noVC
Torched-KK Build #4.0 or Torched-KK.Build4.0-noOC-noVC
Torched-KK Build #4.1 or Torched-KK.Build4.1-noOC-noVC
Torched-KK Build #4.2 or Torched-KK.Build4.2-noOC-noVC
Torched-KK Build #4.3 or Torched-KK.Build4.3-noOC-noVC
Torched-KK Build #4.5 or Torched-KK.Build4.5-noOC-noVC
Torched-KK Build #4.6 or Torched-KK.Build4.6-noOC-noVC
STARTING WITH B4.7
ALL DOWNLOADS WILL NOW BE HOSTED ON CODEFIRE SERVERS HERE
http://downloads.codefi.re/jrior001/Torched-kernel
NEW DOWNLOAD LINK
Finally got around to setting up a site for myself all my current and some old work can now be found @
www.theflamingskull.com/evita.html
Voltage bump init script
Disclaimer : While this has been thoroughly tested, I cannot guarantee your device will not melt, explode or scare away kittens and babies. You know the risks involved , if you don't you shouldn't be here.
VOLTAGE INFO
*WARNING: messing with voltages can cause serious instability, luckily a clean flash will erase whatever you screw up*
Qcom knew our chips were shaddy and introduce a "vmin" check based on the chip Id's. If your chip is flagged, which most of ours are, it forces a minimum voltage on all freq of 1150mv instead of whatever the voltage table calls for. Since I introduced voltage control I've been disabling this check, this is why people have been getting such good battery life. Unfortunately this has caused instability or SOD on some users devices. The easy solution here is to use the VMIN version, (and give up 4hr screen time battery life) which leaves this check in place.
If your device can handle it use the normal version. Or if you like to tinker, try the normal version, if you have SOD issues raise the voltages slightly on the lower 5-6 frequencies until your device becomes more stable.
HOW TO FIND YOUR STOCK VOLTAGE TABLE:
usign a root file explorer, navigate to /proc/last_kmsg and copy the file to your sdcard. Many file readers will not oopen this file from the root directory. Open the file and search for " ACPU PVS", it should be around line 220 or so.
ACPU PVS : 0 = SLOW
ACPU PVS : 1 = NOM
ACPU PVS : 3 = FAST
Code:
STOCK VOLTAGE TABLES FOR REFERENCE
acpu_freq_tbl_slow[]acpu_freq_tbl_nom[]acpu_freq_tbl_fast[]
384000950000384000900000384000850000
486000975000486000925000486000875000
5940001000000594000950000594000900000
7020001025000702000975000702000925000
81000010750008100001025000810000975000
918000110000091800010500009180001000000
102600011250001026000107500010260001025000
113400011750001134000112500011340001075000
124200012000001242000115000012420001100000
135000012250001350000117500013500001125000
145800012375001458000118750014580001137500
151200012500001512000120000015120001150000
OC FREQUENCIESOC FREQUENCIESOC FREQUENCIES
167400012500001674000125000016740001250000
172800012750001728000127500017280001275000
Nice work man, I applaud the amount of work you're putting into our device to keep it relevant :thumbup:
PS. Your OP is lame, like, totally jk
Sent from my Evita
So far so good! I can finally run an AOSP 4.3 ROM and have it boot on the first try! Great work. Hope to see more from you
timmaaa said:
Nice work man, I applaud the amount of work you're putting into our device to keep it relevant :thumbup:
PS. Your OP is lame, like, totally jk
Sent from my Evita
Click to expand...
Click to collapse
hey man! Do you sleep sometimes ? :sly:
Z1cK said:
hey man! Do you sleep sometimes ? :sly:
Click to expand...
Click to collapse
Lol, yeah sometimes. I am on the other side of the world though.
Sent from my Evita
timmaaa said:
PS. Your OP is lame, like, totally jk
Sent from my Evita
Click to expand...
Click to collapse
I do 95% of my xda from the phone, all those pretty colors and graphics don't show up in the mobile app anyways
Sent from my One Xl using Tapatalk 2
Giving it a go on cm10.2 10/09 build with intellidemand, didn't change anything else.
Looking forward to seeing where it goes.
jrior001 said:
I do 95% of my xda from the phone, all those pretty colors and graphics don't show up in the mobile app anyways
Sent from my One Xl using Tapatalk 2
Click to expand...
Click to collapse
I'll take function over a purdy OP any day :thumbup:
Sent from my Evita
Tried to install this. Install aborted after doing a fair few things with status code 1. Reboot device just has CM left at the CM logo circling.
Now my CWM does not function even after reflashing it with fastboot. On booting into recovery it immediately reboots the device back to the white HTC logo then onto CM logo.
Installed TWRP 2.6.3.0 and that does the same boot loop.
Cant boot ROM, cant boot recovery. Fun fun
Not sure what has gone wrong but I would not suggest flashing this kernel without having full access to adb and fastboot. And dont do it at 1am when about to sleep
Edit:
fasboot erase cache seems to have gotten recoveries back on track.
twistedddx said:
Tried to install this. Install aborted after doing a fair few things with status code 1. Reboot device just has CM left at the CM logo circling.
Now my CWM does not function even after reflashing it with fastboot. On booting into recovery it immediately reboots the device back to the white HTC logo then onto CM logo.
Installed TWRP 2.6.3.0 and that does the same boot loop.
Cant boot ROM, cant boot recovery. Fun fun
Not sure what has gone wrong but I would not suggest flashing this kernel without having full access to adb and fastboot. And dont do it at 1am when about to sleep
Edit:
fasboot erase cache seems to have gotten recoveries back on track.
Click to expand...
Click to collapse
What CM version/build date and what recovery version were you running ? I'd like to try to reproduce. I tested on my cfx ROM and the 10/8 CM nightly, with no issues.
Sent from my One Xl using Tapatalk 2
jrior001 said:
What CM version/build date and what recovery version were you running ? I'd like to try to reproduce. I tested on my cfx ROM and the 10/8 CM nightly, with no issues.
Sent from my One Xl using Tapatalk 2
Click to expand...
Click to collapse
I had been on the 10/6 nightly. Downloaded the 10/09 nightly, this kernel, booted into twrp and flashed both. Worked perfectly.
It booted fine here, over carbon and slimbean no issue at all. Twrp 2.6.3.
Good job dev !!! First aosp 4.3 custom kernel. You're the man !! :thumbup::beer::thumbup:
Works fine on my end
Sent from my One Xl using Tapatalk 4
You just made my day
I'm on the 10/6 CM 10.2 nightly, just flashed this after another reboot session from the stock CM kernel. So far so good. I'll update tomorrow with any relevant info. Thanks jrior001
I was on cm 10/04, cwm 6.0.3.1 (non touch).
When I get a sec I will check the download. The zip looks healthy but maybe its corrupt. Everyone else seems to be going fine so might just be something localized to me.
twistedddx said:
I was on cm 10/04, cwm 6.0.3.1 (non touch).
When I get a sec I will check the download. The zip looks healthy but maybe its corrupt. Everyone else seems to be going fine so might just be something localized to me.
Click to expand...
Click to collapse
Ill try to test that combo later tonight if I can. I didn't test with cwm at all though, just the twrp 2.6.3.
Sent from my One Xl using Tapatalk 2
Like seriously, This as been here for a while now n I didn't notice....
Good job @jrior001
Sent from my One X using XDA Premium 4 mobile app
Scozzar said:
Which governor is better for battery, but doesn't sacrifice a whole lot of performance. Intellidemand or Smartmax?
Sent from my One Xl using xda app-developers app
Click to expand...
Click to collapse
I've always had good success with intellidemand and ondemand.
Sent from my Evita

[Kernel][5.1][Stock/GPE][Linaro 5.3] KaminariKernel R3 [7 July 2016]

KaminariKernel​
Code:
#include "std_disclaimer.h"
/*
* Your already voided warranty is now void again.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this KERNEL
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh my *** off at you.
* Really hard.
*/
Yo! This thread contains two kernels (regular and SuperLite). If you wanna see what SuperLite is, then go here. You should read everything before moving onto the downloads section.​
Hiya fellas.
This is my modded kernel for our loved Moto G 1st gen. In the beginning I decided to keep it for my personal use only, but then I decided to share it with you guys since there was no custom kernel compatible with the 5.1 stock rom.
Features:
Sources & Optimizations
- Based on Motorola's shared falcon/peregrine source
- Compiled with generic Linaro 5.3 toolchain
- Compiled with -O3 optimization & some more flags (e.g. Pipe flag)
- Optimized ARM RWSEM & Square Root algorithms
- Kernel-side NEON mode
- Some miscellaneous armv7 tweaks
Click to expand...
Click to collapse
Hotplugging Drivers
- Ye Olde MPDecision
- AutoSMP
Click to expand...
Click to collapse
Extra CPU Governors
- Bioshock
- Dancedance
- Impulse
- Lionheart
- Smartmax
- Yankactive
- Yankdemand
- Zzmoove
Click to expand...
Click to collapse
Extra I/O Schedulers
- Bfq
- Fiops
- Sio
- Vr
- Zen (Default)
Click to expand...
Click to collapse
Sound
- Faux's Sound Control
- Headset High Performance Mode
Click to expand...
Click to collapse
Screen/GPU
- Kcal Screen Control
- Dt2w/s2w
- State Notifier driver
- Adreno Idler
- GPU overclock & underclock (533MHz/100MHz)
Click to expand...
Click to collapse
Extra Sh*t
- USB Fast Charge
- Disabled gentle fair sleepers
- Extra TCP Congestion Controllers
- HID Driver (Use your phone as a USB keyboard/mouse)
- Compass & Accelerometer drivers now use State Notifier
- Fsync enabled by default
- Kexec-hardboot patch (for multirom compatibility)
- Power-efficient workqueues
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Downloads:
Regular Version
Overclock-Ready Version
Click to expand...
Click to collapse
Looking for previous releases?
- All releases until 1.2.3: Go here
- All releases from 1.3 onwards: Go here
- KaminariLite (discontinued): Go here
- KaminariSL (previously Optimized Stock): Go here
Click to expand...
Click to collapse
Got into trouble and need to go back to the stock kernel?
Then you should click this link here, bud!
Click to expand...
Click to collapse
Flashing & Tweaking Instructions (Follow this very carefully!!!):
- Place the zip at the root of your phone's internal storage (This is very important! If you flash the zip from a subfolder, you'll be left without wi-fi!!!)
- Reboot into recovery
- Flash the zip
(Another way: Reboot into recovery without copying the zip, and flash it via adb sideload)
- (Optional) Wipe cache and/or ART cache
- Reboot and have fun!
Coming from another kernel? Then I suggest you to (at least!!!) dirty flash your stock rom and kernel in order to avoid any issues!
Wanna tweak it? Use Kernel Adiutor! (I do NOT support Synapse!!!)
Click to expand...
Click to collapse
Want some info on what this kernel offers you?
Then go here! (Credits to @AssToast for suggesting and to @gsstudios for creating the site!)
Click to expand...
Click to collapse
"Thank You" Section
- Motorola/Lenovo, for putting up them sources
- The CyanogenMod team
- @Flashhhh, his work kinda inspired me to do this
- @Aayushya, he provided the initial cherry-picks
- @faux123, for Sound Control & Intellithermal
- @savoca, for Kcal Screen Control
- @hurtsky, a huge load of cherry-picks came from his sources
- @Alberto97, for the Linux version bumps (.43 up to .109)
- @YoshiShaPow, for some more stuff
- Some more fellas whose names I can't remember
Click to expand...
Click to collapse
XDA:DevDB Information
KaminariKernel (Lollipop-Falcon), Kernel for the Moto G
Contributors
kingkaminari
Source Code: https://github.com/Kamin4ri/KaminariKernel/tree/L
Kernel Special Features: Read above!!!
Version Information
Status: Stable
Current Stable Version: R3
Stable Release Date: 2016-07-07
Created 2015-09-07
Last Updated 2016-07-09
F.A.Q. (Read this before crying!!!!)
Q: Why did you develop this kernel?
A: Read the OP.
Q: ERMAHGERD DIS KERNEL SUCKZ, MAH BATTERY IS DEAD IN 30 MINS, PLZ HALP!
A: When I created this kernel, I never had the intention to have it decrease battery life. So before / instead of complaining, go check your f***ing wakelocks and fix them! The kernel isn't responsible for this, your apps and/or services are.
Q: Will this kernel work on AOSP/CM12.1/CM13 ROMs?
A: Go here for that.
Q: Will this kernel work on the GPE ROM?
A: Yes. And it'll also allow you to use this ROM without having to format /data to ext4.
Q: How do I report bugs?
A: If you wanna report a bug, then grab your kernel log - either by pulling /proc/last_kmsg (in case of a random reboot / kernel panic or oops) or copying the output of "dmesg" via shell - and paste it at pastie.org and link it in your post (or save it to a text file and attach it to your post). Don't bother getting logcats, they don't apply for kernel debugging purposes.
Q: How do I flash this?
A: I suggest you scroll up and read the OP. The instructions are there.
Q: How do I tweak this kernel?
A: Download Kernel Adiutor from the Play Store and have fun. For Synapse, scroll up and read the OP first.
Q: This kid is such a n00b!
A: Oh well then, why don't you go work on a kernel yourself, instead of criticizing my work and, by doing so, wasting your time?
Click to expand...
Click to collapse
Kaminari SuperLite (previously "Optimized Stock Kernel")​
Since KaminariLite has been discontinued, and Kaminari has become cleaner regarding features, I've been working on a version closer to the stock kernel, only more optimized.
Enter Kaminari SuperLite!
Diferences between this & the stock kernel:
- Compiled using generic Linaro 5.3 toolchain
- Bumped to Linux version 3.4.112
- Compiled with -O3 and misc optimization flags flags (Same as Kaminari)
- Most if not all of Kaminari's optimizations have been applied
- All governors except Interactive removed
- Supports both stock and GPE roms, regardless of filesystem (f2fs or ext4) used on /data
- Adds init.d support
- Default ZRAM size changed to 400MB
Click to expand...
Click to collapse
Differences between this & Kaminari:
- All governors except Interactive removed
- AutoSMP removed
- All TCP congestion algorithms except Westwood and Reno removed
- Additional I/O schedulers (zen, vr, sio, fiops, bfq) removed
- All non-essential features (FauxSound, Kcal, Dt2w...) have been removed
- Stock PowerHAL has been re-enabled
- Compressed using LZO (Kaminari uses XZ)
Click to expand...
Click to collapse
Wanna give it a try?
Click this link here!
Click to expand...
Click to collapse
Flashing & Tweaking Instructions:
Same as Kaminari.
Coming from regular Kaminari? Wipe your Kernel Adiutor data first! If you can flash the stock kernel before flashing this, it's even better!
Click to expand...
Click to collapse
Reserved!!!
Reserved again
null
Wow m first...
---------- Post added at 08:25 AM ---------- Previous post was at 08:17 AM ----------
Just flashed it...buttery smooth...smartmax works like charm and yeah happy to see the kcal screen control...thanks kaminari for this amazing kernel...
So it is only for stock 5.1 right?
Edit: Working smoothly on stock 5.1
Keep it up.
Working great on XT1031 with stock 5.1. Nice job!
@kingkaminari thanks for kernel. Any chance in future to add support for Aosp roms? that would be great.
Sent from my Moto G using Tapatalk
akshayk01 said:
@kingkaminari thanks for kernel. Any chance in future to add support for Aosp roms? that would be great.
Sent from my Moto G using Tapatalk
Click to expand...
Click to collapse
No, no plans for aosp/cm support yet - mainly because of my limited knowledge. But i'll consider making a version supporting these two
New build in the works! Just trying to fix a bug where all CPU cores stay online (needless to say that this causes a gigantic battery drain)
New build up!
https://www.androidfilehost.com/?fid=24052804347811341
https://www.androidfilehost.com/?fid=24052804347811344 - "Mori" version - with S2W/DT2W
Changelog here.
I'm getting an update binary execution error with TWRP, with both new builds. I tried disabling the device check in the anykernel.sh but no go. Also, I noticed in the init.kaminari.rc file in the zip, there is a typo in the power mode lines. It has 2 lines for cpu2 and none for cpu3. I just noticed the same thing with Optimus V41 Prime earlier today.
amarc78 said:
I'm getting an update binary execution error with TWRP, with both new builds. I tried disabling the device check in the anykernel.sh but no go. Also, I noticed in the init.kaminari.rc file in the zip, there is a typo in the power mode lines. It has 2 lines for cpu2 and none for cpu3. I just noticed the same thing with Optimus V41 Prime earlier today.
Click to expand...
Click to collapse
The previous zips i made here worked fine (i flash them through adb sideload). And i just fixed the init.kaminari.sh. Plus i've fixed s2w/s2s in the Mori version (dt2w is still partly broken though).
New build up!
Version: 0.96b
Download: Regular Version | "Mori" Version (DT2W)
Changelog here, but for those who don't wanna go there:
- Fixed s2w (dt2w halfscreen is still broken)
- Fixed derp in init.kaminari.sh
GPE users, please test my builds if you can / feel courageous enough to do it
I give up, except for the first build, they won't flash in recovery for me.
amarc78 said:
I give up, except for the first build, they won't flash in recovery for me.
Click to expand...
Click to collapse
I'll upload a zip without anykernel later. Btw, which version of twrp are you on? And do you have sufficient space in /system? Because this kernel pushes modules to it. I'm on twrp 2.8.7.0 + a modified stock rom, and i've had zero flashing errors so far
For those who are having problems with anykernel, i've uploaded special flashable zips without it.
Version is still 0.96b.
Downloads: Regular | DT2W
Version 096b flashed without any problems.
Just put the zip in the root of internal storage.
cool everything is just superb @kingkaminari hope you keep updating this kernel

[KERNEL][AOSP/CM13/CM14.1/LOS] NxKernel r4 [03.01.2017]

NxKernel
r4​
Yeah, jet another kernel for the falcon!
Why? You might ask and you are right.
I have been experimenting with kernel features, fixes and (alleged) improvements and always tried to create a kernel which I would be happy to use every day on my device. You know the usual stuff: long lasting battery with lag-free performance... It's not easy at all I have to tell. I am not a developer but know my way around Git and programming and researched a lot of sources on the internet looking for kernel stuff. Some patches offer improvements in speed and response time etc, but in reality, many of them do more harm than good when it comes to real-life praxis. In the end, I had a great collection of fixes and patches which I tried (nearly) one-by-one examining the gains and losses of 'em.
All the credits go to the developers of the features - and a little of it to me for putting them together and bringing them to the Moto G.
Features
Compiled with UBERTC 4.9.4 and O2 optimization level
Overclocked [email protected], [email protected], [email protected]
Intelliplug 4.0 CPU hotplug
Intelliactive and Intellidemand CPU governor
PowerSuspend 1.5
Intellithermal v2
Simple GPU Algorithm
Adreno Idler
Power Efficient Workqueues
Fast Charge v2
Dynamic fsync
Enabled NEON mode
Westwood TCP congestion control
Frandom fast random number generator
Wakelock toggles
Click to expand...
Click to collapse
Installation
Download the kernel to your device from the link below
Reboot to recovery
Flash the kernel
(optional) Wipe cache & dalvik cache (recommended)
Reboot
(optional for CM13 - bootloop on CM14) If you would like to enable frandom, copy the 20frandom script (by Ryuinferno, see attached) to system/etc/init.d and change its permissions to 0755.
Click to expand...
Click to collapse
Download
CM14.1/Lineage OS: r4 - https://www.androidfilehost.com/?fid=673368273298920933
CM13: r2 - v1.1 - https://www.androidfilehost.com/?fid=385035244224396903
Please do not mirror any of my files!
I switched to "r" naming scheme which means r1 (v1.0) and r2 (v1.1) are for CM13 and releases from r3 upwards for CM14.1 and Lineage OS.
Click to expand...
Click to collapse
Sources
https://github.com/NStep/android_kernel_motorola_msm8226/tree/cm-14.0-nx
Click to expand...
Click to collapse
Recommended settings in 2nd post.
Changelog in 3rd post.
Many thanks go to:
The CM Team
faux123
arter97
Hurtsky, Kaminari, pinkflozd, alinp, BryanByteZ
soniCron
...and the community for keeping alive a 3-year-old device :highfive:
Click to expand...
Click to collapse
If you would like to help or thank me, you might buy me a beer/coffe/coke to fuel the development.
XDA:DevDB Information
NxKernel, Kernel for the Moto G
Contributors
NxStep
Source Code: https://github.com/NStep/android_kernel_motorola_msm8226/tree/cm-14.0-nx
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: r4
Stable Release Date: 2017-01-03
Created 2016-10-21
Last Updated 2017-01-03
Recommended settings
I suggest Kernel Adiutor to edit the kernel settings. See attached screenshots for the details. The settings that cannot be seen on the pictures are untouched.
I've attached the two json files to import for the two custom controls in Kernel Adiutor, bluedroid_wakelock and USB_fast_charge. To be able to import directly just change the extensions to json.
*For CM13 only! Causes bootloop on CM14 for now.*
Also attached the frandom enabler script (20frandom) that is to be placed in system/etc/init.d wit the permission 0755. Make sure you remove the txt extension first!
Sorry for the extension messing, xda does not allow to upload json files or files without extension... I might move the files to my file host soon.
CPU governor tunables
*to be updated for CM14*
Optimized governor tunables based on soniCron's superb guide. It works with interactive and intelliactive as well and scales fine with overclocking enabled and disabled too.
Basically, it uses 4 optimal frequencies: 300MHz, 998MHz, 1190MHz and 1593MHz if OC enabled. It prevents the CPU jumping a lot between frequencies that do not provide enough performance for a given task. I managed to get 4-5 hours of screen on time with these settings.
Tunables are as following:
Code:
above_hispeed_delay: 20000 998400:60000
boost: 0
boostpulse_duration: 80000
go_hispeed_load: 75
hispeed_freq: 998400
io_is_busy: 1
min_sample_time: 40000
sampling_down_factor: 0
sync_freq: 0
target_loads: 98 384000:56 600000:31 787200:27 998400:82 1094400:9 1190400:95 1305600:3 1344000:4 1401600:7 1497600:6 1593600:85
timer_rate: 25000
timer_slack: 80000
two_phase_freq: 998400,998400,998400,998400
up_threshold_any_cpu_freq: 998400
up_threshold_any_cpu_load: 95
Changelog
r4 - 03.01.2017
merged latest CM14.1 kernel sources
update to latest prebuilt toolchain UBERTC 4.9 by mdalexca
added some additional patches, see Github
r3 - 25.11.2016
intial release for CM14.1
merged latest CM14.1 kernel sources
switched to "r" naming scheme
r2 - v1.1 - 11.11.2016
merged latest CM13 sources
r1 - v1.0 - 21.10.2016
initial release
Reserved another just in case.
NxStep said:
NxKernel
v1.0​
Created 2016-10-21
Last Updated 2016-10-21
Click to expand...
Click to collapse
Downloaded and installed a couple of hours ago.
Feels smooth and snappy. Have not encountered any glitches.
I'm running [7.0.0_r14]AOSP+OM
Thank you for bringing another kernel to this old device.
this kernel have multirom support?
thanks for your amazing work
Pretty nice idea man, I'll test it. Thanks for this kernel
Thank your for your feedback!
aldanopolis said:
this kernel have multirom support?
thanks for your amazing work
Click to expand...
Click to collapse
No, it doesn't. I haven't really examined this feature as I use only one ROM on my phone. But I might add it in the future if it is requested.
NxStep said:
Thank your for your feedback!
No, it doesn't. I haven't really examined this feature as I use only one ROM on my phone. But I might add it in the future if it is requested.
Click to expand...
Click to collapse
IMHO, As we have no kexec workaround in last version of multirom , this is not mandatory.
Any way to backup the stock kernel of Orion Os in case I find any issue with this kernel?
Guillosd said:
Any way to backup the stock kernel of Orion Os in case I find any issue with this kernel?
Click to expand...
Click to collapse
Use Flashify
It has the option to backup the current kernel and can also flash imgs, zips and stuff.
Good to see another kernel available for our old (but seemingly immortal?) phone. Best of luck to you!
Like Kamin4ri said thanks for the kernel i really hope that moto g be immortal best phone that i used for sure, good enough for what i need.
Would be great if it has dt2w...
Aayushya said:
Use Flashify
It has the option to backup the current kernel and can also flash imgs, zips and stuff.
Click to expand...
Click to collapse
nandroid restore would work as well ,right?
Hiraethic said:
nandroid restore would work as well ,right?
Click to expand...
Click to collapse
Yes
everything works awesome on aosp 7.0 by srisuriya
Skarni said:
Downloaded and installed a couple of hours ago.
Feels smooth and snappy. Have not encountered any glitches.
I'm running [7.0.0_r14]AOSP+OM
Thank you for bringing another kernel to this old device.
Click to expand...
Click to collapse
Did you change any settings in Kernel Auditor?
---------- Post added at 10:48 AM ---------- Previous post was at 10:46 AM ----------
NxStep said:
Recommended settings
~snip
[/CODE]
Click to expand...
Click to collapse
Those pictures on second post are recommended settings?
kamesh_kraken said:
Did you change any settings in Kernel Auditor?
---------- Post added at 10:48 AM ---------- Previous post was at 10:46 AM ----------
Those pictures on second post are recommended settings?
Click to expand...
Click to collapse
I did apply some of the settings from the pictures. I chose different scheduler and network TCP algorithm.
I do not have the paid version of Kernel Adiuitor, so I was not able to use the .json files.
Skarni said:
I did apply some of the settings from the pictures. I chose different scheduler and network TCP algorithm.
I do not have the paid version of Kernel Adiuitor, so I was not able to use the .json files.
Click to expand...
Click to collapse
Use a mod, kernel adiutor is open source

[KERNEL] [29/09] PriimaFerrari 1.0.2 [LOS]

Hi all!
I'm back here on Ferrari development after having aquired some skills
First of all, huge thanks to @thewisenerd for his great job updating the kernel to caf tags
Anyway, im here to bring new life (or kind of it) to my dad's Mi4i.
It is based off the lastest 8.1.5.x firmware rom (AOSCP, LOS, etc ...)
Features:
Updated to lastest LA.BR.1.2.9-03610-8x16.0 caf tag
Patched many security holes
Reduced load average
Ext4 updates
Tuned CFQ and setted as default IO Sched
Added Adreno Idler
Added ExFat support
Patched many drivers to work with Power Efficient WQ
Optimized CPU-Boost
Tuned Westwood
Download:
Here
Instruction:
- reboot to TWRP
- Dirty flash your current ROM (or flash boot.img of it)
- flash PriimaFerrari kernel
- reboot
if it doesnt boot, a logcat would be very appreciated.
If random reboots happens, then you should follow this:
Code:
adb shell
cat /sys/fs/pstore/console-ramoops > /sdcard/console-ramoops.txt
exit
adb pull /sdcard/console-ramoops.txt
Credits:
- thewisenerd
- faizauthar12
- ferrari-dev-team
- franciscofranco
- eng.stk
- arter97
- many more ...
XDA:DevDB Information
[KERNEL] [29/09] PriimaFerrari 1.0.2 [LOS], Kernel for the Xiaomi Mi 4i
Contributors
sys01
Source Code: https://github.com/FedericoBenedetti/android_kernel_xiaomi_ferrari
Kernel Special Features:
Version Information
Status: Testing
Created 2017-09-11
Last Updated 2017-09-29
Nope didnt boot stuck on mi logo. Couldnt take a logcat sorry. And whats with all the strange links in the op? weird!!
Kindly cook kernel which supports 5 Ghz wifi band also. All custom kernels of this device support only 2.4 ghz wifi band.
Will this kernel work on miui?? I'm on miui 7.9.7 global. And does this kernel support quick charging?
Made another test version:
HERE
I need to know only if it boots
sys01 said:
Made another test version:
HERE
I need to know only if it boots
Click to expand...
Click to collapse
Nop it stuck at Mi logo.
New test version, this time should boot fine thanks to @thewisenerd suggestion! (thanks mate)
as before, i only need to know if it boots properly, download: here
sys01 said:
New test version, this time should boot fine thanks to @thewisenerd suggestion! (thanks mate)
as before, i only need to know if it boots properly, download: here
Click to expand...
Click to collapse
Yes it does boot without any problem
Does latest build is compatible with android 7.1.2?
Hi guys
Im here to ask you again to test this new version
changelog:
- merged "LA.BR.1.2.9-03610-8x16.0" from caf
- merged "LA.BR.1.2.9-03610-8x16.0" for WIFI driver
- merged lastest f2fs/stable/3.10.y driver
- Some little optimizations here and there
hope it boots!
download here
Hi bro
Can you look into this thread: https://forum.xda-developers.com/mi-4i/help/add-mhl-support-mi4i-using-custom-t3680011
sys01 said:
Hi guys
Im here to ask you again to test this new version
changelog:
- merged "LA.BR.1.2.9-03610-8x16.0" from caf
- merged "LA.BR.1.2.9-03610-8x16.0" for WIFI driver
- merged lastest f2fs/stable/3.10.y driver
- Some little optimizations here and there
hope it boots!
download here
Click to expand...
Click to collapse
Hey guys does it boots up?
​
sys01 said:
Hey guys does it boots up?
Click to expand...
Click to collapse
Yes it booted. I'm using aosp extended 4.6
Nilu99 said:
​Yes it booted. I'm using aosp extended 4.6
Click to expand...
Click to collapse
Thanks for the feedback
New version coming soon :highfive:
Yeah..it boots on LOS 14.1
sys01 said:
Thanks for the feedback
New version coming soon :highfive:
Click to expand...
Click to collapse
Wow...eagerly waiting for the new update..
hey its boot up on lineage-14.1-20170501-UNOFFICIAL-ferrari-anbu . Should i put logcat here or something? Thanks dev anyway .
Priima Ferrari 1.0.2 is out!
Changelog:
- Patched many security holes (important!)
- Reduced load average
- Ext4 updates
- Tuned CFQ and setted as default IO Sched
- Added adreno idler
- Added ExFat support
- Patched many drivers to work with Power Efficient WQ
- Optimized CPU-Boost
- Tuned Westwood
You can download it HERE
Enjoy!
sys01 said:
Priima Ferrari 1.0.2 is out!
Changelog:
- Patched many security holes (important!)
- Reduced load average
- Ext4 updates
- Tuned CFQ and setted as default IO Sched
- Added adreno idler
- Added ExFat support
- Patched many drivers to work with Power Efficient WQ
- Optimized CPU-Boost
- Tuned Westwood
You can download it HERE
Enjoy!
Click to expand...
Click to collapse
Booted perfectly. Till now feeling optimized. No issues found. Good work bro :good:
Can it be used in miui?

[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

Categories

Resources