[ZTE Grand X V970] superdragonpt:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
* DO NOT LEECH MY DOWNLOADS, PLEASE RE-DIRECT YOUR FORUM /PAGE
* TO THIS THREAD, IF YOU LIKE MY WORK, YOU CAN SAY THANKS,
* AND MAYBE BUY ME SOME BEERS
*/

​

Open Sourcing Mediatek - ZTE v970 ; SoC MT6577​

Being owner of an Mediatek device, means (most of the times) not having the sourcecode published by the Official vendor.

ZTE never published full ICS sources (they only gave us incompleted, and unbuildable sources).

Furthermore, we never had JB 3.4.x Kernel sources.

Well this is xda after all, meaning we can accomplish pretty much everything ;)

This is an fully Custom Kernel Source.​

​

### For JellyBean 4.1 / JellyBean 4.2 Roms ONLY ###

--> For the new KitKat Build The Kernel is already included on the Rom, and Kernel Updates will be on that thread​

Hello Guys ! ;)

In this thread you will find my custom Kernel for the ZTE v970 / v970m / Smart a18 (Portuguese Single-SIM version)

Please be sure to read (and re-read) to avoid unnecessary questions.

Changelogs

Changelog v1.4 (June 21 2014)

Kernel Upstream to Linux 3.4.11

