Post Reply

[Kernel][AOSP/TW] ChronicKernel - (UV/GPU/CPU-OC/dyn fsync/Linaro) [7/25/2014]

OP albinoman887

Announcement from albinoman887: New L2 Cache OC table goes live!
18th May 2013, 11:31 AM   |  #1  
OP Recognized Contributor
Flag Snohomish, WA
Thanks Meter: 12,164
 
3,164 posts
Join Date:Joined: Dec 2010
Donate to Me
More
ChronicKernel for International Samsung Galaxy S4



Code:
#include 
/*
 * Your warranty is now likely void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * spontaneous combustion, or any other host of cosmic penalties
 * which may befall you, your family, or your phone.
 *
 */
Quote:

Here is a initial kernel for AOSP/TW. It has all the features you would expect from a modded kernel, CPU OC, GPU OC, more CPU governors, Undervolted, Underclockable, GPU OC CPU L2 OC, and linaro -o3 optimizations


Screenshots








Requirements
* Rooted (obviously)
* I use CyanogenMod as my daily, so i don't test the TW version much..it should be fine though.

Installation
1: Place zip on sdcard
3: Reboot into recovery
3: Clear cache and dalvik cache
4: Flash zip
5: Reboot
6: If desired edit the init script at /system/etc/chronic-config.sh to suit your needs
7: Profit




ChronicKernel

