[Moto X Android Development] tycoo:
x_kernel

Introduction, Credits & Thanks

Hey guys,

i finished building a basic kernel for the Moto X. As far as i can see this kernel would be ready to release. I cannot encounter any bugs atm and the kernel is running stable and fast. Though, my main focus is not to distinguish myself, rather i am interested i some collaboration.

So this thread is dedicated to [MENTION=4988866]tdhite[/MENTION] [MENTION=4360710]skiwong20[/MENTION] [MENTION=5604178]zwliew[/MENTION] [MENTION=4217277]Gustavo_s[/MENTION] [MENTION=5116201]Megatron007[/MENTION] [MENTION=5475344]##W4TCH0UT##[/MENTION] [MENTION=5294352]cyril279[/MENTION] [MENTION=4293041]athulele[/MENTION] ,.. which all did some great work in developing some roms and kernels already. I am sure i missed someone, feel included as well and i like to invite you to take the source, build the kernel and bring in your experience in testing, debugging, discussion and further improving. Together with arm-eabi-4.8 the kernel compiles without any errors and warnings.

Summary

But first let me summarize the status of my work and explain what i have done so far:

Based on the motorola source i updated the kernel to Linux Version 3.4.110.

During this process i had to adapt many commits to match the moto source. Also some patches needed to be excluded completely, because some stuff differed to much to merge the updates on top. A detailed description you find in this commit: Squashed update of cm-12.1 kernel to Linux 3.4.110

Second i examined the codeaurora LA.AF.1.1_rb1.18 branch and picked most of for our device left, relevant and working commits as well. Among others these includes patches for kgsl/gpu, camera, audio, net and wlan. Some stuff needed to be adapted too. Tag: LA.AF.1.1_rb1.18-extract

Main Features

- Linux Kernel 3.4.112 updates

- Codeaurora LA.AF.1.1_rb1.18 branch updates

- IoScheduler: Fiops, Sio, Vr, Zen

- Smartmax Governor and the changes by [MENTION=4988866]tdhite[/MENTION]

- IntelliActive Governor -> changed frequencies to match msm8960dt

- Intellidemand Governor-> changed frequencies to match msm8960dt

- Interactive Governor -> updates from the razrqcom-dev-team git and much more

- Faux's simple GPU governor

- Faux's IntelliPlug, IntelliThermal, Soundcontrol and USB Fastcharge adaption

- Vibration Strength Control

- Userspace LUT tuning & Colour Calibration, thx to [MENTION=4217277]Gustavo_s[/MENTION]

- Zram, Zsmallox, Zcache, Frontswap -> complete Linux Kernel 3.17 backport, a lot of credits goes to the razrqcom-dev-team

- Lz4 compression/decompression

- Kernel Mode Neon + Crypto SHA512 support

- complete lowmemorykiller backport with adaption to vmpressure and many other tweaks

- Rewritten overclocking capabilities up to 1890Mhz, thx to @faux123 fot his initial coding

- Kernel underclocking with a lower frequency of 189 Mhz, thx to @zwliew

- Customizable voltage table / Voltage regulator

- Kernel Samepage Merging tweaks

- disabled sparsemem

- WQ_POWER_EFFICIENT for power oriented workqueues

- LoUIS API for cache maintenance ops

- Scheduler updates

- RCU_FAST_NO_HZ enabled

- massive update regarding kernel's memory managment

- many many more stuff

- init.d script tweaks, see second post

Leftovers

Tweaks discarded for now or to be reviewed and reimplement:

- lib/string & lib/memcopy glibc version -> It is just a placebo maybe

- frandom -> may be incompatible with lollipop and can cause problems

- unaligned access -> can cause problems with a optimized toolchain

- adreno idler -> needs the implementation of powersuspend which we dont have atm

- vnswap, zswap,.. -> does anybody know a proper and up-to-date backport?

- optimizations flags to compile with linaro or uber

- more hotplug driver

Thats all from my side for now.

If there is any stuff which should be reverted, something that may cause problems, feel free to report.

If you have some recommendations, for example what hotplug driver to check and bring in tell me.

Whatever, every feedback is welcome.

Credits and Thanks to:

CyanogenMod, Kernel.org, Code Aurora Forum, Google, razrqcom-dev-team and everyone who is involved in developing for the moto x. Check out the commits author in my git.

Disclaimer: You're installing this at your own risk. Please, make nandroid backups before installing any of these kernels. I take no responsibility for damaging your phone.

XDA:DevDB Information

x_kernel, Kernel for the Moto X

Contributors

tycoo

Source Code: https://github.com/tycoo/moto_x_kernel

Kernel Special Features:

Version Information

Status: Stable

Current Stable Version: v1.5

Stable Release Date: 2016-05-18

Created 2015-12-15

Last Updated 2016-05-18