[KERNEL][KK][STOCK][757]intersectRaven's Kernel - 20140625_15XX - Xperia Z1 Compact Original Android Development

Development Goals:
- stability
- energy savings due to more efficient algorithms (whether theoretical or not is unimportant)
- strictly no overclocking unless approved by the manufacturer or my source base integrates it (also, even if my source base integrates it, expect no support for it)
- no undervolting as well unless the manufacturer approves it since it's relatively pointless IMHO...
- all improvements should require MINIMAL user interaction (e.g. you don't need to do anything except flash the kernel or at the very least use SetCPU or the like to set fixed options)
- stability
Latest Kernel Here
20140625_15XX
- numerous power optimizations to ensure lowest level of power is used when possible
- 2-way stereo recording patch from DooMLoRD
- some patches for ashmem from 4.4.3 kernel sources
20140615_10XX
- RCU optimization
- convert percpu access to non-blocking
- prevent cpu stall when loading NEON code
20140614_12XX
- additional futex optimizations
20140612_21XX
- larger futex hash table
- initialization of cpu set to 0 utilization
- allow kswapd to sleep if up too long
- ion optimizations
- msm_thermal optimization
20140611_12XX
- reverted the PLL timing optimization due to problems initializing MDSS framework
20140609_14XX (deleted due to problems)
- PLL timing optimization
- GPIO tweaks for reduced power consumption in some states
20140608_15XX
- initial public release
- further details to follow
You can find my other kernels at:
intersectRaven's Kernels
GitHub is at:
intersectRaven's GitHub

Special Thanks To:
Steve Kondik - do I need to say anything further?
DooMLoRD - some patches I integrated are from his repo
franciscofranco - some patches I integrated are from his repo
faux123 - some patches I integrated might be from his repo

Reserved 2

Reserved 3

which rom can be use with this kernel? stock or cm rom?

najar360 said:
which rom can be use with this kernel? stock or cm rom?
Click to expand...
Click to collapse
Updated the thread title to clarify.

Can't boot after flashing this kernel via fastboot.
Black screen with green led

cybertank said:
Can't boot after flashing this kernel via fastboot.
Black screen with green led
Click to expand...
Click to collapse
This is only tested to work on stock 757 ROM...

intersectRaven said:
This is only tested to work on stock 757 ROM...
Click to expand...
Click to collapse
It will work on deodex stock 757? Or only original ROM?

In theory, whether it's deodexed or not won't make a difference... I only have official ROM to test... also, is your panel JDI or AUO?
Sent from my D5503 using Tapatalk

intersectRaven said:
In theory, whether it's deodexed or not won't make a difference... I only have official ROM to test... also, is your panel JDI or AUO?
Sent from my D5503 using Tapatalk
Click to expand...
Click to collapse
JDI.
Stock deodexed ROM - not working (((

cybertank said:
JDI.
Stock deodexed ROM - not working (((
Click to expand...
Click to collapse
Interesting... one of my secret optimizations might not work with JDI... either that or the ROM you're using replaced something... can the device still connect to adb or it's just blank?
Sent from my D5503 using Tapatalk

intersectRaven said:
Interesting... one of my secret optimizations might not work with JDI... either that or the ROM you're using replaced something... can the device still connect to adb or it's just blank?
Sent from my D5503 using Tapatalk
Click to expand...
Click to collapse
Rom is full stock, only deodex+my soft.
Adb - not work. Just black screen + green led

cybertank said:
Rom is full stock, only deodex+my soft.
Adb - not work. Just black screen + green led
Click to expand...
Click to collapse
I uploaded a new kernel for you to test (same directory, filename: boot-JDI.img). Please post if it works so I can make changes to my future kernels.

intersectRaven said:
I uploaded a new kernel for you to test (same directory, filename: boot-JDI.img). Please post if it works so I can make changes to my future kernels.
Click to expand...
Click to collapse
Still not work. No sony logo at boot, only black screen

cybertank said:
Still not work. No sony logo at boot, only black screen
Click to expand...
Click to collapse
That's odd. How are you flashing the kernel btw?

intersectRaven said:
That's odd. How are you flashing the kernel btw?
Click to expand...
Click to collapse
Code:
d:\mobile\sony\soft\fastboot>fastboot.exe flash boot boot-JDI.img
sending 'boot' (7106 KB)...
OKAY [ 0.670s]
writing 'boot'...
OKAY [ 0.478s]
finished. total time: 1.149s

cybertank said:
Code:
d:\mobile\sony\soft\fastboot>fastboot.exe flash boot boot-JDI.img
sending 'boot' (7106 KB)...
OKAY [ 0.670s]
writing 'boot'...
OKAY [ 0.478s]
finished. total time: 1.149s
Click to expand...
Click to collapse
Really odd. Wouldn't recommend it on non-completely stock then. Still weird though.

intersectRaven said:
Really odd. Wouldn't recommend it on non-completely stock then. Still weird though.
Click to expand...
Click to collapse
Ok. Now i try full stock 757 and yours kernel.
---------- Post added at 01:36 PM ---------- Previous post was at 01:12 PM ----------
On fresh full stock 757, both version of your kernel give same result - black screen. Sad, but true ((

cybertank said:
Ok. Now i try full stock 757 and yours kernel.
---------- Post added at 01:36 PM ---------- Previous post was at 01:12 PM ----------
On fresh full stock 757, both version of your kernel give same result - black screen. Sad, but true ((
Click to expand...
Click to collapse
Ok...that's weird.

Related

[KERNEL] [Mar 17] Bulletproof-1.2 | S2W | FIOPS | Intellidemand | battery life

Bulletproof Kernel
for Sense-based Jelly Bean ROMs​
This is a stockish kernel optimized for speed, stability and battery life with
a few added features like sweep2wake. There is no overclocking or voltage adjustments,
no scripts running at boot and no installer options. It should just work.
Code:
* Standard disclaimer:
* Your warranty is now void. Use at your own risk.
* In other words: It is your choice to use this software,
* I am not responsible for any damage or problems!
FEATURES:
based on HTC source code
Aroma installer
optimized for extended battery life
compiled with -O3 optimization (Linaro 4.7.3)
sweep2wake
/system writable
NTFS r/w support
intellidemand governor (default)
FIOPS scheduler (default)
increased refresh rate for HDMI output via MHL adapter
DOWNLOAD
Bulletproof-1.2
Please hit the Thanks button if you download this
If you really like it, please consider buying me a beer
Actually, I won't spend it on beer. I'm saving it all up to buy my next device
Thanks to those who have donated!
INSTALLATION
1. Install zip from TWRP Recovery
2. Reboot!
S-OFF recommended for easy installation
S-ON:
The installer includes a method to flash the boot.img for S-ON devices;
however, some people still have difficulties. If it doesn't work:
1. extract boot.img from the zip, reboot to bootloader and do:
fastboot flash boot boot.img
2. you must still run the installer to get the correct modules for this kernel
First boot will take a while. Let it load all the way, then let it settle in for a few minutes, then reboot again.
NOTES
Click to expand...
Click to collapse
Special thanks:
showp-1984 for S2W
​
CHANGELOG:
March 17, 2013 - Bulletproof-1.2
-fix s2w and reboots
March 16, 2013 - Bulletproof-1.1
-O3 linaro 4.7.3
-intellidemand default governor
-fiops default scheduler
-add sweep2wake
-init.d support
-ntfs r/w support
-fix HDMI refresh rate
-xz kernel compression
-arm cpu topology
-update cpupower according to cpu load
-adjust readahead to 2048
Click to expand...
Click to collapse
Source:
Bulletproof-1.0
Stock Kernel with write protection disabled
Download: http://www.androidfilehost.com/?fid=9390352402789433374
Instructions:
Install zip from recovery. The installer installs the correct modules for this kernel.
s-on devices may have to extract the boot.img from the zip, reboot to bootloader and do:
fastboot flash boot boot.img
Click to expand...
Click to collapse
.
flar2 said:
Stock Kernel 3.4.10 for HTC Jelly Bean Sense +
Download: http://goo.gl/SKpOE
Instructions:
Install zip from recovery. The installer installs the correct modules for this kernel.
s-on devices may have to extract the boot.img from the zip, reboot to bootloader and do:
fastboot flash boot boot.img
NOTE: I do not have this device, so I'm depending on you to test that all of this works. I couldn't test the installer, so if it fails, please save the log file and send it to me.
.
Click to expand...
Click to collapse
caused a boot loop for me if done through aroma installer
---------- Post added at 04:04 AM ---------- Previous post was at 03:30 AM ----------
decievedthought said:
caused a boot loop for me if done through aroma installer
Click to expand...
Click to collapse
in fact this has soft bricked my device I am now in the process of using a ruu to try and sort this out....
---------- Post added at 04:27 AM ---------- Previous post was at 04:04 AM ----------
decievedthought said:
caused a boot loop for me if done through aroma installer
---------- Post added at 04:04 AM ---------- Previous post was at 03:30 AM ----------
in fact this has soft bricked my device I am now in the process of using a ruu to try and sort this out....
Click to expand...
Click to collapse
I cant get my device to boot now it just goes into a bootloop. In twrp it cant mount data or cache! help.
---------- Post added at 04:32 AM ---------- Previous post was at 04:27 AM ----------
decievedthought said:
caused a boot loop for me if done through aroma installer
---------- Post added at 04:04 AM ---------- Previous post was at 03:30 AM ----------
in fact this has soft bricked my device I am now in the process of using a ruu to try and sort this out....
---------- Post added at 04:27 AM ---------- Previous post was at 04:04 AM ----------
I cant get my device to boot now it just goes into a bootloop. In twrp it cant mount data or cache! help.
Click to expand...
Click to collapse
ok after reinstalling the rom it booted.
Is this Kernel working in JB_by_luxandroid_v4 rom .....?
Re: [KERNEL] JB Stock Kernel 3.4.10 (write protection disabled)
Thak you flar for this! Please include some stuff you have implement in kernel for original one s.
Sent from my HTC One S using xda app-developers app
Re: [KERNEL] JB Stock Kernel 3.4.10 (write protection disabled)
kapilrtn said:
Is this Kernel working in JB_by_luxandroid_v4 rom .....?
Click to expand...
Click to collapse
Yes it's JB kernel
Sent from my One S C2 using Tapatalk 2
my boot loader is s-on so how can i use..?
install from zip or extract boot.img & flash via fastboot mod
AW: [KERNEL] JB Stock Kernel 3.4.10 (write protection disabled)
kapilrtn said:
my boot loader is s-on so how can i use..?
install from zip or extract boot.img & flash via fastboot mod
Click to expand...
Click to collapse
Read the op
Sent from Space
working fine
thanks
worked fine
ROM: luxandroid_v4
Procedure:
installed zip from recovery
wiped dalvik cache
reboot fastboot
flash boot.img
left it boot
it did a reboot by it self, second boot went fine
there is no more r/w protection
wifi works
Thank you
btw. any chance of making elemental kernel with over / under volting, oc, zram etc. options?
Works!!! Keep up the good work. More thankses coming your way
Re: [KERNEL] JB Stock Kernel 3.4.10 (write protection disabled)
What happened to me then.
Sent from my HTC One S using xda premium
Re: [KERNEL] JB Stock Kernel 3.4.10 (write protection disabled)
decievedthought said:
What happened to me then.
Sent from my HTC One S using xda premium
Click to expand...
Click to collapse
I see no logcat from U so your question is pointless
Sent from my One S C2 using Tapatalk 2
luxandroid said:
I see no logcat from U so your question is pointless
Sent from my One S C2 using Tapatalk 2
Click to expand...
Click to collapse
you always do have a bit of a attitude dont you lux ever thought of being friendly?
bro I am friendly like hell bellive me,btw tel me how can someone answer your q, in OP its nicely stated for issues to have log attached,isnt it? we can only gues what is wrong..and U tell me have you ever thought to follow instructions from OP,to read whole post and act like is asked from you...damn
Can someone please upload this update filne on dev host or somewhere else. I have blocked dropbox at my job.
https://mega.co.nz/#!z8ZCkZ5D!CjlCyxTjE_sE7GZ2v39HmDyL_RdetV2ZUgx6Z-K8rXY
hope mega is not blocked
Bipe said:
https://mega.co.nz/#!z8ZCkZ5D!CjlCyxTjE_sE7GZ2v39HmDyL_RdetV2ZUgx6Z-K8rXY
hope mega is not blocked
Click to expand...
Click to collapse
Mega works!
Re: [KERNEL] JB Stock Kernel 3.4.10 (write protection disabled)
Does someone knows how to fix camera and bluetooth on CM and Paranoid rom with this kernel?
Sent from my HTC One S using XDA Premium HD app
Re: [KERNEL] JB Stock Kernel 3.4.10 (write protection disabled)
Bipe said:
worked fine
ROM: luxandroid_v4
Procedure:
installed zip from recovery
wiped dalvik cache
reboot fastboot
flash boot.img
left it boot
it did a reboot by it self, second boot went fine
there is no more r/w protection
wifi works
Thank you
btw. any chance of making elemental kernel with over / under volting, oc, zram etc. options?
Click to expand...
Click to collapse
working like Bipe's steps
TuneIn Radio is gone, he he ''
Sent from my HTC One S using xda app-developers app
When you say that "there is no more r/w protection", does it mean that we can flash hboot or stuff like that in system, and changes will be permanently?

[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

gpl | abyss kernel 2.00 | B170/B180/NCS/fRomFuture

Hi Huawei P9 people!
This is my modified kernel with some kernel optimizations and some compiler optimizations.
The goal of abyss-caf is to compromise stability and improved performance.
I will not be overhauling this project with changes that are not logical to add.
This kernel should work on all stock based roms; there is a separate version for NCS rom.
How does one achieve this?
- build kernel with an optimized toolchain
- use compiler optimization flags (experimental)
- remove redundant code
- improve existing code with more efficient code
- reduce/increase speed of timers (depends on what type of function)
- etc. (most are not easy to explain)
This kernel is built with Linaro GCC 4.9.4 that is optimized for ARM64 devices.
Is there actually a performance improvement?
With all the changes added up, there should be. Whether or not one notices the difference is another thing.
Personally, I do feel the performance difference. It is easier to notice the difference with lower level specs.
For those interested in how the kernel optimizations will benefit/work, please look at my github source and read the commit messages.
For those interested in how the compiler optimizations/hacks will benefit/work, please look at this article.
Downloads:
BasketBuild
AFH
Source:
GitHub
I do not mind if there's some non-development/off-topic discussion here, just no discussion about other works that is nowhere near related to mine.
Also, please refrain from comparing works here; it really kills the spirit of development. Go do that in some other thread.
XDA:DevDB Information
abyss kernel for stock and stock based roms, Kernel for the Huawei P9
Contributors
kwoktopus, paulobrien, arter97, flar2, Christopher83, Cl3Kener, frap129
Source Code: https://github.com/kwoktopus/abyss_kernel_eva
Kernel Special Features: MAJOR KEY
Version Information
Status: Testing
Created 2016-08-24
Last Updated 2016-10-08
Main Patches and Features:
- Abyss Optimizations (compiler)
- optimized square root algorithm (3x faster)
- added BFQ io scheduler (now default)
- backported random from Linux 4.2+ (better entropy, better performance)
- utilize power efficient workqueues all over the kernel
- port quickwakeup driver for hisi from moto
- optimized lib patches
- optimized arm64 lib patches
- disabled gentle_fair_sleepers for better UX
- enhanced multicore decision making
How to install:
Flash the proper kernel zip in TWRP.
New to phone development?
If you are new to these forums or development in general,
please consult other members before trying this out.
There is no shame in asking for help politely and respectfully,
as long as you don't quote the whole OP or think slower than a sloth.
Frequently Asked Questions:
Is this a custom kernel?
I was asked this question once, and it posed as a real good question. I do not consider abyss to be a "custom kernel" per se, but more so as a modified kernel. The patches and features that go into this kernel do not make it customizable. What they do is improve what has already been implemented. It is like swapping a car's engine for a better one rather than just adding LED flooring lights and fancy car mats.
Can you add [this] and [that] feature to abyss?
Something I pride myself with this kernel is that it does not have a bunch of random, useless features or patches mashed into it. Everything put into this kernel is thought out well and tested. I see a lot of works being made popular because it has [this] and [that] feature when really, it's nothing revolutionary. As a matter of fact, most things added to any kernel will not make it 5x better than any other kernel. Most of the time, simple is better; and in this case it definitely is!
Awesome, will stay tune about new releases, will try the kernel later.
Just for clarify, kernel works in any P9 or just for L09 or L19?
jeremymolina said:
Awesome, will stay tune about new releases, will try the kernel later.
Just for clarify, kernel works in any P9 or just for L09 or L19?
Click to expand...
Click to collapse
There's no reason that it wouldn't work, but there's always that slight chance. Pretty sure you'll be fine
Finally! May God bless you!
---------- Post added at 08:13 AM ---------- Previous post was at 08:07 AM ----------
I have a question though.
Will it conflict with the L Speed app I'm currently using?
And to finish off my day (the start of many of yours), here is my 2nd release for y'all.
Code:
- optimized square root algorithm (3x faster)
- added BFQ io scheduler (now default)
- backported random from Linux 4.2+ (better entropy, better performance)
- utilize power efficient workqueues all over the kernel
- port quickwakeup driver for hisi from moto
- optimized lib patches
- optimized arm64 lib patches
- disabled gentle_fair_sleepers for better UX
- enhanced multicore decision making
abyss-caf-eva-nightly-20160824.zip
darthkir said:
Finally! May God bless you!
Click to expand...
Click to collapse
God has blessed me alright :victory:
darthkir said:
Will it conflict with the L Speed app I'm currently using?
Click to expand...
Click to collapse
Not sure why it would, what tweaks do you have turned on? It should be good to go, I highly doubt anything can go wrong with any sort of non-kernel related tweaks.
this is great news! You have my thanks
For anyone on NCS rom, the kernel will not boot for you. Please test this build out. I will be looking into using an AnyKernel 2.0 flash method for TWRP users so that we don't run into conflicts like these in the future.
abyss-caf-eva-ncs-20160824.zip
Not only my rom, its for all recommended if root is installed.
This is ****ing awesome kwoktopus, so excited to try your work (tomorrow). Finally some more new development for the great P9.
Thanks kwoktopus !
Can i flash your kernel on fRomFuture ROM ?
Salamender said:
Thanks kwoktopus !
Can i flash your kernel on fRomFuture ROM ?
Click to expand...
Click to collapse
Not exactly sure. If fRomFuture has ramdisk modifications then probably not, I'll have to make a separate version for it. If you would like to try, download both versions of the kernel and try.
kwoktopus said:
Not exactly sure. If fRomFuture has ramdisk modifications then probably not, I'll have to make a separate version for it. If you would like to try, download both versions of the kernel and try.
Click to expand...
Click to collapse
Neither working on fRomFuture, tried with TWRP flash image method, when i get home ill try with fastboot also.
edint3000 said:
Neither working on fRomFuture, tried with TWRP flash image method, when i get home ill try with fastboot also.
Click to expand...
Click to collapse
If it doesn't work even through fastboot, try flashing my test versions.I will upload it with changes for fRomFuture that may work. Stay posted
edit: i am running low on bandwidth from all the source downloading lately, can someone upload the boot.img from the latest fRomFuture build
Uh...probably super obvious, but do you need unlocked BL and/or root in order to flash the kernel? Ta.
kwoktopus said:
If it doesn't work even through fastboot, try flashing my test versions.I will upload it with changes for fRomFuture that may work. Stay posted
edit: i am running low on bandwidth from all the source downloading lately, can someone upload the boot.img from the latest fRomFuture build
Click to expand...
Click to collapse
Here it is
edint3000 said:
Here it is
Click to expand...
Click to collapse
Try flashing the kernel attached, see if it works
Hi.
I've tried the kernel clean on the NCS ROM 1.2.
Unfortunately, the camera failed to launch and I noticed jerkiness in response.

[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] 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