Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,966 Members 42,041 Now Online
XDA Developers Android and Mobile Development Forum

[KERNEL][3.4.11] ZTE v970 / v970m (MT6577) | OC | UV | Performance | [21-06-2014]

Tip us?
 
superdragonpt
Old
(Last edited by superdragonpt; 6th April 2014 at 05:14 AM.)
#1  
superdragonpt's Avatar
Recognized Contributor - OP
Thanks Meter 5016
Posts: 1,571
Join Date: Apr 2013
Location: Lisbon

 
DONATE TO ME
Default [KERNEL][3.4.11] ZTE v970 / v970m (MT6577) | OC | UV | Performance | [21-06-2014]








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.





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
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-07-03
The Following 45 Users Say Thank You to superdragonpt For This Useful Post: [ Click to Expand ]
 
superdragonpt
Old
(Last edited by superdragonpt; 12th May 2014 at 01:46 AM.)
#2  
superdragonpt's Avatar
Recognized Contributor - OP
Thanks Meter 5016
Posts: 1,571
Join Date: Apr 2013
Location: Lisbon

 
DONATE TO ME
How to Flash
(Choose the correct JellyBean .zip)

On recovery:

No need to wipe anything

Just Flash the kernel.zip

It wont afect the rom, or your userdata

But Just in case, make an full backup before flash
Download


Kernel Download is now available in the XDA: DEVDB "Download" Section

Keep in Mind to choose the correct .zip Depending on your JB version (4.1 / 4.2)

There's also two new kernel Re-packs for MIUI v4 and LeWa v5

Notes

When giving feedback, please refer what's the kernel version / Rom your using

YOUR FEEDBACK IS IMPORTANT


If you like my work press Thanks, and feel free to Donate, and buy me an beer


Latest work :
Mediatek MT6582 SoC: (Wiko DarkMoon)
JB 4.2.2 / Carliv Touch Recovery
LeWa Os v5

Mediatek MT8125 SoC: (Asus Memo Pad HD 7)

JB 4.2.2 / AOSP / Carliv Touch Recovery

Mediatek MT6577 SoC: (ZTE V970 / v970m)
Custom Kernel
AOSP 4.1.2 w/ Custom Kernel
LeWa 4.1.2 w/ Custom Kernel


All the other Projects

The Following 24 Users Say Thank You to superdragonpt For This Useful Post: [ Click to Expand ]
 
superdragonpt
Old
(Last edited by superdragonpt; 24th April 2014 at 05:54 PM.)
#3  
superdragonpt's Avatar
Recognized Contributor - OP
Thanks Meter 5016
Posts: 1,571
Join Date: Apr 2013
Location: Lisbon

 
DONATE TO ME
F.A.Q

  • How can I change IO Schedulers and Governors ?
  • --> You can use the No-frills CPU Control APP from the PlayStore to switch bettwen then.
  • What's the Best Governor / IO Scheduler?
  • --> Depends on your needs (Performance; Powersaving; etc)
  • An good resource, check this This Thread OR Just Google it ...
  • How to Overclock my Device?
  • --> Download the attached app (THANKS bindassdost ):
  • 1: Add BBoost Game Mode widget to homescreen
  • 2: The app widget behaves as toggle button to switch between stock and overclock
  • (Overclock dont survive reboot)
  • Don't open the BBoostManager app, What you will be using its his WIDGET.




OR

If you are an hardcore Android/Linux fan:

With an Terminal App, give the following comands (with su perms):

Code:
Select Code
echo 0 0x000051e0 > /proc/clkmgr/pll_fsel
To activate Overclock