* All-in-One kernel for all qualcomm variants (AOSP/CM only)
* Compiled with linaro
* GPU OC to 627 Mhtz (450Mhtz default - configurable though chronic-config.sh init script)
* CPU OC to 2322 Mhtz (1890 Mhtz default)
* CPU L2 cache overclocked to 1.3Ghtz
* Raised the low/med/high values for GPU governor one step each
* Added many I/O Schedulers
* Some scheduler performance tweaks
* Added CPU Governors intelidemand, wheatley, lagfree, linoheart, smartassH3, badass and smartmax (Default gov = intellidemand)
* Dynamic Fsync
* F2FS Support
* User adjustable CPU uV
* frandom support
* Optimized and compiled with with the "Optimize a lot, or -o3 option)
* USB fast charge (disabled by default - configurable though chronic-config.sh init script
* Patched to Linux 3.4+




July-25
*** AOSP Release ***
* Merged all upstream commits from CM
* Updated kernel to Linux 3.4.98
* Now compiling with cortex-a15 optimized linaro GCC 4.9 toolchain
* Enabled abyssplug, adaptive, pegasusq and slp cpu governors since they were already in my source just not enabled

May-7

* Added back patch to ramdisk for PACMAN rom.
* Added F2FS support
* Synced ramdisk with CM

April-23

New Release v3.0 All-In-One AOSP_KK4.4 Kernel!

* Sorry for the long delay. Got burnt out on android for awhile and got some new toys as well so was busy
* All the needed updates to kernel and Ramdisk since last release and to comply with CM"s new all-in-one rom build,
because of this we can now use one flashable zip for all qualcomm variants now. I added the auto-loki patching from
CM's rom zips so loki should be done for you. let me know if you have any issues.
* Updated kernel to 3.4.82
* I'm sure there are a few small fixes I forgot since last release but basically you can expect what you did with the last release just up to date.

Dec-24

New Release v2.4 for AOSP Android KitKat 4.4! (TW to follow soon)

Changes since v2.3:
* Got rid o dcvs governor as it never worked
* Updated to offical Android 4.4.2/CM-11 Kernel source, changes include:
* We are now using the msm2 gpu driver not msm.
* Updated WiFi Drivers
* Updated Sensor drivers
* Many changes to the framebuffer and vidc driver
* Linux 3.4.75

And as always the ramdisk is synced with CM as of time of compile

Oct-28
* AOSP-JB4.3: Tagged v2.3.3 (maintenance update)
* AOSP-JB4.3: Fixed issue with latest ROM builds

Oct-26
* AOSP-JB4.3: Tagged v2.3.2 (maintenance update)
* AOSP-JB4.3: Merged all the upstream commits from CM, should help with stability
* NOTE: If your colors are off with the display. Its because your ROM hasn't been updated to latest display drivers, ask your ROM developer to update their ROM.

Oct-20
* Common: Updated to Linux 3.4.66
* Common: Added Faux123's Simple GPU governor
* Common: Fixed compatibility with PAC
* AOSP-JB4.3: Merged upstream changes for compatibility with latest CM nightlies
* TW: Tried to fix issue with LPM mode (charging while off)

Oct-6
* Bumped AOSP to v2.2 and TW to v1.2 respectivly
* Common: Fixed issue across all custom S4 kernels where the Governor is only applied to online cpu cores. They are now set regardless
* Common: More aggressive L2 Overclock, bumped max L2 freq by 100 Mhtz and have a more aggressive scaling of the L2 freqs
* Common: Updated to Linux 3.4.62
* AOSP-JB4.3: a few (minor) upstream changes

Sep-5
* AOSP-JB4.3: Merged over 200 commits from CM to bring in sync, No other changes, although seems performance is a little improved

Aug-24
* General: initial release ot the TW/GE kernel, refered to as TW-JB4.3, this is the same as the TW (now known as TW-JB4.2) just compatible with GE roms

AOSP-JB4.3
* AOSP-JB4.3: Synced Ramdisk with CM, latest nightlies should work now
* AOSP-JB4.3: Fixed a bad merge in the last version related to I/O scheduling
* AOSP-JB4.3: Added official Samsung exFAT support (thanks ktoonsez for original commit)
* AOSP-JB4.3: Updated to Linux 3.4.59
* AOSP-JB4.3: Tagged v2.1

AOSP-JB4.2
* AOSP-JB4.2: Added official Samsung exFAT support (thanks ktoonsez for original commit)
* AOSP-JB4.2: Updated to Linux 3.4.59
* AOSP-JB4.2: Tagged v2.1

TW/TW-JB4.2
* TW: Some cleanup to try and make it more stable
* TW: Added official Samsung exFAT support (thanks ktoonsez for original commit)
* TW: Updated to Linux 3.4.59
* TW: Tagged v1.1 and will be known from this point on as "TW-JB4.2"

TW-JB4.3 - TW/GE
* TW-JB4.3: Initial TW/GE kernel v1.0

Aug-16
* AOSP-JB4.3: Maintenance update - Synced with upstream CM kernel at time of compile - glitches should be gone
* Note: sorry for the delay. i was busy getting 10.2 booting on pyramid/glacier/holiday
* Took the version number out of the OP title as its not the same across all platforms

Aug-4
* AOSP-JB4.3: Added AOSP 4.3 kernel, has all the updates from CM's kernel as of this date
* AOSP-JB4.2: Sync with CM. a little clean up
* TW: TW kernel is now out of RC and v1.0, Merged a few things from the AOSP-JB4.3 kernel
* There were a good amount of updates that are kinda hard to explain. if you want more details check my github

Old Changelogs
July-20
* TW: RC2 release
* TW: tried to fix exFAT support, please let me know
* TW: Fixed an overlook that was causing the GPU to stay at a higher freq then normal

July-18
* Fixed a few little overlooks on my part in the TouchWiz beta1. Here is RC1

July-17
* inital TW build, still beta but should work fine just might have a couple things enabled (I/O schedulers that dont work or shouldnt be)

July-14
* Fixed Color temp settings not showing in Advanced Settings
* Couple tweaks to fastcharge cherry-picked from ktoonsez's kernel
* Merged JFA source
* All CM changes merged
* Added option to configure CPU OC from chronic-config.sh
* Fixed a race condition between chronic-config.sh and init.qcom.post_boot.sh setting governor
* Updated to Linux 3.4.52
* Fixed a type-o in chronic-config.sh that might have prevented dynfsync from being set to the desired setting
* Initial support for the Sprint variant
* General cleanup

July-2
* Reworked the way the config script works. it now sets gov correctly. it was renamed to chronic-config.sh and moved to system/etc/
* A few upstream updates

June-30
* Maintenance update
* Merged all upstream CM changes, should work on latest nightlies now

June-26 Stable Release
* Over 100+ upstream commits, like vidc etc, CHECK HERE for details
* Updated to MFx source/google sources
* small bugfix to screen off max gov
* wakelock fix (upstream)
* Updated to Linux 3.0.50
* Few misc bugfixes

** Honnestly the changelog doesnt do the update justice. CHECK HERE for details

June-18
* Upstream: Kernel source updated to MDL (samsung)
* Bugfix: Synced ramdisk with upstream CM to fix issue with bluetooth
* Fixes to Fast charge
* Bugfix: fix issues with workqueue (ktoonsez)
* Screen off Max freq will be disabled while in call (ktoonsez)
* Bugfix: Two EHCI: HSIC commits from caf to fix a wakelock
* Added CIFS Support
* Switch to intellidemand as default CPU governor
* Set 504Mhtz as boot freq for GPU
* GPU: Changed 544mhz to 545mhz to conform better with the pll table
* reduce some log spam (ktoonsez)
* GPU OC: Add 627mhtz step
* Linux 3.4.49

June-11
* Merged all upstream changes from CM kernel, including things like the MDM kernel source update
* Updated to Linux 3.4.48
* GPU OC now correctly reflects the current gpu freq to sysfs

June-7
* Pretty sure the intellidemand issues are fixed now
* Some bugfixes from caf for cpufreq and cpufreq stats
* GPU OC is fixed now (wasn't working correctly, would reject any freq higher then 450)
* GPU OC steps are now 504 544 and 601mhtz
* Synced with upstream (CM)

June-4
* Added in between steps to OC freqs to try and help people squeeze a little more out of the CPU (ktoonsez)
* GPU OC to 533Mhtz
* Added some missing intelidemand code to try and fix battery drain
* Some upstream changes like control screen color temp by sysfs
* Switched back to interactive as default governor

May-31
* Tweaked the GPU bandwith and governor low/med/high values for better performance
* Some bug fixes from type-o's made by samsung
* Removed CPU governors that don't support hotplugging (ktoonservativeq, dancedance)
* Min cpu freq with start at 378Mhtz for all cores
* Switched to XZ compression when making kernel to reduce size (the only impact on user end is a 1 sec longer boot time on Samsung splash)

May-29
* Reverted some cherry-picks from upstream that was causing bootloops for some
* Fix for GPU governor, it was sometimes getting stuck at 450 mhtz even with screen off (credits: ktoonsez)
* Updated the updater-script in the flashable zip to do some housekeeping before flash like remove old modules

May-28-build2
* Fixed bad zip packages

May-28
* Rebased source off of ktoonsez kernel,
* Fixed all the instability from the last releases
* CPU OC up to 2322 Mhtz (not all devices can handle this!)
* added frandom support
* Added a few Governors and I/O Schedulers
* Disabled a lot of useless debugging options
* Disabled un-needed modules
* More general build optimizations
* Other changes I forgot

May-26-build2
* Fixed all the bootloop issues from the last build

May-26
* Bugfix: cpu freqs on all cores but core0 weren't being set to desired levels
* Bugfix: a lot of block (I/O) fixes from caf and faux123
* CPU is now overclockable to 2268Mhtz but not all devices, including mine can handle this.
* CPU can now be overvolted to 1500 uV
* CPU L2 cache overclock to 1.3Ghtz (this seemed to give the most performance boost out of any overclocking so far)
* full kernel based mpdecision (there is an init.qcom.post_boot.sh script included that will disable userspace mpdecision, DON'T REMOVE IT)
* Added back all the special UID drivers that got disabled
* A lot of cleanup to the defconfig and disabled a lot of useless options and enabled some that weren't there before
* Switched to intellidemand as default governor
* Switched to ROW as default I/O scheduler
* CPU: Boot at default freq of 1890Mhtz for stability
* Probably a lot more small tweaks I'm forgetting

May-18
* Added an init.d script to zip to help control custom kernel settings
* Added CPU OC to 2106 Mhtz (1998 mhtz default)
* Set default GPU OC to 450mhtz to save battery (still overclockable via 89chronic init script)
* Adjusted the GPU Bus bandwith, seems to help with performance and battery life
* Lots of updates for CM kernel (gpu drivers etc)
* Maybe a couple other tweaks I forgot to list

May-14
* initial release





* Please keep all comments in this Discussion Thread. Any comments not in that thread will be ignored. Feel free to use the DevDB Bug reporting option as you see fit. This is critical in keeping the same question from being asked times in 5 different threads all with the same answer. It was really slowing down development.

* ]If you have problems with frequencies sticking use "No frills CPU Control" and go to Settings and prevent other apps from changing CPU settings

* Although this kernel has now reached "stable" status. bugs still could pop up. please if you find a reproducible bug and decide to post please try and provide a last_kmesg or logcat.

* Versions go as follows: AOSP-JB4.3 = CM-10.2 etc, AOSP-JB4.2 = CM-10.1 etc, TW-JB4.2 = Android 4.2 TW based ROMs, TW-JB4.3: Android 4.3/Google Edition based ROMs





AOSP-JB4.2 : ChronicKernel-JB4.2-AOSP-INTL-v2.3.zip
AOSP-JB4.3 : ChronicKernel-JB4.3-AOSP-INTL-v2.3.3.zip
AOSP-KK4.4 : ChronicKernel-KK4.4-AOSP-JFLTE-v3.4.zip
TW-JB4.2 : ChronicKernel-JB4.2-TW-INTL-v1.3.zip
TW-JB4.3 : ChronicKernel-JB4.3-TW-INTL-v1.3.zip
Goo.im Repo : CLICK HERE
* This Kernel can also be downloaded directly with GooManager *




My Github (main): https://github.com/Team-Hydra/android_kernel_samsung_jf




* First off of course cyanogen, the CyanogenMod project and all who contribute.
* A lot of this was taken/based off of flar2's Kernel for the HTC One, so thanks for the source!
* Also grabbed some things from Faux123's kernel
* All the people who have helped me learn more and more over the past 4 months (arco/dastin1018/android1234567) you guys are the best!




I really didn't want to do this but people keep asking so here is a donation link if you want to buy me a coffee or pack of smokes (I go through a lot sitting on the PC messing around lol) go ahead. But not required or expected by any means

Note: The name on the paypal account may say patricia, this is because it's a family paypal account.





Happy Flashing

Albinoman887

XDA:DevDB Information
[AOSP/TW] ChronicKernel, Kernel for the Samsung Galaxy S 4

Contributors
albinoman887
Kernel Special Features: * Compiled with linaro * GPU OC to 627 Mhtz (450Mhtz default - configurable though chronic-config.sh init script) * CPU OC to 2322 Mhtz (1890 Mhtz default) * CPU L2 cache overclocked to 1.3Ghtz * Raised the low/med/high values for GPU governor one step ea

Version Information
Status: Stable

Created 2013-10-09
Last Updated 2014-07-25
Last edited by albinoman887; 6th October 2013 at 10:38 AM.
The Following 88 Users Say Thank You to albinoman887 For This Useful Post: [ View ]
18th May 2013, 11:31 AM   |  #2  
OP Recognized Contributor
Flag Snohomish, WA
Thanks Meter: 12,164
 
3,164 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Reserved
Please keep all discussion in the new Q&A Thread please. otherwise your comment will most likely be ignored. Check "NOTES" section in OP for details
Last edited by albinoman887; 9th October 2013 at 02:12 AM.
The Following 3 Users Say Thank You to albinoman887 For This Useful Post: [ View ]
18th May 2013, 11:32 AM   |  #3  
OP Recognized Contributor
Flag Snohomish, WA
Thanks Meter: 12,164
 
3,164 posts
Join Date:Joined: Dec 2010
Donate to Me
More
deleted...
Last edited by albinoman887; 9th October 2013 at 02:12 AM.
The Following 3 Users Say Thank You to albinoman887 For This Useful Post: [ View ]
18th May 2013, 12:39 PM   |  #4  
iamnotkurtcobain's Avatar
Senior Member
Thanks Meter: 2,605
 
8,510 posts
Join Date:Joined: Oct 2010
Thanks for this awesome kernel!!! . Keep going!

Gesendet von meinem GT-I9505 mit Tapatalk 2

---------- Post added at 01:39 PM ---------- Previous post was at 12:43 PM ----------

My videos with mx player doesn't play in hw mode. Just sw. Is this kernel or rom related? They did in the sammy rom and my S2 with cm10.1.

Gesendet von meinem GT-I9505 mit Tapatalk 2
18th May 2013, 01:02 PM   |  #5  
Alienex22's Avatar
Member
Flag Le chesnay
Thanks Meter: 6
 
48 posts
Join Date:Joined: Jun 2010
Donate to Me
More
Thanks but Bad quadrant score for the moment...

Sent from my GT-I9505 using xda premium
Last edited by Alienex22; 18th May 2013 at 01:05 PM.
18th May 2013, 01:15 PM   |  #6  
iamnotkurtcobain's Avatar
Senior Member
Thanks Meter: 2,605
 
8,510 posts
Join Date:Joined: Oct 2010
Quote:
Originally Posted by Alienex22

Bad quadrant score...

Sent from my GT-I9505 using xda premium

Who gives a **** about those fake scores?? Benchmarks are ****. If you want to use one choose antutu. Better.

Gesendet von meinem GT-I9505 mit Tapatalk 2

---------- Post added at 02:15 PM ---------- Previous post was at 02:03 PM ----------

Albinoman is it possible to make the kernel compatible with stweaks?

Gesendet von meinem GT-I9505 mit Tapatalk 2
Last edited by iamnotkurtcobain; 18th May 2013 at 01:27 PM.
18th May 2013, 01:26 PM   |  #7  
OP Recognized Contributor
Flag Snohomish, WA
Thanks Meter: 12,164
 
3,164 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Quote:
Originally Posted by iamnotkurtcobain

How gives a **** about those fake scores?? Benchmarks are ****. If you want to use one choose antutu. Better.

Gesendet von meinem GT-I9505 mit Tapatalk 2

---------- Post added at 02:15 PM ---------- Previous post was at 02:03 PM ----------

Albinoman is it possible to make the kernel compatible with stweaks?

Gesendet von meinem GT-I9505 mit Tapatalk 2

Quadrant is really out of date I wouldn't read much into it

Sent from my SGH-M919 using Tapatalk 2
The Following User Says Thank You to albinoman887 For This Useful Post: [ View ]
18th May 2013, 01:28 PM   |  #8  
iamnotkurtcobain's Avatar
Senior Member
Thanks Meter: 2,605
 
8,510 posts
Join Date:Joined: Oct 2010
Quote:
Originally Posted by albinoman887

Quadrant is really out of date I wouldn't read much into it

Sent from my SGH-M919 using Tapatalk 2

Thanks!
Is it possible to disable scrolling cache and android logger in your next kernel update? Would bring even more performance.

Gesendet von meinem GT-I9505 mit Tapatalk 2
The Following User Says Thank You to iamnotkurtcobain For This Useful Post: [ View ]
18th May 2013, 02:24 PM   |  #9  
daddyspud's Avatar
Senior Member
Flag leicestershire
Thanks Meter: 396
 
2,105 posts
Join Date:Joined: Nov 2010
Donate to Me
More
Great to see u over on the s4 buddy used ur cm10.1 rom for me sensation good to see great devs moving up in the world

Spud
The Following User Says Thank You to daddyspud For This Useful Post: [ View ]
18th May 2013, 03:01 PM   |  #10  
joelvn's Avatar
Senior Member
Flag Halsteren
Thanks Meter: 55
 
319 posts
Join Date:Joined: Mar 2013
More
Flashed in one go for me. Thanks for this kernel. Will try it out and get back to you with results

Edit: my screen brightness seems really high all the time when it is set on automatic? Why is this?

A reboot seemed to fix the problem for now, will let you know if it happens again.

Sent from my GT-I9505 using xda app-developers app
Last edited by joelvn; 18th May 2013 at 03:28 PM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Samsung Galaxy S 4 Unified Development by ThreadRank