[Kernel][Stock][KK] Lenovo A6000 MoStock-v1.48 [EOL] - Lenovo A6000/Plus ROMs, Kernels, Recoveries, & Oth

The Background:
I got this phone as a replacement to Galaxy Grand and soon I realised it's not sufficient to be on the stock kernel for all obvious reasons.
I'm used to great kernels like Dorimanx on SII.
So I searched on the Lenovo and XDA forums and soon realised that Lenovo was releasing incomplete sources for their devices(Specially A6000). Soon they released LP build for A6000 along with complete kernel source. The LP source builds well but KK source was still incomplete. But the wait was over and they release complete source for Kitkat release.
I'm still using KK on this device because their LP builds are not yet mature and couple of features like Encryption are still missing on LP (I need them)
DISCLAIMER:
ONLY FOR KK 4.4.4 Stock ROM
I'm not responsible for bricked devices or flashing wrong version
You are using this kernel at your own responsibility
NO Lollipop Support, Don't ask for it
——— !!!!!!!! YOU HAVE BEEN WARNED !!!!!!!! ———
FEATURES:
This kernel include the following additional features:
* Built on Linaro 4.9.4, (Stock kernel is on 4.7)
* Cortex-A53 Optimizations
* Additional Governors, Alucard, Hyper, darkness, OnDemandPlus and others.
CREDITS:
Dorimanx (for all his kernel sources, SII, LG)
Alucard_24(for Alucard Governor)
Torvalds (Kernel 3.6.Y maintainer)
Stelistcristi (Contents of this post)
osm0sis (For Android Image Kitchen)
Kiran Anto (for his Razor kernel sources)
Download
http://chhapil.github.io
KERNEL SOURCE:
Source code of the kernel can be found here:
https://github.com/chhapil/Kernel-Lenovo-A6000-KK
TO Do List:
I'm planning to add following features, but NOT ETA
1. Create flashable zip instead of boot.img
2. Add SuperSU and busybox to the build
3. Add additional IO schedulers
4. Add Synapse Support
5. Overclocking
6. Other mods that I see fit
Steps:
1. adb reboot bootloader
2. For temporary flash, fastboot boot boot.img
3. For permanent flash, fastboot flash boot boot.img
4. The phone will reboot automatically.
5. The Stock Rom doesn't show Kernel version on about page, here is the command to verify the kernel.
PHP:
adb shell cat /proc/version
Linux version 3.10.28-Kernel-MoStock-V1.1-A6000+ ([email protected]) (gcc version 4.9.4 20150629 (prerelease) (crosstool-NG 1.20.0 - Linaro GCC 2015.06) ) #1 SMP PREEMPT Fri Nov 20 18:53:31 IST 2015
Click to expand...
Click to collapse
​

Changelog
ChangeLog
1.48
Added FauxSound
Added KCAL control
1.45
1. Now I'll be compiling and publishing modules also, flashable zip in to-do list
2. Latest prima wlan driver module in modules.zip
3. Fixed FM crashing issue.
1.44
kernel updated to mainline linux 3.10.94
lz4 compression on zram, ramdisk and kernel
Toolchain updated to UBERTC 5.3.x
1.25
This is GPU centric release
Added GPU frequency range from 100Mhz to 465Mhz.
Updated Adreno governor and Idler
Other tweaks related to build files.
Fixed FM Issue
This will result in longer standby time and less power usage during use.
I have been testing this kernel for a while now
1.22
1. Vibration control added
2. PowerSuspend Drivers updated
3. Some debuggers turned off
4. Logger size reduced
5. Some other optimizations
Thanks to @Kiran Anto I have been cherry picking is his commits recently.
1.18
Fsync option added to controls
Alucard hotplug + Power Suspend driver
Disabled MMC CRC check for faster performance
USB Fast charging support
1.12
Uber 6.0 Toolchain
Updated to 3.10.31
Other changes related to builds
1.7
This is a test build, I have updated the toolchain from Linaro 4.9.4 to Uber 5.2.
1.6
1. Busybox reverted, was causing issue with battery status,
2. recovery perms fixed, adb should work fine now
3 .Flashable script pulled from Dorimanx's LG G2 build, thanks for all his work till date
4 .I/O schedulers added, zen, fiops
5. Build script and tools updated
Currently recovery flashable zip also add Stweaks, but it won't work
1.3
busybox added
TCP congestion controls enabled
init.d support
more changes to build files

FAQs
1. Can I use it with MIUI ROM?
Honestly I don't know, people of reported that it works, better search the thread of relevant details
2. I bricked my phone!
Safest procedure to check whether your phone works with this kernel is not flash it in first attempt.
just put command "fastboot boot boot.img"
This temporarily boots phone with new kernel,
If phone fails to start with newer kernel it automatically falls back to older kernel.
If it works well, then you can permanently flash it with "fastboot flash boot boot.img"
3. My Wifi/FM not working
This is the issue with the kernel modules.
This issue has been laying around, here is the cause,
FM, Wifi drivers are loaded as modules by the kernel as per need. It has its own advantages in terms of kernel size and memory utilizations.
On stock ROM these modules are loaded from /system/lib/modules
My efforts had been till date to minimise the changes on the ROM to keep it working with existing modules. But it seems with optimizations and newer toolchains the hack wont work anymore and hence is FM crashes while loading the FM driver. (WLAN driver is still working though with the hack)
So I'm publishing the latest compiled modules. (Find them in attached zip) They would resolve this FM issue. Also the wifi modules
Here are the steps,
1. Download and extract the modules zip on your phone.
2. Backup existing radio-iris-transport.ko from /system/lib/modules
3. Copy and replace radio-iris-transport.ko from the modules folder in /system/lib/modules
4. Alternatively you can replace all the existing .ko files with the one i have provided. Make sure you backup them before replacing.
5. You can Use Es Explorer or ADB to follow these steps.
6. Set correct permissions 644 (either chmod 644 or ES Explorer-> file ->Properties->permissions)

new version released.
see change-log in second OP and on release page.
One more thing,
Please don't use my github for QnA, use XDA

Is anybody actually using the kernel?
There are no comments, nor i see any good traffic on the github downloads.
In case no response or activity, probably I'll stop posting the builds.
Let me know guys

Please don't stop making I will post your kernel in whatsapp
---------- Post added at 10:23 AM ---------- Previous post was at 10:20 AM ----------
Please post this on main thread of lenovo a6000
---------- Post added at 10:25 AM ---------- Previous post was at 10:23 AM ----------
Also please make this kernel for the cm11 compatible

WhatsApp? What's that for?
I have reported this thread to admin for not being visible in devices thread. It will be visible soon.
I can not make kernel for cm11. I'm not using cm11 and don't have to time to make flash and test on it.

Uber 5.2
I have created a build with Uber 5.2 to test overall smoothness, battery life and other factors.
Please let me know which build you feel better after testing (Linaro or Uber)

let me test on my k30t with miui7.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

'It supports fast charging upto 1380 mah and this kernel is suitable for miui 7.I experienced it in stock kitkat rom and a user posted ss of this kernel in Miui 7 as above.please mention it in your page or on github page so that users can attract with this incredible kernel made by you.!!

Rahulraj943472 said:
'It supports fast charging upto 1380 mah and this kernel is suitable for miui 7.I experienced it in stock kitkat rom and a user posted ss of this kernel in Miui 7 as above.please mention it in your page or on github page so that users can attract with this incredible kernel made by you.!!
Click to expand...
Click to collapse
What is max charging current in stock lollipop kernel? I find charging to be slow. And when I checked it shows 600 mA while charging and thats a bit slow.

chhapil said:
I have created a build with Uber 5.2 to test overall smoothness, battery life and other factors.
Please let me know which build you feel better after testing (Linaro or Uber)
Click to expand...
Click to collapse
I would like to see the kernel optimised for Lollipop

averagegeek said:
I would like to see the kernel optimised for Lollipop
Click to expand...
Click to collapse
Me too!!
Waiting for lollipop version.

I'm waiting for lollipop version too ?

I'm not using lollipop build yet. But I can build it for you guys, but you will have to test and report

Finally some developer is doing work on this device, goo to see!
Yes, we will test your LP kernel & if possible please add OC support.

new build is up.
grab it from github
I dont have yet the bandwidth for LP builds

chhapil said:
new build is up.
grab it from github
I dont have yet the bandwidth for LP builds
Click to expand...
Click to collapse
Waiting for LP build for A6000 plus (64 bit).
Keep up the good work.!

Can I install this kernel on CM11.??

Thanks for creating this great custom kernel for our device.
your custom kernel works on MIUI 7. Great. It gives long battery life (about 25-30 hours on normal usage). Performance is good too.
Please add more custom governor and hotplug.
And please Lollipop build
Thanks
---------- Post added at 10:25 AM ---------- Previous post was at 10:21 AM ----------
Iqbal Ansari said:
Can I install this kernel on CM11.??
Click to expand...
Click to collapse
I've tested on CM11. Yes you can use it on CM11 (but you must create your own boot.img file, using CM11 ramdisk and MoStock kernel). But I found one bug (for now), WiFi will stuck on turning on. I don't know about other bugs.
I hope chhapil can fix wifi bug on CM11.
This kernel works like a charm on MIUI 7. No bug

Related

[KERNEL] [KitKat] [G901F] [01 Sep] ★ SimpleGX KERNEL v1.1.5 ★

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
WARNING :
This KERNEL is only for Galaxy S5 Plus LTE-A (SM-G901F/kccat6) version !
You will void your warranty after flashing this ROM (knox @ 0x1)
I'am not responsible of any damage caused to your device after flashing this KERNEL
Some reading..
First of all, I would like to thanks a lot my friend @xdamc2010 for his hard investment about making a kernel finally bootable and stable kernel for our G901F and tells me his solution to finally make this kernel living. Huge kudos to him, and also to @JDizzle80 to find the solution at the same time.
SimpleGX is only looking for simplicity and stability, trying to aim for best battery life, smoothness and performance experience, than a pure stock kernel.
I still don’t qualify myself as of a real developer, but just a basic person with some android/linux knowledge already.
As always, I’m enjoying sharing my contribution here on XDA for free, which taking me a lot of time to release, so if you can offer me a little beer, I will really appreciate that.
This kernel must be only flashed over an official Samsung ROM and not AOSP/AOKP !
Feel free to include my kernel to your ROMs / Threads but please don't forget to inform/ask first via PM and credit me in your original thread.
​
★ WHAT TO EXPECT ★ :​
(over a pure stock kernel) :
Best battery life experience.
Much better overall performance.
Efficient (only proven to be good ones and not affecting battery life) tweaks.
Stay as close as possible from stock source.
★ FEATURES (up-to-date) ★ :​
Base :
Directly based on "SM-G901F_KK_Opensource.zip" (XXU1ANH5) KitKat Android 4.4.4 source from Samsung (for clean work and stability)
Compiled with Linaro Cross Compiler (4.9.4 / 2015.06) toolchain (optimized for Cortex-A15) with optimization flags.
Ramdisk from XXU1ANK5
Main :
ZZMoove (v1.0 beta8) governor added
ZRAM enabled with LZ4 compression and set as default
TCP congestion control modules activated: Westwood (currently as default), reno, bic, cubic and htcp
SElinux set to "Permissive"
init.d support
DriveDroid support
Various tweaks :
Android logger disabled
Kernel logger disabled
CRC disabled
Doubled min-max ReadAhead
random: increase entropy levels (both read and write)
slub.c: little tweak for performance improvements
Set initial TCP window size to 64K
Removes the red message "KERNEL IS NOT SEANDROID ENFORCING" during boot stage
Samsung Root restriction disabled
Features that will NEVER be included in this kernel :
auto-root.
LED control.
Charge control.
Master sequence (screen calibrated).
ABB (Adaptive Body Bias).
Any upgrade of Linux kernel 3.1x
Dual-Boot Sammy/AOSP.
CyanogenMod compatibility.
MIUI compatibility.
etc.
★ PREREQUISITE ★ :​
Your device must be on KitKat Samsung firmware.
A custom recovery (CWM recommanded) to flash the kernel.
★ SOURCE (up-to-date) ★ :​
Github >> SimpleGX.
★ INSTALLATION PROCEDURES ★ :​
- You freshly bought your new Galaxy S5 Plus device and want to install this kernel ? follow this :
At this point, be sure to already be in XXU1ANK5 firmware (otherwise, you will face bootloop due to unmatched ramdisk),
Backup everything you need (internal & external),
Reboot in Download mode,
Flash Chenglu's unofficial custom CWM based recovery via Odin (load as AP),
Reboot to your new CWM recovery,
Flash the KERNEL,
Reboot and enjoy !
- You already is on SimpleGX ROM ? follow this :
Reboot to your CWM recovery,
Flash the KERNEL,
Reboot and enjoy !
- If you want to update your current SimpleGX KERNEL :
Backup everything you need (internal & external).
Reboot to your CWM recovery,
Flash the KERNEL,
Reboot and enjoy !
- Want to switch back to stock KERNEL ? :
Grab your matched firmware HERE,
Reboot to your CWM recovery,
Flash the KERNEL,
Reboot and enjoy !
★ DOWNLOADS LINK ★
/!\ ALWAYS CHECK MD5 BEFORE FLASHING /!\​
Need supports ? all kind of questions must be posted on this thread directly. Be sure to read at least completely this first post before asking any question.
If you enjoy this kernel, don't forget to rate this thread
stars, and clicking the 'thanks' button (right below) is always appreciated to keep this thread maintained ​
LIKE MY WORK ?
OFFER ME A
!​​
Changelog
★ CHANGELOG ★ :​
01.09.2015 : v1.1.5 released.
simplegx_defconfig : Disable 'CONFIG_CC_OPTIMIZE_FOR_SIZE' so size optimization will finally get active (thx kykdev for the notification).
28.08.2015 : v1.1.4 released.
ZZMoove governor updated to v1.0 beta8 (including latest fix).
Makefile : disable inline functions and add no-pic switch.
tcp_output : set initial TCP window size to 64K (speed improvement).
23.07.2015 : v1.1.3 released.
Updated cross compiler toolchain from 4.9.3-2015.03 to 4.9.4-2015.06.
19.07.2015 : v1.1.2 released.
Add DriveDroid support (thanks to @DienoX for the git merge request).
10.06.2015 : v1.1.1 released.
simplegx_defconfig: Samsung Root restriction disabled.
05.06.2015 : v1.1.0 released.
ZZMoove governor updated to v1.0 beta7a.
Updated cross compiler toolchain from 4.7.4-2014.06 to 4.9.3-2015.03.
03.05.2015 : v1.0.3 released.
Removes the red message "KERNEL IS NOT SEANDROID ENFORCING" during boot (big thanks to @xdamc2010 for the tips).
23.03.2015 : v1.0.2 released.
Add init.d support (kernel side).
21.03.2015 : v1.0.1 released.
Now compiled with Linaro Cross Compiler (4.7.4 / 2014.06) toolchain (optimized for Cortex-A15) with optimization flags.
21.03.2015 : v1.0.0 released.
Initial release (check actual features).
Thanks & greetings
★ THANKS & GREETINGS ★ :​
(by alphabetic order)
Christopher83
DienoX
Lord Boeffla
slim80
xdamc2010
ZaneZam
. . . and to all people credited in my commits
Donations
★ DONATIONS ★ :​
None yet.. :[
Reserved
Reserved.
Thanks for the new kernel!! Great Job!! Is there also a kernel "management program / app" to control or adjust this kernel??
Handeman707 said:
Thanks for the new kernel!! Great Job!! Is there also a kernel "management program / app" to control or adjust this kernel??
Click to expand...
Click to collapse
TricksterMOD & SetCPU are your friend apps for that, so you can change governor, tcp congestion module, some slight values, etc, but do not expect more :good:
Will it work if I'm on FXXU1ANH6?
"Setcpu" old one... Was long time on Boeffla kernel at Samsumg S3, but enjoying the S5 Plus [G901F] v4.4.4 now, speccially with your great work here!!!
Lao Mayer said:
Will it work if I'm on FXXU1ANH6?
Click to expand...
Click to collapse
You can give and report, but normally it should not boot.
Make a stock ANH6 kernel flashable zip just in case, so you will be able to boot back if it don't work.
To make short: copy and past my flashable zip, rename it "stock_kernel.zip", open it and place it your "boot.img" from your actual firmware and place it in your sdcard just to be safe in case of problem :good:
Kernel is fast:
UPDATE
★ UPDATE ★ :​
21.03.2015 : v1.0.1 released.
Now compiled with Linaro Cross Compiler (4.7.4 / 2014.06) toolchain (optimized for Cortex-A15) with optimization flags.
Enjoy :highfive:
With stock SimpleGX i get a score of 51544 anf with the first version of kernel 49968.
Now gonna try second version.
Still happy, great stuff DeV
I got 50k on 1.2.3 of the rom using interactive governor
just now tested 46k using new kernel and zzmoove governor
with new kernel and interactive governor, best score out of all 3 tests 51.4k.
I will post screenshots from phone so can see which part of tests change.
Stock kernel and interactive 1426997410034
New kernel and zzmoove 1426997459226
New kernel and interactive 1426997518625
Sent from my SM-G901F using XDA Free mobile app
For those who want to revert back to stock kernel, I added a procedure into first post :good:
Cheers'
AndroidGX said:
For those who want to revert back to stock kernel, I added a procedure into first post :good:
Cheers'
Click to expand...
Click to collapse
Thanks, but kernel v1.01 is running great!!
Unlikely I will revert but is good there is now a procedure thanks.
My initial report is the phone does feel smoother to use, and in particular the play store is way more responsive.
Also the phone probably had 6 hours or so sleep time since I turned screen off and no battery drain on battery page, is flat line, not sure if thats either excellent battery life during sleep or its not been updating.
and I am using zzmoove.
chrcol said:
Unlikely I will revert but is good there is now a procedure thanks.
My initial report is the phone does feel smoother to use, and in particular the play store is way more responsive.
Also the phone probably had 6 hours or so sleep time since I turned screen off and no battery drain on battery page, is flat line, not sure if thats either excellent battery life during sleep or its not been updating.
Click to expand...
Click to collapse
Do you mean you prefer stock kernel ?
I had some drain issues with v1.0.0 which is now solved in v1.0.1 :good:
No I prefer your kernel
no issues so far.

[KERNEL][CM12.1 (based)][Z3C][GPU+CPU OC][5.1.1]M5 Kernel

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I am NOT resposible for any damage done to your device, your neighbor, or any other things you like/hate.​
Introduction:
This is my first kernel for any Android device. I created it because I want to get the best out of my device. It initially started with some optimizations regarding SaberMod 4.9 compatibility but I tought why not optimize it even more.
About:
This Kernel is based on the official CM12 kernel, therefore it should work with any Rom using the stock CM kernel too (Like Carbon and Liquid). I run it together with Carbon here, all tests I do will also be done using Carbon. The Kernels features will get more with time
Features and Commit History:
Check 2nd Post!
Installation Instruction:
THIS DOES ONLY WORK ON UNLOCKED BOOTLOADER!
When you're on CM/a CM based Rom:
Flash the zip file in recovery
When coming from Stock:
Flash the boot.img included in your ROMs zip file using fastboot. Flash a CM based Rom then and flash the Kernel zip file again as the Rom overrides the Kernel.
Download:
M5 Kernel (Release Versions)
https://dl.myself5.de
M5 Kernel (Test Versions)
https://testing.myself5.de
Thanks/Credits:
DooMLoRD (and therefore all guys he thanked listed below) - for a lot of Commits
FreeXperia Team (especially Jerpelea) - for too many things!
Kali- - to help get the correct dtbTool parameters for a bootable kernel
Faux123 - for lots of patches, you rock dude!
koush & all CyanogenMod maintainers - for too many things!
Dees_Troy & TeamWin - for their excellent work on TWRP Touch Recovery
Phil3759 - for his excellent work on PhilZ Touch Recovery
myfluxi - for a lot of great patches
flar2 - for a lot of great patches
dbolivar- toolchain fixes
FranciscoFranco - for Cortex-A15 optimizations, bunch of other things!
CarbonRom Team - for too many things!
vishal-android-freak - for too many things!
phaseburn - for being a good friend and helping me with almost everything !
sreinst1 - for too many things!
infected_ - for help with SM!
pec0ra - for fast_hotplug
AndroPlus - for too many things!
sparksco - for the SaberMod Toolchain
YoshiShaPow and Frap129 - for SaberNaro Toolchain
Team AOSPAL - for the Kernel Optimizations
Panic Brothers - for sponsoring me a Z3C!
My Big Brother Eric - for helping me keeping focused on Development!
My friends Silas and Max - for letting me use their servers and being awesome!
If I forgot you, please tell me.
If you think I deserve a donation, I won't stop you
Thanks a lot to those who have donated!
Huge Thanks to @Panic Brothers who donated the Z3C to me! You Rock Bro!
​
XDA:DevDB Information
M5 Kernel, Kernel for the Sony Xperia Z3 Compact
Contributors
Myself5
Source Code: https://github.com/Myself5/android_kernel_sony_msm8974/tree/cm-12.1
Kernel Special Features:
Version Information
Status: Beta
Created 2015-05-22
Last Updated 2016-07-01
Changelog
Latest Version: V11.2
Changelog:
Version 1:
Initial Z2 Release
Introduce Optimized Buildflags in order to build with SaberMod 4.9
Add Intelliplug
Add Fastcharge
Add new CPU Govs: wheatley, Smartassv2 LionHeart, Lagfree, Intelliactive
Add new I/O Sheduler BFQ, fiops, SIO
Add Faux123 Sound Control
GPU OC to 657MHz, Idle on 27MHz and add 100MHz Step
Version 1.2
Fix D2W
Add fast_hotplug CPU Hoplug
Version 2:
Implement kexec-hardboot -> this allows the usage of MultiROM
CPU OC over 2.9 GHz -> We now can OC up to 3.03GHz
Version 3:
Add CPU Govs Intellidemand, smartassH3 and adaptive
Add IO Sheds VR, ZEN, SIO-Plus and tripndroid
Add Custom Logo
Fix simple ondemand GPU Gov and add conservative
Version 4:
Add 268MHz CPU Step -> CPU can now idle on lower CPU freq and save battery
Add Alucard Hotplug and CPU Gov
Add ElementalX Gov
Revert OC Ability to 3GHz -> 3GHz was just not stable
Add KCAL support
Add F2FS Support
Initial Z3 Bringup
Version 5:
Add Bricked Hotplug
Add new CPU Govs Alucard, HYPER, OndemandPlus, Nightmare, Darkness, PegasusQ, Smartmax
Remove F2FS Support again -> Seems not to be very stable
Version 5.1:
Revert Custom Bootsplash -> together with the new Display Drivers it made the device not to boot anymore
Version 6:
Fix for Z3* Touch in MultiROM -> updated Clearpad Touch Driver
Initial Z3 Compact bringup
Version 7:
Add slim and zzmoove CPU Gov
Initial Z1 Compact bringup by @oshmoun
Enable F2FS Again
Update Alucard, Darkness and Nightmare Govs
Update BFQ I/O Shed
Update Alucard Hotplug
Rebase IntelliPlug to faux123's latest Version
Version 8:
Fixed F2FS, thanks to @Hazou
Finally implement Intelli_Termal V2, thanks to @someone755 and @oshmoun
Updated alcurd, nightmare, darkness
Version 9:
Initial Z1 bringup by @oshmoun and @Langes
Kernel Zip is now based off AnyKernel2 by @osm0sis, this allows the installation on every Rom using CM Kernel, even if it has a different Ramdisk than CM, like Mokee and Slim
Version 10:
Initial Bringup for Sony Xperia Tab Z2 (LTE and Wifi) thanks to @rcstar6696
Fix Kernel install issues with AnyKernel2
Display Kernel Version in Settings (Change Localversion from M5-Kernel to M5-Kernel-*VERSION*
Add Adreno_idler
Update zzmoove to Version 1 Beta 8
Fix a bunch of Display issues (like Black lines) on Z1C
Add mac80211 injection patch and HID patch for keyboard support
Version 10.2:
Fix Soft Reboots on rhine devices
Add Oneshot Sync
Tweak kgsl
Fix loading of LZMA Compressed Recoverys
Version 11:
Probably the last 3.4 M5 Kernel release, we will start working on M5 Kernel based on the Sony 3.10 AOSP Kernel soon.
Merge CM Upstream (Includes merge of Sony 23.4.A.1.200/23.4.A.4.6)
Fix static noise on high-end headphones
Various zRAM fixes and improvements
Merge of Linux Kernel upstream to get the kernel base to 3.4.111 (latest 3.4 Kernel available)
@tomascus rules.
Version 11.1:
Fix sound again by reverting the previous sound fixes
Version 11.2:
Recompile Kernel because thanks to the Server failure we lost some of the V11.1 builds.
All Versions since V4:
Support for LZMA compressed Recoveries like MultiROM TWRP (http://review.cyanogenmod.org/#/c/89057/)
[Only for V*-Permissive] SELinux Permissive for use with Xposed Framework (http://review.cyanogenmod.org/#/c/78551/)
All Version included the newest CM Upstream Changes from the Day they got compiled. Version which are not mentioned explicitly did only include a CM Upstream update.
For a detailed Changelog, check the Github Commit history:
Lollipop
https://github.com/Myself5/android_kernel_sony_msm8974/commits
Bla bla first bla bla
You don't know how long I've spent F5'ing the Z3C development page lol.
Also
This is my first kernel for any Android device.
Click to expand...
Click to collapse
Don't believe this man, he does great work with kernels on other Xperia devices!
I find it odd though that the kexec page address value for the Z3C differs from the Z3 and Z2 -- got any explanation on that? (My first guess would be that's because it has less RAM but I'm tired and pretty sure that's wrong.)
Great Work man
First of all, thanks a bunch for all your hard work @Myself5!!
Our Z3Cs need a serious kernel, feel like this could be it. I've noticed you uploaded 2 different V6 versions for Z3Cs - normal and permissive? Could you explain the difference?
Thanks again for all your input, and happy flashing everyone.
Cr1ms0n said:
First of all, thanks a bunch for all your hard work @Myself5!!
Our Z3Cs need a serious kernel, feel like this could be it. I've noticed you uploaded 2 different V6 versions for Z3Cs - normal and permissive? Could you explain the difference?
Thanks again for all your input, and happy flashing everyone.
Click to expand...
Click to collapse
Permissive has SELinux mode set to permissive (for usage with XPosed), while the normal one has the stock SELinux Settings, being Enforced.
someone755 said:
Bla bla first bla bla
You don't know how long I've spent F5'ing the Z3C development page lol.
Also
Don't believe this man, he does great work with kernels on other Xperia devices!
I find it odd though that the kexec page address value for the Z3C differs from the Z3 and Z2 -- got any explanation on that? (My first guess would be that's because it has less RAM but I'm tired and pretty sure that's wrong.)
Click to expand...
Click to collapse
Thats totally correct. The Z3C has 2GB RAM compared to the Z2 and Z3 having 3GB. Hence the Positions needed for the kernel inside the RAM Banks are different too -> Different Kexec Hardboot value.
Myself5 said:
Permissive has SELinux mode set to permissive (for usage with XPosed), while the normal one has the stock SELinux Settings, being Enforced.
So if I'm planning to use Xposed I need to flash the permissive version is that right?
Click to expand...
Click to collapse
Just Flashed m5 kernel (release version)
works perfectly.
Thanks for all your hard work
Tested on PAC Rom. Working good! Seems to be a little more battery consuming compared to stock CM kernel.
I thought so to, but am gonna give it a day or so to settle. Much faster/responsive tho, apps etc are opening a lot faster so is browser imo
Flash v6 se permissive in last cm. Reboots constant.
tatanico said:
Flash v6 se permissive in last cm. Reboots constant.
Click to expand...
Click to collapse
Have you tried latest cm with it's own kernel? bcs m5 permissive kernel works with nightly from May 19
Just a question about xposed and selinux. I'm running a stock 5.0.2 with xposed on my phone, selinux status set to enforcing. Why is permissive needed with cm and this kernel? Just curious.
Kernel and last cm 23/05 not work god.
Hello!
I've got the latest cm nightly ( 24.05.2015 ), with latest M5-Kernel-V6-L. I think everything works fine, the system speed little bit faster then the cm's kernel. The processor cores using are better. In stand by, it's uses only one core, not two core like cm. But! With M5 kernel, wifi doesn't work. I can't run it. If i turn it on, nothing. It's doesn't find any wifi. And it's going back to off... Am I the only one with that error? I doesn't try M5 kernel before.. I missed something? I'm not at home, but if I arrived, I can make a Logcat if it help.
Sent from my Xperia Z3C using XDA Free mobile app
lba810701 said:
Hello!
I've got the latest cm nightly ( 24.05.2015 ), with latest M5-Kernel-V6-L. I think everything works fine, the system speed little bit faster then the cm's kernel. The processor cores using are better. In stand by, it's uses only one core, not two core like cm. But! With M5 kernel, wifi doesn't work. I can't run it. If i turn it on, nothing. It's doesn't find any wifi. And it's going back to off... Am I the only one with that error? I doesn't try M5 kernel before.. I missed something? I'm not at home, but if I arrived, I can make a Logcat if it help.
Sent from my Xperia Z3C using XDA Free mobile app
Click to expand...
Click to collapse
Yes WiFi lost here.
6.1 is coming
Compiling and uploading 6.1 ATM. No changes exept the merge of the CM Upstream branch. 6.1 is now working with the latest CM Builds.
Also it's the first fully automated build on my jenkins setup (using the fileserver as a host and my friends homeserver as the buildserver) so don't be confused if the Kernel build host is "[email protected]", thats my friends server. The Automation allows me to upload a new Kernel version faster in case of a CM upstream change.
Regards and Happy Flashing
Changelog is live
I just updated the Second Post, It now includes a Full Changelog, and therefore a Feature List too.
Have fun with it
I seem cannot set minimum CPU freq, it keeps turning back to 1958 MHz using kernel adiutor, trickster, and any app :/
Sent from my Xperia Z3C using XDA Free mobile app
reyhanpk said:
I seem cannot set minimum CPU freq, it keeps turning back to 1958 MHz using kernel adiutor, trickster, and any app :/
Sent from my Xperia Z3C using XDA Free mobile app
Click to expand...
Click to collapse
Using kernel adiutor, no problem here.
was12 said:
Using kernel adiutor, no problem here.
Click to expand...
Click to collapse
Solved it, the culprit was the vdd restriction.
Its all normal and smooth now
Sent from my Xperia Z3C using XDA Free mobile app

CM12.1(based)][Z2 TABLET][5.1.1]M5 Kernel

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I am NOT resposible for any damage done to your device, your neighbor, or any other things you like/hate.​
Introduction:
About:
This Kernel is a port from the Z2/Z3/Z3C M5 Kernel based on the official CM12 kernel. It should work with any Rom using the stock CM kernel too (Like Carbon and Liquid). I'm mainly using PAC 5.1, and it's working sweet so far!
Installation Instruction:
THIS DOES ONLY WORK ON UNLOCKED BOOTLOADER!
CM Recovery not supported!
When you're on CM/a CM based Rom:
Flash the zip file in recovery
When coming from Stock:
Flash the boot.img included in your ROMs zip file using fastboot. Flash a CM based Rom then and flash the Kernel zip file again as the Rom overrides the Kernel.
Download:
M5 Kernel (Release Versions)
https://dl.myself5.de
M5 Kernel (Test Versions)
https://testing.myself5.de
Thanks/Credits:
Myself5 for making this kernel in the first place!
DooMLoRD (and therefore all guys he thanked listed below) - for a lot of Commits
FreeXperia Team (especially Jerpelea) - for too many things!
Kali- - to help get the correct dtbTool parameters for a bootable kernel
Faux123 - for lots of patches, you rock dude!
koush & all CyanogenMod maintainers - for too many things!
Dees_Troy & TeamWin - for their excellent work on TWRP Touch Recovery
Phil3759 - for his excellent work on PhilZ Touch Recovery
myfluxi - for a lot of great patches
flar2 - for a lot of great patches
dbolivar- toolchain fixes
FranciscoFranco - for Cortex-A15 optimizations, bunch of other things!
CarbonRom Team - for too many things!
vishal-android-freak - for too many things!
phaseburn - for being a good friend and helping me with almost everything !
sreinst1 - for too many things!
infected_ - for help with SM!
pec0ra - for fast_hotplug
AndroPlus - for too many things!
sparksco - for the SaberMod Toolchain
YoshiShaPow and Frap129 - for SaberNaro Toolchain
Team AOSPAL - for the Kernel Optimizations
If I forgot you, please tell me.
To donate to Myself5:
​
XDA:DevDB Information
M5 Kernel, Kernel for the Sony Xperia Z2 Tablet
Contributors
Myself5
XDA:DevDB Information
M5 Kernel for Z2 Tablet, Kernel for the Sony Xperia Z2 Tablet
Contributors
rcstar6696, Myself5
Kernel Special Features:
Version Information
Status: Alpha
Created 2015-09-11
Last Updated 2016-07-01
Latest Version: V11.2
Changelog:
Version 1:
Initial Z2 Release
Introduce Optimized Buildflags in order to build with SaberMod 4.9
Add Intelliplug
Add Fastcharge
Add new CPU Govs: wheatley, Smartassv2 LionHeart, Lagfree, Intelliactive
Add new I/O Sheduler BFQ, fiops, SIO
Add Faux123 Sound Control
GPU OC to 657MHz, Idle on 27MHz and add 100MHz Step
Version 1.2
Fix D2W
Add fast_hotplug CPU Hoplug
Version 2:
Implement kexec-hardboot -> this allows the usage of MultiROM
CPU OC over 2.9 GHz -> We now can OC up to 3.03GHz
Version 3:
Add CPU Govs Intellidemand, smartassH3 and adaptive
Add IO Sheds VR, ZEN, SIO-Plus and tripndroid
Add Custom Logo
Fix simple ondemand GPU Gov and add conservative
Version 4:
Add 268MHz CPU Step -> CPU can now idle on lower CPU freq and save battery
Add Alucard Hotplug and CPU Gov
Add ElementalX Gov
Revert OC Ability to 3GHz -> 3GHz was just not stable
Add KCAL support
Add F2FS Support
Initial Z3 Bringup
Version 5:
Add Bricked Hotplug
Add new CPU Govs Alucard, HYPER, OndemandPlus, Nightmare, Darkness, PegasusQ, Smartmax
Remove F2FS Support again -> Seems not to be very stable
Version 5.1:
Revert Custom Bootsplash -> together with the new Display Drivers it made the device not to boot anymore
Version 6:
Fix for Z3* Touch in MultiROM -> updated Clearpad Touch Driver
Initial Z3 Compact bringup
Version 7:
Add slim and zzmoove CPU Gov
Initial Z1 Compact bringup by @oshmoun
Enable F2FS Again
Update Alucard, Darkness and Nightmare Govs
Update BFQ I/O Shed
Update Alucard Hotplug
Rebase IntelliPlug to faux123's latest Version
Version 8:
Fixed F2FS, thanks to @Hazou
Finally implement Intelli_Termal V2, thanks to @someone755 and @oshmoun
Updated alcurd, nightmare, darkness
Version 9:
Initial Z1 bringup by @oshmoun and @Langes
Kernel Zip is now based off AnyKernel2 by @osm0sis, this allows the installation on every Rom using CM Kernel, even if it has a different Ramdisk than CM, like Mokee and Slim
Version 10:
Initial Bringup for Sony Xperia Tab Z2 (LTE and Wifi) thanks to @rcstar6696
Fix Kernel install issues with AnyKernel2
Display Kernel Version in Settings (Change Localversion from M5-Kernel to M5-Kernel-*VERSION*
Add Adreno_idler
Update zzmoove to Version 1 Beta 8
Fix a bunch of Display issues (like Black lines) on Z1C
Add mac80211 injection patch and HID patch for keyboard support
Version 10.2:
Fix Soft Reboots on rhine devices
Add Oneshot Sync
Tweak kgsl
Fix loading of LZMA Compressed Recoverys
Version 11:
Probably the last 3.4 M5 Kernel release, we will start working on M5 Kernel based on the Sony 3.10 AOSP Kernel soon.
Merge CM Upstream (Includes merge of Sony 23.4.A.1.200/23.4.A.4.6)
Fix static noise on high-end headphones
Various zRAM fixes and improvements
Merge of Linux Kernel upstream to get the kernel base to 3.4.111 (latest 3.4 Kernel available)
@tomascus rules.
Version 11.1:
Fix sound again by reverting the previous sound fixes
Version 11.2:
Recompile Kernel because thanks to the Server failure we lost some of the V11.1 builds.
All Versions since V4:
Support for LZMA compressed Recoveries like MultiROM TWRP (http://review.cyanogenmod.org/#/c/89057/)
[Only for V*-Permissive] SELinux Permissive for use with Xposed Framework (http://review.cyanogenmod.org/#/c/78551/)
All Version included the newest CM Upstream Changes from the Day they got compiled. Version which are not mentioned explicitly did only include a CM Upstream update.
For a detailed Changelog, check the Github Commit history:
Lollipop
https://github.com/Myself5/android_kernel_sony_msm8974/commits
No Reply ? Whats wrong has anyone test the kernel ??
Enjoy it
I'm using it now on my tablet with the latest tesla build and it works great. Is this the kernel in your pac build?
Frostbiter said:
I'm using it now on my tablet with the latest tesla build and it works great. Is this the kernel in your pac build?
Click to expand...
Click to collapse
Yes PAC includs the M5 Kernel but you can use the kernel on all Cm based Roms
10.1 is up
Hey guys, I managed to find some free time, and finally compiled and uploaded a 10.1 Build. Basically it only includes CM Upstream commits (about 200 of them), and should work flawless with the newest CM builds, I am running it with the OFFICIAL 20151016 release of Carbon ROM on my Z3 here (excuse me, but some advertisement needs to be placed ). I hope you enjoy it
Regards
Installed it on CM 12.1 first look runs smoothly and quick
V10.2
Hey guys,
V10.2 is currently compiling, you can check the progress here: http://myself5.de:12345/job/M5Kernel All Devices/
It's basically a bug/derpfix build, but also added some new under the hood changes.
Changelog:
Fix Soft Reboots on rhine devices
Add Oneshot Sync
Tweak kgsl
Fix loading of LZMA Compressed Recoverys
Regards
Myself5 said:
V10.2 is currently compiling, you can check the progress here:
Click to expand...
Click to collapse
Playing around with the kernel on CM
Looks like smooth and stable
Want to change CPU govenour with tasker from Wheatley to elementalx when playing special games.
Tasker says he can set on CPU 0 and 1 the govenour, but not on CPU 2 and three. There is no govenour selection on CPU 1 and 2 avaiable in Tasker
I give my the answer myself
Kernel Audiotor have Tasker plugin support..so its much easyer with this and it works
@rcstar6696
Any chance of a new kernel based on Sony 23.4.A.1.200/23.4.A.4.6
http://review.cyanogenmod.org/#/c/128679/
V11 is compiling
Hey folks,
I just started the build of V11. It contains considerably most of the changes done till now, @tomascus did a very good work with that. He merged Linux Kernel upstream up to 3.4.111, which is the newest 3.4 Kernel available. We ofc also merged the CM upstream, and tomascus also merged some improvements to f2fs and zRAM. In addition to that Eyenseo fixed the static noise on highend headphones. In addition to that, I'd like to welcome Eyenseo and tomascus to the team, they will maintain the Z2 (as I sold mine recently) and tomascus, who will maintain the Z1 (we were looking for a Z1 maintainer since quite a while).
Furthermore, we'd like to announce that this might be the last 3.4 M5 Kernel build (unless we find some time to keep it updated for LP). The reason is: M will use the Sony AOSP trees and the 3.10 Kernel. Hence we are going to start working on a 3.10 based M5 Kernel as soon as we can, in order to be ready once M builds are released. (Which should be soon)
You can see the current build progress here: http://myself5.de:12345/job/M5Kernel All Devices/
Changelog Version 11:
Probably the last 3.4 M5 Kernel release, we will start working on M5 Kernel based on the Sony 3.10 AOSP Kernel soon.
Merge CM Upstream (Includes merge of Sony 23.4.A.1.200/23.4.A.4.6)
Fix static noise on high-end headphones
Various zRAM fixes and improvements
Merge of Linux Kernel upstream to get the kernel base to 3.4.111 (latest 3.4 Kernel available)
@tomascus rules.
Myself5 said:
Hey folks,
I just started the build of V11.
Click to expand...
Click to collapse
Just wanted to say: great kernel and thank you for your hard work.
Just got a Z2 and immediately switched to CM12.1 along with your kernel and the smoothness and battery life are great!
Sent from my Xperia Z2 Tablet LTE using Tapatalk
Just a simple question, when deciding which cpu hotplug plugin to choose, do I leave MPdecision always on? It seems like MPdecision alone does not work as a cpu hotplug(4 cores always connected) and other plugins seems to have some kinda dependencies on MPdecision plugin. I would much prefer to use MPdecision alone, but it seems like I have to turn on intelliplug or MSM mpdecision to make hotpluging work.
DDz_1888 said:
Just a simple question, when deciding which cpu hotplug plugin to choose, do I leave MPdecision always on?
Click to expand...
Click to collapse
Only enable one hotplug method...do you enable two or three it is become buggy
Bastlwastl2010 said:
Only enable one hotplug method...do you enable two or three it is become buggy
Click to expand...
Click to collapse
then MPdecision seems to be broken, it never will unplug idling cores. 4 cores are always online.
DDz_1888 said:
then MPdecision seems to be broken, it never will unplug idling cores. 4 cores are always online.
Click to expand...
Click to collapse
Nonessential....
There are different meanings in idle cores while display on, because bring back cores online cost energy.
A good explanation is here, from the author of elementalx:
http://elementalx.org/the-truth-about-kernels-and-battery-life/
V11.1 is coming
Hey folks
After various reports on different devices, we reverted our sound changes for the static noise with headsets. It seemed to cause more issues than it was fixing.
Therefore, our changelog for 11.1 is quite small.
Changelog:
Fix sound again by reverting the previous sound fixes
As always, the build progress can be seen here: http://myself5.de:12345/job/M5Kernel All Devices/
V11.2 is out
Hey Folks,
As some of you know, my Server died recently, including all the data on it. I thankfully meanwhile found a Backup from the 21st of December 2015, but that means that the V11.x builds are gone. Thanks to the community, we got some of the newer builds back, however not all of them (some devices miss V11.1-Permissive for example), which is why I decided to start a new (11.2) build after finish to setup my server. That is now. I also updated the changelog for 11.2, stating it is what it is. A rebuild of 11.1.
Thanks for your patience and lot for the builds you guys had uploaded during the Server downtimes.
Regards,
Hey, thnk you for your work!... But all links are down;( maybee some guys will upload it? Thx
---------- Post added at 05:47 PM ---------- Previous post was at 05:46 PM ----------
Hey, thnk you for your work!... But all links are down;( maybee some guys will upload it? Thx

[Kernel][Grouper|Tilapia][F2FS][15Sep2016 Android-7.0.0_r6 test build]DC-Kernel

Although I'd already uploaded the source to github, I was asked a few times to release the kernel of my OmniROM6 build. Frankly, I only contributed a small part of it. Most of the codes are here and there from other devices and/or developers. I just modified a few and patched a few.
This week, I was packaging a kernel for my other devices. Thanks to the AIK (Android image Kitchen) by @osm0sis, it make my life much easier. I think spending a few more minutes for my Nexus 7 is not a bad idea. I don't know if it would work for your existing ROM. I only have three success reports. Fail and success reports, suggestions and comments are welcome.
This might just another one time deal as my TWRP. I'll make this thread simple. Anyway, it's done.
Release Notes:
2016/9/15: Finally a long holiday come. It's about time we migrated to Nougat. Most of the custom ROMs are busy for their first release. In the meantime, I may consolidate the kernel and device trees. After struggling for a few hours, I finally stop the sepolicy from denials for the first time.... The test AOSP-N builds are unloading now. See post#184 for details.
History
2016/8/9: PerformanceControl is update to Drawer view UI now. Enable native D2TW interface for other ROMs (** How to enable it is in the Theory section **)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2016/6/7: Android N preview2 zip version was uploaded to experimental pool.
2016/6/5: Android N preview2 testing boot and system image in experimental pool. Read post #135 for detail.
2016/3/30: Add the power HAL with frequency adjustments and set feature support.
2016/3/18: Upload a test kernel to experimental pool.
2016/3/14: Bug fix in PerformanceControl.apk and the final code for kexec patch.
2016/3/13: Add the experimental pool for the testing builds.
2016/2/29: Seems it is not a one time thing now so I added the Change log section. The initial commit of Tegra3 Support is added to the PerformanceControl apk. In addition, I also include the Nexus 7 support in the Tools page. Wiping caches and flashing images are working for Nexus 7 now. A bug in Set on Boot is also fixed.
2016/2/16: Seems most of the fellow ROM builders had included the rotation patch in their kernel. I have no problem spending another few more minutes for the user oriented request. I prepared another zip. The only difference between 0214 and 0216 zip is 0216 included the rotation patch. If anyone have problem with rotation stopped after long deep sleep, you may try the 0216 version.
2016/2/14: This is not an update. There are requests for LP and KK ROMs. I added the fstab for those earlier versions. The script was modified. It will check the /system/build.prop for Android version and copy the corresponding fstab to the ramdisk. cheers!
Theory:
The source is from the stock AOSP kernel (3.1.10) for grouper. The kernel binary is more or less the same for most of the ROMs posted. The major difference would be the ramdisk. With this in mind, I just replace the kernel binary and keep the existing ramdisk. The existing kernel might not have F2FS support so I replace the File System Table (fstab.grouper) too.
Even though this is from my OmniROM6 (MM) ROM, it might also work for LP or earlier. There are two default fstab (MM and LP) inside. For those who want to use their own, you may replace the file /data/AIK-mobile/XX/fstab.grouper inside the zip. Where XX=MM for ROMs from 6.0.0, XX=LP for ROMs before 6.0.0 (LP and KK, JB not tested)
To ROM builders:
If you want to enable the native DT2W in Display settings, please include the following lines in:
device/asus/grouper/overlay/frameworks/base/core/res/res/values/config.xml
You may enjoy the DT2W feature now
Code:
<!-- Whether device supports double tap to wake -->
<bool name="config_supportDoubleTapWake">true</bool>
Click to expand...
Click to collapse
Reported ROMs:
Reported Working :victory:
MM: Android 6 AOSP on Grouper, CyanogenMod 13 , Pure Nexus, AICP, VRToxin, OctOs
LP: CARBON-LP, Dirty Unicorns 5.1.1, ResurrectionRemix LP
KK: SlimKat 9.1
Reported not Working
MM: Android MarshMallow Pure AOSP
Change log:
Code:
[COLOR="Blue"]2016/8/9[/COLOR]
 - kernel: adjustments voltage tables
 - PerformanceControl: version 2.1.6, Drawer view UI
 - PerformanceControl: Support CM-13.0's native root access
[COLOR="Blue"]2016/3/30[/COLOR]
 - kernel: DT2W fix the power when resume
 - kernel: DT2W adjustment
 - PerformanceControl: Fix a potential crash at first launch
 - PerformanceControl: Enable the CPU Governor settings if supported
 - Power HAL: adjust to the O/C frequencies
 - Power HAL: Add set feature support for AOSP native DT2W settings (planning)
[COLOR="Blue"]2016/3/14[/COLOR]
 - kernel: Add zRAM support
 - kernel: Add kexec-patch for MultiROM
 - PerformanceControl: Fix the crash in Advance > Highend graphics
[COLOR="Blue"]2016/2/29[/COLOR]
 - kernel: Add custom panel backlight control
 - PerformanceControl: (v2.1.5) Add Tegra3 support, GPU, voltage and backlight settings.
 - PerformanceControl: Add Nexus 7 Tools. (wipe caches, flash kernel/recovery, etc.)
[COLOR="Blue"]2016/2/16[/COLOR]
 - kernel: Include the Rotation fix
[COLOR="Blue"]2016/2/14[/COLOR]
 - Add detection of Android version to script
 - Include the fstab for LP and earlier
[COLOR="Blue"]2016/2/8[/COLOR]
 - kernel:initial release
 - PerformanceControl: (v2.1.4) from Exynos4
 - PerformanceControl: DT2W, CPU settings
Features:
Kernel
  1. Build with gcc 4.9
  2. F2FS support
  3. OC for CPU, LP
  4. OC for GPU
  5. Voltage Control (for CPU, GPU etc.)
  6. DT2W support with bound and duration sysfs fine tune (disabled by default)
  7. Retrying for i2c processes.
  8. UID_CPUTIME support with power table from Tegra spec.
  9. Add wakelock timeout for a few drivers (xmm_power, etc.)
 10. Add journal_async_commit flag to ext4 /cache and /data
 11. Included rotation patch (from 20160216)
 12. Panel min. and max. backlight control
 13. zRAM support
 14. kexec patch for MultiROM (from 20160314)
PerformanceControl Apk
 1. CPU: freq. and voltage settings
 2. Tegra3 settings: GPU freq., various voltages, backlight, etc.
 3. Memory: KSM, OOM and VM (zRAM testing) settings
 4. Advanced: Ahead buffer, I/O schedulers, DT2W settings, etc. (when available)
 5. Tools: Wiping, flashing images, optimizations, shell commands at start, etc.
 6. Informations: Battery, Memory, System, storage, etc.
 7. Draw view UI
 8. Compatible with CM-13.0 (Slim6 etc.) native root access.
Download: :highfive:
 Host: Android File Host mirror: 百度网盘
 Experimental
 Note: I only tested it in TWRP.
     Some features required ROOT access.
     Extra settings can be found in the Included PerformanceControl
     Root would be preserved for systemless SuperSU from @Chainfire.
Know issues:
 1. D2TW sometimes not started at the first suspend after reboot.
 2. May be more....
Sources:
Sources of the kernel and the PerformanceControl apk included is in my github
Credits: :good:
 ** The Android Image kitchen by @osm0sis
 ** M-kernel by @Metallice
 ** All those who donate and/or help the developers. Giving us the resources and reason to carry on.
Donations: :angel:
daniel_hk said:
Even though this is from my Marshmallow ROM, it might also work for LP or earlier. The only file required to modified would be the fstab. For those who want to try, you may replace the file /data/AIK-mobile/fstab.grouper inside the zip.
Click to expand...
Click to collapse
What exactly does one have to modify in the fstab.grouper file to make it compatible with LP? Or is there a pre-defined file that can replace the current one for MM present in the .zip file?
orville87 said:
What exactly does one have to modify in the fstab.grouper file to make it compatible with LP? Or is there a pre-defined file that can replace the current one for MM present in the .zip file?
Click to expand...
Click to collapse
The only difference between MM and LP would be the OTG line.
Usually, the one found in cm-12.1 would work for all LP. Unzip this one View attachment fstab.grouper.zip
I have changed a few flags. Other developers might have other changes too.
The one inside your LP ROM would be better for your ROM. You may copy it out from root directory after start up.
If there is no F2FS support in your ROM's fstab,
1. Let say the one inside my zip is the base fstab.
2. the one in you LP ROM is target fstab.
3. copy the 4 lines with /data and /cache from the base fstab to the target fstab.
4. replace the base fstab with the target fstab inside my zip.
That's all
note:Those lines are quite long and might extended to a few lines.
Good luck!
Edit: Starting from version 20160214, there are two folders MM and LP which correspondinng to ROMs from or before Android 6.0.0. There is a default fstab inside each. For those who want to replace it with their fstab. It should be put inside the corresponding folder.
Which changes would be necessary to use your kernel with KK/4.4.4 ?
mklmkl said:
Which changes would be necessary to use your kernel with KK/4.4.4 ?
Click to expand...
Click to collapse
Same as the above in post#3.
There is a fix for auto rotate implemented in other grouper kernels that appears to be missing from this one, but it's nice to have the clock speeds to play with :good:
Thanks! I'll test it tomorrow.
---------- Post added at 01:27 AM ---------- Previous post was at 01:04 AM ----------
Booted on KK/4.4.4! Will go on testing!
But where to find the performance apk? Or do I have to compile it from source?
Thanks!
adstraylight said:
There is a fix for auto rotate implemented in other grouper kernels that appears to be missing from this one, but it's nice to have the clock speeds to play with :good:
Click to expand...
Click to collapse
The audio and rotation fix are not in the kernel. I did it in the platform. Ask your ROM's builder for detail.
mklmkl said:
Thanks! I'll test it tomorrow.
---------- Post added at 01:27 AM ---------- Previous post was at 01:04 AM ----------
Booted on KK/4.4.4! Will go on testing!
But where to find the performance apk? Or do I have to compile it from source?
Thanks!
Click to expand...
Click to collapse
The apk is in the system. It is in /system/apps/PerformanceControl/PerformanceControl.apk
I forgot if KK's system apps was inside a folder. If not, move it out.
Good luck
Found & installed -> works!
GPU is (obviously) for a different HW, correct?
mklmkl said:
Found & installed -> works!
GPU is (obviously) for a different HW, correct?
Click to expand...
Click to collapse
Yeah. The apk was for my other devices. There are apks like trickster mod can modify Tegra GPU. I seldom change it in my tilapia so I didn't add the extra codes. (lazy too )
I included this apk because there is settings for DT2W. The sources are in my github. It would be quite easy for others to port their own.
EDIT:Can you tell me which ROM you are using?
Unofficial SlimKat 9.1 (see: http://forum.xda-developers.com/showthread.php?t=3214142)
Many thanks for your effort!
@daniel_hk regarding screen rotation, I suppose you missed this commit. It's about handling the timer values in MM. I first handled this issue in frameworks/base, too, but the kernel patch is more easy to maintain.
AndDiSa said:
@daniel_hk regarding screen rotation, I suppose you missed this commit. It's about handling the timer values in MM. I first handled this issue in frameworks/base, too, but the kernel patch is more easy to maintain.
Click to expand...
Click to collapse
I saw it in manta's commit too.
Since I'm maintaining a few devices, I want to make it common. I did it in the platform. Same source would work for the three kernel sources I'm working on.
Delete
FYI: Update. Link on the OP. Thanks again!
atlharp said:
FYI: Update. Link on the OP. Thanks again!
Click to expand...
Click to collapse
Can you tell me what you meant? What link? Thanks!
The link to the kernel build is on the opening page.
atlharp said:
The link to the kernel build is on the opening page.
Click to expand...
Click to collapse
If you meant the download link to AndroidFileHost, I just checked and its OK. May be it's temperately unavailable at your side.
Hell yes! Finally a OC kernel for the Nexus 7 on MM! I have been trying to make one for hours though couldnt work it out! Can i beg for a commit to be added so us Tiapila users can use it too?
https://github.com/jfmcbrayer/grouper-kernel/commit/3f0c118b4ebc45045049e7e01c6deae5bdddb243
This commit stops the 3G wakelock that cripples the battery life on all Tiapila devices on version 5.0 and above. Battery life is like 20 hours even with no screentime.
Pretty please! This commit is already included on both CM13 and Pure Nexus Kernels for Grouper though those Kernels don't have OC!
Thanks very much.
Sage said:
Hell yes! Finally a OC kernel for the Nexus 7 on MM! I have been trying to make one for hours though couldnt work it out! Can i beg for a commit to be added so us Tiapila users can use it too?
https://github.com/jfmcbrayer/grouper-kernel/commit/3f0c118b4ebc45045049e7e01c6deae5bdddb243
This commit stops the 3G wakelock that cripples the battery life on all Tiapila devices on version 5.0 and above. Battery life is like 20 hours even with no screentime.
Pretty please! This commit is already included on both CM13 and Pure Nexus Kernels for Grouper though those Kernels don't have OC!
Thanks very much.
Click to expand...
Click to collapse
Why beg for the things already there? If you read my rather short thread. It was already there. Grouper and Tilapia share the same kernel. I already implemented it in the early stage of my Omni6 months ago...

[KERNEL][N910/N915/N916/S/K/L/C/H/U] ☆ PRIME-Kernel v6.4.1 ☆

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​
Requirements for using the kernel
Model Variants: SM-N910S/K/L/C/H/U, SM-N915S/K/L, SM-N916S/K/L
Tested Device: SM-N910S/K/L & SM-N915S/K/L & SM-N916S/K/L
Installed OS: TouchWiz M 6.0.1, M Base Note7 and All Porting ROMs
Main Features
• All porting ROM support.
• Fixed a screen-touch issue that occurred while waking from sleep mode.
-- Problems exist in stock(samsung) firmware.
• AnyKernel based.
• Synapse support.
• SELinux Permissive.
• Linux 3.10 upstream.
• Compile with UBERTC 7.2.1 toolchain.
• F2FS fully support.
• Gametuner-Mod: Game Booster Mode, Provides intelligent performance enhancement mode in conjunction with Samsung-Gametuner.
• Apply Fake KNOX.
• Apply chacha20 to random (entropy).
• Linaro LSK-v3.18-Energy-Aware Scheduler (EAS) Backport.
- EAS simplifies power and performance management through scheduler-driven tuning to manage more efficiently.
• Improved storage performance and longevity by applying lazytime mount options.
- Similar to Dynamic Fsync, but operates at the file system level and has no risk of data loss.
• CPU/GPU UC & OC.
• CPU/GPU/BUS voltage regulation.
• R12P0 GPU Driver(Stock is R7P0) & Performance Tuning.
• NVIDIA cpu relax patch, reduced heat & increased battery life.
• HMP tuning Interface.
• Enable NEON in kernel mode.
• Detail charging circuit control allows faster charging.
• Added I/O Scheduler 'bfq, fifo, fiops, row, sio, zen'.
• Enable Westwood tcp/ip congestion control.
• LED FADE control.
• Qualcomm interactive (renamed cafactive) cpu governor porting @by arter97.
• Added battery-friendly impulse governor and more powerful ironactive (interactive in the Qualcomm 4.4 kernel) governor.
• Provides an add-on that keep kernel settings on un-rooted devices.
• Synapse: System Tweak add-on available.
• Synapse: Provides configuration profile separated by performance / battery / stability.
• Many other optimization applications.
Credit (Thanks. to)
• AndreiLux - Perseus5433 kernel.
• UpInTheAir - SkyHigh Kernel.
• halaszk - Perseus-halaszk-universal5433 kernel.
• arter97, gokhanmoral, faux123, yank555.lu
• RaymanFX (AOSP Kernel & Vendor).
• osm0sis - AnyKernel2.
• All members of the PRIME-Kernel NaverCafe.
• And all of commited in sources & all of xda developers.
Change Log
Detail(Korean): http://enfree.com/prime/?page=changelog&device=N910
Note: AnyKernel method
Kernels that use AnyKernel method do not have built-in ramdisks; instead they extract and merge with currently installed ramdisk on the fly while installing.
This can help improve compatibility with certain carriers, but can also cause problems if flashed upon another custom kernel.
Thus it is highly recommended that you have a stock kernel installed beforehand when flashing this kernel.
Download
Stable - v6.4.1
* The N910C/H/U variants needs testing.
Older Version
Stock Kernel Link
Note 4 (N910x) | Note Edge (N915x) | Note 4 S-LTE (N916x)
! This is not a prime kernel.
After downloading, please flash in TWRP. automatically detect and flash all variants.
Built-in Stock Kernel List
N910C-XXS2DQHC / N910H-XXS2DQH5 / N910U-XXS2DQHF
N910S-KSU2DQD4 / N910L-KLU2DQD4 / N910K-KTU2DQD1
N915S-KSU2DQE1 / N915L-KLU2DQE1 / N915K-KTU2DQE1
N916S-KSU2DQD4 / N916L-KLU2DQD4 / N916K-KTU2DQD4
Telegram Group: https://t.me/prime_n4
Naver Cafe (for Korean): http://cafe.naver.com/primeusers
​
XDA:DevDB Information
PRIME-Kernel, Kernel for the Samsung Galaxy Note 4
Contributors
Hyunwoo AHN
Source Code: https://github.com/dwander/Linaro-base/tree/trelte
Kernel Special Features: Linaro-LSK-3.18-EAS-Backport, Gametuner-MOD, Intelli-Performance
Version Information
Status: Beta
Current Stable Version: 6.4.1
Stable Release Date: 2017-10-14
Created 2017-10-07
Last Updated 2017-11-28
tried this, but the anykernel only supports stock kernel? im sure most n910c users use graceux roms and they dont work with stock kernels. i tried with h vitamin which is the most close to stock ux kernel i can find but prime kernel does not support it
Do we have fast charge script on this kernel?
nice work, now testing on n910c running erobot rom, i will edit this post if anything unexpected happened
Update:
@Hyunwoo AHN error while installing in twrp: variant: n910c, os: touchwiz base -> error: n910eur-tw-zImage not found
it cant detect the n910ch-tw-zimage from kernel files
awesome awesome awesome,,
F2FS + FIOPS in 1 kernel. FINALLY ... this is truly the best (minus encryption concerns?)
wonderful work sir. will test out on my U variant and report back.
if only there was a ROM that supported f2fs, I cant get modem to work on this kernel N910U variant.
Updater process ended with ERROR: 1
robert1337 said:
tried this, but the anykernel only supports stock kernel? im sure most n910c users use graceux roms and they dont work with stock kernels. i tried with h vitamin which is the most close to stock ux kernel i can find but prime kernel does not support it
Click to expand...
Click to collapse
You do not seem to understand my writing.
When flashing the kernel, extract the ramdisk from the existing kernel, convert the ramdisk properly and merge it.
It is best to use this kernel after flashing the stock kernel first.
Of course you can use another developer's kernel (ramdisk), but as I said, there is a possibility of errors, so flash the stock kernel first if possible.
As I said, GraceUX ROM works well.
KINGTATu said:
nice work, now testing on n910c running erobot rom, i will edit this post if anything unexpected happened
Update:
@Hyunwoo AHN error while installing in twrp: variant: n910c, os: touchwiz base -> error: n910eur-tw-zImage not found
it cant detect the n910ch-tw-zimage from kernel files
Click to expand...
Click to collapse
There was a mistake in the flashing script.
Wait for the next version or decompress and rename the file yourself.
Updated to v6.4.0 (stable)
Is there a way to create a unique serial number for your phone in your kernel and disable your phone?
I am referring to the contents of the Korean community.
What does the curl package do inside the kernel? Is synapse reinstalled every time it boots to disable the user's phone based on the generated serial number?
imrus1252 said:
Is there a way to create a unique serial number for your phone in your kernel and disable your phone?
I am referring to the contents of the Korean community.
What does the curl package do inside the kernel? Is synapse reinstalled every time it boots to disable the user's phone based on the generated serial number?
Click to expand...
Click to collapse
Use curl to generate a unique serial number.
The serial number is used to download add-ons for donor users and not for other purposes.
이런 질문 좆나 불쾌하네요.
Hyunwoo AHN said:
You do not seem to understand my writing.
When flashing the kernel, extract the ramdisk from the existing kernel, convert the ramdisk properly and merge it.
It is best to use this kernel after flashing the stock kernel first.
Of course you can use another developer's kernel (ramdisk), but as I said, there is a possibility of errors, so flash the stock kernel first if possible.
As I said, GraceUX ROM works well.
Click to expand...
Click to collapse
i think it was you who dont understand what i mean, but then again i explained not so clearly so i guess its my fault.
what i meant is this error: n910eur-tw-zImage not found
but i dont understand what you said "When flashing the kernel, extract the ramdisk from the existing kernel, convert the ramdisk properly and merge it."
dont you mean i just flash the most close to stock ux kernel first then flash Prime anykernel?
because i dont think my device will boot if i flash stock kernel you provided because im using UX rom.
UX roms need stock UX kernel (modified something in ramdisk i forgot what is it)
robert1337 said:
i think it was you who dont understand what i mean, but then again i explained not so clearly so i guess its my fault.
what i meant is this error: n910eur-tw-zImage not found
but i dont understand what you said "When flashing the kernel, extract the ramdisk from the existing kernel, convert the ramdisk properly and merge it."
dont you mean i just flash the most close to stock ux kernel first then flash Prime anykernel?
because i dont think my device will boot if i flash stock kernel you provided because im using UX rom.
UX roms need stock UX kernel (modified something in ramdisk i forgot what is it)
Click to expand...
Click to collapse
It 's hard to explain because I do not know English well.
Do not worry about using GraceUX ROM, do not worry about it.
The error you say is my mistake as I said in other posts. And obviously I said that some variants need testing.
N910C, touchwiz os, Prime kernel v6.4.0:
 @Hyunwoo AHN Phone won't boot and in restart loop at boot logo
excellent news for 910f needs testing still?
N910U installation failed
TWRP Error code:1
ROM:NEMESIS REFINED V3.8
Cannot download. Link dead and show 404 error...
vinamilk said:
Cannot download. Link dead and show 404 error...
Click to expand...
Click to collapse
i suggest you not to download the kernel yet, your phone probably wont boot (n910c), wait for an update from @Hyunwoo AHN to fix the issue
Damn it!
v6.3.0 was linked. -_-;
I just fixed the download link.
n910u got a bootloop after flash this kernel...
anyway, thanks for your work
Updated to v6.4.1
Add custom build dtb, with N910C/H/U.
fix configs, with N910U variant.
*** Need test ***
However, the Korean variants(S/K/L) works perfectly.

Categories

Resources