(check my github for the fully commit history, don't want an long Changelog here)

Now Compiled with the Latest Linaro-Cross ToolChain 4.9.1 Cortex A9

Compiled with optimized -O2 Flags with MODFLAGS

Dynamic management of dirty page writebacks (fully controled on Performace Control app)

Completely Fair Scheduler: Responsiveness Tweeks

CPU Governors: Added SmartAssV2

Default Governor is now set as: HotPlug (This is great as an daily Driver)

Default IO Sheduler is now set as: SIO

Battery: Improved Battery voltage table; increase battery charging voltage (will charge an bit faster now); Precise Tunning.

Fixed init.d on all Kernel Variants

JB 4.1: Fixed Freezing caused by 3rd party apps notifications, like the FB app (.blob)

For Overclocking / IO Schedulers and Governors check FAQ on post #3

Older ChangeLogs:

Changelog v1.3 (May 22 2014)

ToolChain: Now compiled with Linaro Toolchain 4.6.4 (Optimized Cortex a9 - Better Performance )

Battery: NTC Enabled (Fixs Temperature reading)

Battery: Reverted to v1.1 Battery configs + NTC Enabling (this is the best combo)

Battery: Improved WIFI Draining (Battery will last longer now when WIFI is ON)

Kernel Modules: Striped from useless code (now they are 1 / 4 of their old size )

Changelog v1.2 (May 12 2014)

Fixed USB Storage Vendor ID

New Battery Driver Configs

Notification LEDs FIX for JB4.1.x

Now also supporting MIUI v4 and LeWa v5 ROMs (JB4.1.x)

Changelog v1.1 (April 24 2014)

Well this is an HUGE Update ...

Kernel Sources Upstream from 3.4.0 -> 3.4.5 (common)

Ported and Merge the following ThunderZap 2.0 Kernel features:

Cortex A9 optimizations

Neon optimizations

Increased the kernel timer from 100==>300

Removed old SHA1 routines

Dynamic Filesync Control 2.0

Dynamic Management of Dirty page writeback

Undervolted complete chipset by 66.66mV[Milli-Volts]

Lock initial TCP window size to 64k (Improves network ping and output)

Faster NOATIME and NODIRATIME mounting flags

Disabled Gentle Fair Sleepers

Enabled ARCH_POWER

Asynchronous I/O latency to a solid-state disk greatly increased

Patches to prevent depleting Entropies

Reduced Android Logger size

Optimized AES and SHA1 routines

Lowered Log Buffer shift

Various EXT4 Filesystem patches from android_kernel_common

Plugged memory leaks to cpufreq driver from upstream

Optimizations to SLUB memory allocator

Decreased CPU transition latency

Removed all debugging shi**

Proportional Rate Reduction for TCP - Google

Optimized swahb32() byteswap helpers

Compiled vfp with neon

Tuned CFS parameters

Reduced vfs cache pressure size

Optimized VM dirty ratios

Optimizations to Android Low Memory Killer

Optimized CFQ scheduler

Ported and Merge the following BindassBoost Kernelfeatures:

Governors: Sakuractive ; Nightmare; Interactivex; Zzmoove; Hotplug; Lulzactiveq; SmartassH3; Hybrid; Ondemand; Userspace; Powersave; Pegasusq; Performance

IO Schedulers: Noop; Deadline; Cfq; Sio; Fifo; Fiops; Row; Vr; Zen; SioPlus

Updated kernel with MeM Overclocking Feature - Thanks to bindassdost For MTK SmartOC and benoitm974 for his work on adding OC feature to an MTK device

Other Features :

(JB 4.2.2) Fixed Auto-Brightness, fully working now

(JB 4.2.2) Improved GPS

hrtimer: Introduce effective timer slack

mm: pmd_read_atomic: fix 32bit PAE pmd walk vs pmd_populate SMP race

raid5: delayed stripe fix

Optimized ARM RWSEM algorithm - Thanks to faux123

fs: switch do_fsync() to fget_light()

jbd2: optimize jbd2_journal

ext4: speed up truncate/unlink by not using bforget() unless needed

af_unix: speedup /proc/net/unix

binder.c Patch for (future) Android KitKat support

entropy tweaks

Changelog Stable v1.0 (April 06 2014)

Fix whrong Battery Percentage being displayed ( % )

Fix whrong Battery sensor temperatures being displayed

VM_MAX_READAHEAD is now set to 1024kbytes

Tweak vm dirty ratios (thanks to varun.chitre15)

Compile vfp with neon (thanks to varun.chitre15)

Changelog Beta v2 (March 30 2014)

Re-work battery related issues

Changelog Beta v1 (March 29 2014)

Compiled Today

Insecured

Persistent ADB

Compiled using GCC 4.6 ToolChain

zImage Compression changed from GZIP to LZMA

VM MAX READAHEAD changed from 128 to 512 Kb

Removed debug Sh##

​

Bugs

- You tell me
​

Some Features of the Custom Kernel (Check ChangeLogs for all features...)

Kernel Sources Upstream from 3.4.0 -> 3.4.11 (common)

Insecured

Persistent ADB

Compiled using GCC 4.9.1 LINARO-Cross Optimized Cortex a9 ToolChain

zImage Compression changed from GZIP to LZMA

Ported and Merge the following ThunderZap 2.0 Kernel features:

Cortex A9 optimizations

Neon optimizations

Increased the kernel timer from 100==>300

Removed old SHA1 routines

Dynamic Filesync Control 2.0

Dynamic Management of Dirty page writeback

Undervolted complete chipset by 66.66mV[Milli-Volts]

Lock initial TCP window size to 64k (Improves network ping and output)

Faster NOATIME and NODIRATIME mounting flags

Disabled Gentle Fair Sleepers

Enabled ARCH_POWER

Asynchronous I/O latency to a solid-state disk greatly increased

Patches to prevent depleting Entropies

Reduced Android Logger size

Optimized AES and SHA1 routines

Lowered Log Buffer shift

Various EXT4 Filesystem patches from android_kernel_common

Plugged memory leaks to cpufreq driver from upstream

Optimizations to SLUB memory allocator

Decreased CPU transition latency

Removed all debugging shi**

Proportional Rate Reduction for TCP - Google

Optimized swahb32() byteswap helpers

Compiled vfp with neon

Tuned CFS parameters

Reduced vfs cache pressure size

Optimized VM dirty ratios

Optimizations to Android Low Memory Killer

Optimized CFQ scheduler

Ported and Merge the following Unified BindassBoost Kernel features:

Governors: Sakuractive ; Nightmare; Interactivex; Zzmoove; Hotplug; Lulzactiveq; SmartassH3; Hybrid; Ondemand; Userspace; Powersave; Pegasusq; Performance

IO Schedulers: Noop; Deadline; Cfq; Sio; Fifo; Fiops; Row; Vr; Zen; SioPlus

Updated kernel with Overclocking Feature - Thanks to bindassdost For MTK SmartOC and benoitm974 for his work on adding OC feature to an MTK device

Other Features :

(JB 4.2.2) Fixed Auto-Brightness, fully working now

(JB 4.2.2) Improved GPS

hrtimer: Introduce effective timer slack

mm: pmd_read_atomic: fix 32bit PAE pmd walk vs pmd_populate SMP race

raid5: delayed stripe fix

Optimized ARM RWSEM algorithm - Thanks to faux123

fs: switch do_fsync() to fget_light()

jbd2: optimize jbd2_journal

ext4: speed up truncate/unlink by not using bforget() unless needed

af_unix: speedup /proc/net/unix

binder.c Patch for (future) Android KitKat support

entropy tweaks

​

GPL Compliance:

​

Kernel 3.4.11

GitHub Repo

I do respect the GPL, but using someone else's work without proper credits is just LACK OF RESPECT.

The inclusion of this kernel in your ROMS is NOT allowed.

Instead add a link to my kernel thread as a recommendation on your thread.

I Don't support KANGS!

So please Show some respect, when using my commits, as well as the commits i added from other Dev's (with proper credits/ git authorization)

Fail to comply and i will drop this project

​

Credits:

superdragonpt ;)

lingfude For dumping and fixing the GT818B TouchScreen Driver / other commits

varun.chitre15 For his Awesome work on ThunderZAP kernel (ported his features)

bindassdost For his Awesome work on Unified BindassBoost kernel (ported his Patched IO / Govs)

benoitm974 For discovering the MeM PLL's Overclock on MTK 6577

Christopher83 For his awesome ToolChains

All (common) kernel contributors | www.kernel.org for keeping Linux / Android alive ;)

I would also like to thank:

Dr-Shadow, for always being available to clear my doubts.

bgcngm, for the MTK unpack / repack kernel scripts

XDA:DevDB Information

[KERNEL] ZTE v970 / v970m (MT6577), Kernel for the Android General

Contributors

superdragonpt

Source Code: https://github.com/dragonpt/Kernel_3.4.11_JB_ZTE_v970

Kernel Special Features:

Version Information

Status: Stable

Current Stable Version: 1.4

Stable Release Date: 2014-06-21

Beta Release Date: 2014-03-30

Created 2014-03-29

Last Updated 2014-11-28