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

Search This thread

Vipul Verma

Senior Member
Jun 9, 2013
206
508
Jhansi
Battery source in /mediatek/custom/"project-name"/*
kernel/battery.
There is some calibration value, max capacity, sensor type
NTC/PTC, battery type.
I think better you find other kernel source that have
exactly same battery capacity with your phone, then
change the your battery files, it is easier then change the
whole value by your self.
 
  • Like
Reactions: superdragonpt

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt
Battery source in /mediatek/custom/"project-name"/*
kernel/battery.
There is some calibration value, max capacity, sensor type
NTC/PTC, battery type.
I think better you find other kernel source that have
exactly same battery capacity with your phone, then
change the your battery files, it is easier then change the
whole value by your self.

Hi.

Yes i know, if you check my last commit on git you'll see i changed some values there.

But regarding battery settings/configs, there's also the drivers power API on ..mediatek/platform/mt6577 .... Etc.


Also concerning this device, there's no source that fits it, its been an headache from the beginning
This ZTE uses a lot of custom drivers. / changes on the regular vanilla ones.
But thanks anyway. ;)

Regards
 
Last edited:
  • Like
Reactions: x1596357

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt
HI

The day has come, Fisrt STABLE release is here ;)


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)

Also now there's an new compiled m4u module (kernel module)



HOW To Flash:
There's NO NEED to wipe data or cache / dalvik
JUST flash the kernel on recovery ;)


Just choose the correct .zip for your JellyBean version


Just an small note:
(About why both kernels have different build hours)

- They have the same commits/patchs/improvements.
- The reason is becouse i added some initial functions to fix the camera on JB 4.2, but this was crashing the camera on JB 4.1, so i recompiled the kernel again for the JB 4.1 adding the correct camera values ;)

This kernel was tested, and working:

JB4.1 ROMS:


  • Bruno's Stock 4.1.1
  • MuseOS 4.1.1

JB4.2.2 ROMS:



  • My Stock Rom 4.2.2

Regards
 
Last edited:

etijer

Member
Nov 12, 2013
41
3
Good work, hope more updates! There is possibility of varying the frequency of the processor when in charging the battery so that it is not full and shorten the charging time?

Regards.
 

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt
Good work, hope more updates! There is possibility of varying the frequency of the processor when in charging the battery so that it is not full and shorten the charging time?

Regards.

Yes
That should work just fine, changing into an powersaver / conservative Governor.

Until now, there are some pretty good governors that boosts an little the overall phone performance.
IO schedulers also, I've been testing the SIO scheduler and its rather good.

Regards
 

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt

Yes SmartassH3 (newer) and a lot more ;)


MgOTNcB.png


B32VYWy.png


Regards
 

etijer

Member
Nov 12, 2013
41
3
How those governors are activated? To me I do not appear, nor the cpu governor switcher, or the no frills ...:what:

Regards
 

-ReaL-

Senior Member
Nov 6, 2009
367
117
34
Yoshkar-Ola
Does it mean, that now we can port CyanogenMod or other AOSP ROM's??
Or compile kernel with exFAT (exFAT-nofuse project) filesystem support or standalone module?

PS: And where is download links??? I cant find anything in "DEVDV Download section"!!!
 
Last edited:

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt
UPDATES:

- I have applied more than 500 commits (patches) to the kernel.
- Kernel source is now updated to 3.4.5. (Kernel common)
- A lot of new improvements / features where added

TO do:

Due to the new commits, I need to fix some things on source code, that got broken.

Don't ask for ETA please I spent a lot of time this week updating the kernel (check the commits on my github ... )


Also I'm currently testing overcloking ;)
Its still a bit unstable and needs more work, OC on an Mediatek was achieved by an different method than the usual for other SoC's.


Will keep you up to date
Best Regards ;)
 

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt
Some people really cant read, and cant follow my rules...

Please re-read my "GPL Compliance" paragraph.

I said not to include my kernel in your own cooked ROM and released it to the general public.
Instead add an link to this thread.

As so, this thread is now closed.

Learn to respect other people's work.

Greetings to Venezuela
 

Top Liked Posts

  • There are no posts matching your filters.
  • 55
    Code:
    #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
     */


    vbLzFxt.png



    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:


    yG18r6g.png



    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
    30
    How to Flash
    On recovery: (No need to wipe anything)

    Just Flash the desired Kernel version.

    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.



    F.A.Q. :

    How can I change I/O Schedulers and Governors?
    You can use the No-frills CPU Control APP from the PlayStore to switch bettwen then.

    What's the Best Governor / I/O 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 don't survive reboot)
    Don't open the BBoostManager app, what you will be using its his WIDGET.
    18
    Kernel Version 1.4

    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 not set as: HotPlug (This is great as an daily Driver)
    • Default IO Sheduler is not 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)
    18
    KERNEL v1.1

    Changelog v1.1 (April 24 2014)

    Well this is an HUGE Update ...




    • Kernel Sources Updated from 3.4.0 -> 3.4.5 (common)

    • Updated kernel with varun.chitre15 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
    • Frandom driver - Fast Kernel Number Generator
    • 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


    • Updated kernel with bindassdost Unified BindassBoost Kernel IO schedulers and Governors:
    • 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



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



    B.Regards
    18
    UPDATES:

    - I have applied more than 500 commits (patches) to the kernel.
    - Kernel source is now updated to 3.4.5. (Kernel common)
    - A lot of new improvements / features where added

    TO do:

    Due to the new commits, I need to fix some things on source code, that got broken.

    Don't ask for ETA please I spent a lot of time this week updating the kernel (check the commits on my github ... )


    Also I'm currently testing overcloking ;)
    Its still a bit unstable and needs more work, OC on an Mediatek was achieved by an different method than the usual for other SoC's.


    Will keep you up to date
    Best Regards ;)