Code:
Select Code
echo 0 0x00004ca0 > /proc/clkmgr/pll_fsel
To go back to Stock






  • Why, when i overclock, CPU clock is still on 1000MHz?
  • --> Overclocking an Mediatek uses an different method. (PLL's Overclocking, instead of directing Overclocking the CPU

  • So, how much is the Overclock ?
  • --> The overclock is about >10% to >20% (more or less . . .)
  • Overclock uses more Battery power ?
  • --> YES , if you overclock, your battery will drain a bit faster (and this is rather normal)

Attached Files
File Type: apk BBoostManager.apk - [Click for QR Code] (297.6 KB, 347 views)
If you like my work press Thanks, and feel free to Donate, and buy me an beer


Latest work :
Mediatek MT6582 SoC: (Wiko DarkMoon)
JB 4.2.2 / Carliv Touch Recovery
LeWa Os v5

Mediatek MT8125 SoC: (Asus Memo Pad HD 7)

JB 4.2.2 / AOSP / Carliv Touch Recovery

Mediatek MT6577 SoC: (ZTE V970 / v970m)
Custom Kernel
AOSP 4.1.2 w/ Custom Kernel
LeWa 4.1.2 w/ Custom Kernel


All the other Projects

The Following 8 Users Say Thank You to superdragonpt For This Useful Post: [ Click to Expand ]
 
mike_san
Old
#4  
Member
Thanks Meter 0
Posts: 67
Join Date: Feb 2013
Thank you! so much!!

Flashing and testing!
 
etijer
Old
#5  
etijer's Avatar
Junior Member
Thanks Meter 0
Posts: 17
Join Date: Nov 2013
Thanks for the work! What possibilities does the new kernel?

Regards.

---------- Post added at 08:23 PM ---------- Previous post was at 07:28 PM ----------

Problems when the charger is connected, does not recognize that is charging me and I do not know, if indeed it is doing.

Regards.
 
superdragonpt
Old
(Last edited by superdragonpt; 29th March 2014 at 10:34 PM.)
#6  
superdragonpt's Avatar
Recognized Contributor - OP
Thanks Meter 5016
Posts: 1,571
Join Date: Apr 2013
Location: Lisbon

 
DONATE TO ME
Quote:
Originally Posted by etijer View Post


Problems when the charger is connected, does not recognize that is charging me and I do not know, if indeed it is doing.

Regards.
Hi there
Thanks for the feedback, please refer (and the others, when replying) what JB version are you using?
The JB 4.1.1 or JB 4.2.2.

Im using the 4.2.2, and yes it doesn't display that its charging sometimes, but he IS charging.
If you powered off your device you'll see that it is charging.
Also you should see the RED Led, that indicates that's charging

Also sometimes the battery percentage may display wrong values.

Regards, and thanks for testing
If you like my work press Thanks, and feel free to Donate, and buy me an beer


Latest work :
Mediatek MT6582 SoC: (Wiko DarkMoon)
JB 4.2.2 / Carliv Touch Recovery
LeWa Os v5

Mediatek MT8125 SoC: (Asus Memo Pad HD 7)

JB 4.2.2 / AOSP / Carliv Touch Recovery

Mediatek MT6577 SoC: (ZTE V970 / v970m)
Custom Kernel
AOSP 4.1.2 w/ Custom Kernel
LeWa 4.1.2 w/ Custom Kernel


All the other Projects

The Following User Says Thank You to superdragonpt For This Useful Post: [ Click to Expand ]
 
mike_san
Old
#7  
Member
Thanks Meter 0
Posts: 67
Join Date: Feb 2013
Quote:
Originally Posted by superdragonpt View Post
Hi there
Thanks for the feedback, please refer (and the others, when replying) what JB version are you using?
The JB 4.1.1 or JB 4.2.2.

Im using the 4.2.2, and yes it doesn't display that its charging sometimes, but he IS charging.
If you powered off your device you'll see that it is charging.
Also you should see the RED Led, that indicates that's charging

Also sometimes the battery percentage may display wrong values.

Regards, and thanks for testing
Kernel should fix the "clash of clans" problem on Jb 4.1.2?
 
etijer
Old
#8  
etijer's Avatar
Junior Member
Thanks Meter 0
Posts: 17
Join Date: Nov 2013
I use 4.2.2 and sure enough, the battery is charging. Having trouble to correctly display the battery percentage. There is possibility to add governors to kernel? Keep it up.

Regards.
 
superdragonpt
Old
#9  
superdragonpt's Avatar
Recognized Contributor - OP
Thanks Meter 5016
Posts: 1,571
Join Date: Apr 2013
Location: Lisbon

 
DONATE TO ME
Quote:
Originally Posted by etijer View Post
I use 4.2.2 and sure enough, the battery is charging. Having trouble to correctly display the battery percentage. There is possibility to add governors to kernel? Keep it up.

Regards.
I may add governors and IO schedulers in the future.
But first lets fix these last issues.

Thanks
If you like my work press Thanks, and feel free to Donate, and buy me an beer


Latest work :
Mediatek MT6582 SoC: (Wiko DarkMoon)
JB 4.2.2 / Carliv Touch Recovery
LeWa Os v5

Mediatek MT8125 SoC: (Asus Memo Pad HD 7)

JB 4.2.2 / AOSP / Carliv Touch Recovery

Mediatek MT6577 SoC: (ZTE V970 / v970m)
Custom Kernel
AOSP 4.1.2 w/ Custom Kernel
LeWa 4.1.2 w/ Custom Kernel


All the other Projects

The Following 2 Users Say Thank You to superdragonpt For This Useful Post: [ Click to Expand ]
 
superdragonpt
Old
(Last edited by superdragonpt; 6th April 2014 at 04:11 AM.)
#10  
superdragonpt's Avatar
Recognized Contributor - OP
Thanks Meter 5016
Posts: 1,571
Join Date: Apr 2013
Location: Lisbon

 
DONATE TO ME
Beta 2 is Uploaded







EDIT: I've repack the kernel, for JB 4.1.1 users also
Just choose the correct version

Make an full backup on Recovery


Flash The kernel

Reboot


Please test it, and later you can revert back your stock kernel/data by restoring CWM Backup


If your battery Percentage (%) is frozen, reboot to recovery and wipe cache and dalvik again.
Regards
If you like my work press Thanks, and feel free to Donate, and buy me an beer


Latest work :
Mediatek MT6582 SoC: (Wiko DarkMoon)
JB 4.2.2 / Carliv Touch Recovery
LeWa Os v5

Mediatek MT8125 SoC: (Asus Memo Pad HD 7)

JB 4.2.2 / AOSP / Carliv Touch Recovery

Mediatek MT6577 SoC: (ZTE V970 / v970m)
Custom Kernel
AOSP 4.1.2 w/ Custom Kernel
LeWa 4.1.2 w/ Custom Kernel


All the other Projects


The Following 8 Users Say Thank You to superdragonpt For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes