[T-Mobile Samsung Galaxy S 4] erid2thed:
Magical Unicorn Kernel
​

With the blessing of a Sr. Moderator here on XDA, Magical Unicorn makes its return to XDA.

What is the goal of magical unicorn?

Best Performance without the need to overclock
Best Battery Life
original and innotive features

ROMS Supported

Samsung Based PureAOSP (aka GooglePlayEdition), Android 4.4 KitKat
Samsung Based PureAOSP (aka GPE), Android 4.4.2 KitKat
Samsung Based TouchWiz on Android 4.4.x (Not yet released by samsung)

Where to get ROMS?

[ROM] KOT49H【4.4.2】Danvdh - Google Edition【AOSP Features】【Optimized】01-01-2014b - NEW YEARS BUILD

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

[ROM] VirginROM || a Google Play Edition ROM [4.3][4.4.2] - 12.17.13

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

Devices Supported

Samsung S4 M919 <TESTED>
Samsung S4 I9505G <TESTED>
Samsung S4 I9505 <UNTESTED>

Release 1 is pretty much optimized stock with underclocking support.

This kernel is NOT locked to TW or AOSP, but it will NOT work on CyanogenMOD roms,

for the same reason google kernels dont work on CM on NEXUS devices.

This is NOT posted in original development, cause like most kernels here on XDA, the OP has very little original work in their kernel.

Im just sharing what was given to me, again with the blessing of a Sr. Moderator here on XDA.

About the Installer

The installer used does NOT alter your ramdisk, including any customizations
from your rom developer, as well as any TWEAKS other kernels may use.
These "tweaks" used by other developers may conflict with this kernel
causing random weirdness and reboots. This Kernel is tested on a i9505g
or a m919, depending on who tests it but EVERY build is tested. It is tested
using a STOCK rom.

This original feature of the installer also allows this kernel as is to be flashed
on any version of 4.4, including 4.4, 4.4.2 - as there is NO version specific
ramdisk.

Change Log

No credit will be given, or claimed - after all, its OPEN SOURCE

See source code for Copyright Owner Information

=>RELEASE 1 - Optimized Stock
BOARD: name the device (TMO)
L2: sync L2 speeds with CPU speeds, but cap at 1134000hz
CPU: allow underclocking (down to 81MHz)
DEBUG: disable a lot of DEBUGGING
GPU: add support for hardware revisions > 1.2
CPU: add dvfs monitor driver
KEXEC: add suport for kexec-hardboot
LINARO: linaro cpu power management
PANEL: add support for colorshifting via SYSFS, Default to Value of 1
exFAT: build exFAT support into zImage, and fix -O3 compile warnings
ARM: add NEON optimization flags
LIB: optimize square root algorithm
ARM: dcache: select DCACHE_WORD_ACCESS for little-endian ARMv6+ CPUs
ASM: word-at-a-time: make the interfaces truly generic
LIB: use generic strnlen_user and strncpy_from_user functions
LIB: use optimized MEMCOPY in STRING routines
LIB: use optimized MEMCOPY and MEMMOVE routines
MEM: allow lowmem to be non contiguous and mixed
FS: make system wide mounting possible
FS: change do_fsync() to fget_light()
RWSEM: steal writing sem for better performance
RWSEM: R/W semaphores implemented using ARM atomic functions
ARM: use -mcpu=cortex-a15 when targeting MSM Krait CPUs
VFP: compile using NEON flags
BUILD: apply -O3 fixes and build it using linaro -O3 flags
GITIGNORE: add root .gitignore file
BASE: stock samsung i9505 base - ML4

As REQUIRED by GPL, source, binutils, and toolchains used to build this kernel are listed below. (yes, GPL requires toolchain source)

SOURE CODE: http://projects.ziggy471.com/projects/samsung-8064ab-kk-xda/repository/revisions

TOOL CHAINS: http://releases.linaro.org/13.12/components/android/toolchain/4.7

BINUTILS: http://releases.linaro.org/13.12/components/toolchain/binutils-linaro

<REMOVED BY OP>