[Galaxy S I9000 Android Development] kasper_h:
Just like for CM9&CM10, I started making a CM10.1 kernels. The philosophy is the same: stock plus a few extras

This kernel is based on my CM10 Mackay kernel.

If you like a CM10.1-based ROM with the Mackay kernel included, there is also Mackay ROM:

http://xdaforums.com/showthread.php?t=2024269

Thanks to all SGS-CM-kernel developers (pawitp, stratosk, DerTeufel, Glitch, mialwe, krarvind) , I learned a lot from all of you!

Changelog 0.399 compared to previous release (0.341)

-Final build for JB4.2

-linux v3.0.90

On 2.7.0+ Mackay ROMs, BLN/recovery/navbar can be activated in Mackay settings*

On other roms, install the kernel, reboot, open /data/local/mackay/bln/recovery/navbar and change the 0 for 1. Then reboot:

bln (set to 1) BLN will be activated

recovery (set to 1) CWM will be activated

navbar (set to 1) navbar will be activated

As an alternative, Bejda developed a script for Mackay settings:

http://xdaforums.com/showpost.php?p=41729828&postcount=953

All features compared to stock kernel:

Features:

-Build using the Cortax-A8 optimized Linaro 4.7.4 toolchain of Christopher83: http://xdaforums.com/showthread.php?t=2098133

-Christopher86's cortex-A8 optimized Linaro toolchain (June version)

-O3 optimization

-updated to linux kernel version 3.0.90

-SLQB memory allocator (default, should be slightly faster)

-XZ compression of kernel & initramfs

-395MB RAM

-SIO scheduler

-Added Lagfree governor

-ROW scheduler (tweaked, default scheduler)

-FIOPS scheduler (tweaked)

-XZ compression of kernel & initramfs

-395MB RAM

-many improvements to IO schedulers in general

-Deadline tuning (thanks to DerTeufel)

-Ondemand tuned (default governor)

-SmartassV2 governor

-Interactive governor (updated to android 3.4 code + fixes)

-Wheatley & Lulzactive governors

-Conservative tuned

-Call volume hack (use “Settings>Mackay Settings”* to set volumes)

-Reduced battery polling interval

-Fast charge (activate through “Settings>Advanced Settings”* or the QuickCharge toggle in MackayROM)

-WiFi PM_FAST mode selection (activate using “Settings>Mackay Settings”*)

-Battery life extender (set through “Settings>Mackay Settings”*)

-CustomVoltage (set using NSTools)

-BLN (can be enabled through “Settings>Mackay Settings”*)

-USB OTG support (needs external power supply)

-1100-1400MHz OC steps

-Custom kernel splash (Thanks to Malcho)

-Updated charging logo to match open charger

-Disabled swap & zram

-Improve memcopy/memmove

-Improve the performance of memcpy and memmove

-Kill task closest in size to memory needed to free

-LOAD_FREQ (4*HZ+61) avoids loadavg Moire

-Entropy tweaks: http://lwn.net/Articles/489734/

-backport CPUIDLE from 3.5

-arm/crypto: Add optimized AES and SHA1 routines

-Unaligned CPU access

-Updates to binder

-Improvements to RWSEM code

-Improvements to binder code

-Improvements to tmpfs

-Added frandom (much faster random number generator)

-Updated to lowmemorykiller with PID whitelist (thanks to stratosk)

-Updated wifi driver to 5.90.195.114

-Updated GPU driver to DDK 1.8@2198402

*“Settings>Mackay Settings” only available with Mackay ROM 2.7.0+

*also available through the Galaxy S & Mackay app in the launcher

bootable/recovery:

-Mackay recovery (based on CWM 6.0.3.5 & TWRP 2.6-beta)

CWM:

-Clear NSTools settings

-Clear init.d settings

-Show battery status in recovery

-Aroma FileManager

-Include using soft keys to navigate the menu (thanks fishears for the idea)

-Enable holding keys for repeated presses

-Themed orange

TWRP:

-Themed orange

-Run recovery-apps (zip files should be present in /system/mackay, launch them through advanced->run app)

-Build in a script to reboot from twrp to cwm*

*To use this feature from TWRP, tap advanced>run app>rebootcwm.zip. Then from the homescreen choose: reboot>recovery

Downloadable with CMC & voodoo colour:

https://s.basketbuild.com/devs/kasperhettinga/sgs/kernel/pre-KK/

Source code: https://github.com/kasperhettinga/samsung-kernel-aries/commits/mackay-cm101

This is a freshly started project. Ideas for improvements/additions are welcome but:

1. I try to stay close to stock

2. The time I spend on features depends on how much I like them myself

Credits:

-teamhacksung/pawitp for making CyanogenMod work on our ancient phone

-stratosk/DerTeufel/Mialwe for the inspiration I got from their kernels

-rootax for providing a high-speed server for high quality downloads

Download (TWO flavours can be download: CMC=CM stock colour or VC=Voodoo Colour :)):

http://rootaxbox.no-ip.org/kasper_h/kernels/JB42/

For those who want to theme it even further, Bejda made a Mackay splash screen!

http://xdaforums.com/showthread.php?t=2214468

For those who want to theme TWRP (or simply get rid of the orange ;)), erpurohit made a TWRP theme:

http://xdaforums.com/showthread.php?t=2262937

This version can only be used on JB4.2-based ROMs

FAQ

Q. I can't change governor in NStools (or any similar app)

A. Go to recovery, mount data & datadata partition, then fix permission. You can also install the fix permissions app to this for you: http://bit.ly/YxPgLD

Q. Process x (e.g. mediaserver/phone) is eating 50+% of my battery, what should I do?

A. Go to settings>apps>all and find the app which is causing the battery drain. Then delete app data and reboot phone. If it does not help, you can combine this step with clearing dalvik cache.