[MM-KERNEL][UC][F2FS] Project T for MM [STOCK ROM ONLY]

Search This thread

TheSSJ

Senior Member
Feb 25, 2010
1,777
2,276
OnePlus Nord
Hello again,

This is my work on the stock Marshmallow Kernel for Zenfone 2, based on the officially released ZF2 kernel source code.

Please note that I do my testing on a ZE551ML 4GB 2,3GHz

Note: This kernel works ONLY on stock based versions!​

Features:
Based on Zenfone 2 V4.21.40.184 kernel source (completely from scratch)
Built with gcc4.9 toolchain
UC to 333MHz
Touchboost input event handler
Added the following CPU governors:
- Lionheart
- Bioshock
- Yankactive
- TheSSJactive (Yankactive with hotplugging)

Added IO schedulers:
- sio
- zen
- vr
- fifo
- sioplus (credits to @boype, fixed afterwards for zf2 by me)
- fiops
- working ROW scheduler!!!
- deadline

Added TCP congestion algorithms:
-BIC
-CUBIC
-WESTWOOD
-HSTCP
-HYBLA
-HTCP
-VEGAS
-VENO
-SCALABLE
-LP
-YEAH
-ILLINOIS

Approx. 30% faster due to CRC disabling and auditing
Power efficient Work queues
Powersuspend
Dynamic FSync
Set minimum brightness to 2 instead of 15 percent (changeable via kernel adiutor, please set it to 1 there, otherwise your screen is pretty much black)
exfat support (no fuse, all credits to @Dorimanx, automounting of devices fixed by @sorg)
Sweep2Sleep (all credits to Lord Boeffla)
frandom RNG
F2FS support
ZRAM
WLAN Wakelock reducer


More to come:
Init.d

If I should find the time also:
BLX
A separate KVM build
Compiling with another Toolchain

How to install:

1st pre-requisite: Unlock your Bootloader
2nd pre-requisite: Use the stock Marshmallow ROM ;-)
3rd pre-requisite: BACKUP!!!

Download the flashable anykernel zip here:
Drive

Flash it via TWRP and reboot. The Anykernel zip preserves whatever modification you already have (xposed, root,...) and just replaces the needed parts :good:

Credits:
@jrior001, @crpalmer, @jamison904, @tectas, @dorimanx, @Lord Boeflla, @say99

XDA:DevDB Information
[MM-KERNEL][UC][F2FS] Project T for MM [STOCK ROM ONLY], Kernel for the Asus ZenFone 2

Contributors
TheSSJ
Source Code: https://github.com/TheSSJ/zf2_mmkernel

Kernel Special Features: F2FS, more governors, underclocked, more IO schedulers, westwood TCP cong

Version Information
Status: Stable
Current Stable Version: 1.5
Stable Release Date: 2016-11-25

Created 2016-09-09
Last Updated 2016-12-08
 

TheSSJ

Senior Member
Feb 25, 2010
1,777
2,276
OnePlus Nord
Reserved

Changelog:

25-11-2016 v1.5
- Updated to latest kernel version from Asus Website (.184)

23-09-2016 v1.4
- backlight is configurable again (super simple patch)
- Mechanism to avoid entropy depleting (aka generating random numbers as needed)

20-09-2016 v1.3
- set brightness to the minimum possible before the screen goes off
- restrict user space apps to modify the min_brightness node, Kernel adiutor cannot mess around anymore with it
- increase speed of mathematical operations

18-09-2016 v1.2
- Fixed deep sleep issue and camera problems

18-09-2016 v1.0 & 1.1
- Implemented WLAN wakelock divider (configurable in KA)
- Enabled Deadline IO scheduler
- Increased performance by approx. 30% (according to the rumors)
- GPU: Set default frequency to 266MHz
- Should automount cache and data depending if ext4 or f2fs

17-09-2016 v0.6
- Enabled video driver of z008, should work now
- Built-in wireless driver instead of a module
- Fixed urgent request handling in row scheduler
- set ROW as default IO sched

Older releases:

16-09-2016 v0.5
- Failed build while trying to reduce modules to 0

13-09-2016 v0.4
- Updated to latest ASUS source code (V4.21.40.134)
- Added configurable LED blink rate (check Kernel Adiutor! Thanks to @crpalmer for the implementation and @say99 for pulling this to the source)
- Dynamic FSync turned on by default
- Updated Powersuspend driver to 1.7
- Increased readahead for memory handling (this has nothing to do with reading from int./ext. storage)
- Updated Block-system to support urgent request handling (pre-requisite to get the ROW scheduler working)
- Added working row IO scheduler

12-09-2016 v0.3
- power efficient work queues
- added quick wakeup driver (improves deep sleep)
- under the hood Improvements

11-09-2016 v0.2
- added powersuspend driver
- added dynamic fsync
- working Anykernel zip system!

09-09-2016 v0.1
Initial build flashable with Anykernel system
- UC
- More governors
- More IOSchedulers
- F2FS
- exFAT support
- Sweep2Sleep
- Touchboost working for Thessjactive and Yankactive
 
Last edited:

Dan_Jacques

Senior Member
Nov 17, 2011
890
294
Santana-AP
Project T, reborn! It's incredible to see this project alive agan!
@TheSSJ, about F2FS: it supports mixed setups (F2FS /data and ext4 /system and /cache) or only F2FS-all setups?
 

Tiongkia

Senior Member
Oct 5, 2009
1,051
204
Singapore
I love you

---------- Post added at 10:50 AM ---------- Previous post was at 09:59 AM ----------

@TheSSJ

For some reason, after flashing, the kernel does not install.

I reboot to twrp, dirty flash WW134 ROM, flash supersu, flash xposed, flash twrp and flash this kernel. Wipe cache and d.cache.

Reboot and it stock kernel.

I tried 2nd time. Flash kernel in twrp and it still stock kernel.
 

TheSSJ

Senior Member
Feb 25, 2010
1,777
2,276
OnePlus Nord
Cool it everyone, I think it's just a misunderstanding ;)
I have uploaded a flashable zip for now as Anykernel doesn't work as I want it to work ^^

At the moment this can be only flashed by people
WITH root and
WITHOUT xposed

After flashing the kernel, then you can re-flash xposed, this should work then
 

Dan_Jacques

Senior Member
Nov 17, 2011
890
294
Santana-AP
Cool it everyone, I think it's just a misunderstanding ;)
I have uploaded a flashable zip for now as Anykernel doesn't work as I want it to work ^^

At the moment this can be only flashed by people
WITH root and
WITHOUT xposed

After flashing the kernel, then you can re-flash xposed, this should work then
Thanks! downloading...

EDIT:
After flashing the kernel the system became unbootable. It boots into recovery after "reboot system".
 
Last edited:

Carlos6862

Senior Member
Apr 27, 2008
119
47
Culiacán, Sin.
Okay, did you have xposed installed? Could you please try to remove xposed and just flash the kernel without it? This Anykernel thing seems to be the only available option...

My friend @TheSSJ
my phone boot up with your great kernel......First, I did a wipe cache and dalvik and then flash your kernel. Thanks again!!
Regards!!! :):)
 

Attachments

  • Screenshot_20160910-152631.jpg
    Screenshot_20160910-152631.jpg
    105.1 KB · Views: 458

Tiongkia

Senior Member
Oct 5, 2009
1,051
204
Singapore
My friend @TheSSJ
my phone boot up with your great kernel......First, I did a wipe cache and dalvik and then flash your kernel. Thanks again!!
Regards!!! :):)

Hello. Do you have xposed?
Thanks in advance.

---------- Post added at 08:07 AM ---------- Previous post was at 08:06 AM ----------

Cool it everyone, I think it's just a misunderstanding ;)
I have uploaded a flashable zip for now as Anykernel doesn't work as I want it to work ^^

At the moment this can be only flashed by people
WITH root and
WITHOUT xposed

After flashing the kernel, then you can re-flash xposed, this should work then

Ok cool down.

Thanks master. Let me try.
 
  • Like
Reactions: TheSSJ

say99

Senior Member
Nov 30, 2015
1,429
2,810
delhi
Okay, did you have xposed installed? Could you please try to remove xposed and just flash the kernel without it? This Anykernel thing seems to be the only available option...
do we have a plan to break xposed?? [emoji14]
anyways I will try looking into any kernel, since I really prefer it over doing mess with ramdisk [emoji14]

Sent from my ASUS_Z00A using Tapatalk
 

TheSSJ

Senior Member
Feb 25, 2010
1,777
2,276
OnePlus Nord
do we have a plan to break xposed?? [emoji14]
anyways I will try looking into any kernel, since I really prefer it over doing mess with ramdisk [emoji14]

Sent from my ASUS_Z00A using Tapatalk

Maybe I'm being paid to break xposed :p
I just need to take the time to see where the script goes wrong (by the way,I took your anykernel as base :laugh: )
Will test it line by line on my linux machine today :good:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 39
    Hello again,

    This is my work on the stock Marshmallow Kernel for Zenfone 2, based on the officially released ZF2 kernel source code.

    Please note that I do my testing on a ZE551ML 4GB 2,3GHz

    Note: This kernel works ONLY on stock based versions!​

    Features:
    Based on Zenfone 2 V4.21.40.184 kernel source (completely from scratch)
    Built with gcc4.9 toolchain
    UC to 333MHz
    Touchboost input event handler
    Added the following CPU governors:
    - Lionheart
    - Bioshock
    - Yankactive
    - TheSSJactive (Yankactive with hotplugging)

    Added IO schedulers:
    - sio
    - zen
    - vr
    - fifo
    - sioplus (credits to @boype, fixed afterwards for zf2 by me)
    - fiops
    - working ROW scheduler!!!
    - deadline

    Added TCP congestion algorithms:
    -BIC
    -CUBIC
    -WESTWOOD
    -HSTCP
    -HYBLA
    -HTCP
    -VEGAS
    -VENO
    -SCALABLE
    -LP
    -YEAH
    -ILLINOIS

    Approx. 30% faster due to CRC disabling and auditing
    Power efficient Work queues
    Powersuspend
    Dynamic FSync
    Set minimum brightness to 2 instead of 15 percent (changeable via kernel adiutor, please set it to 1 there, otherwise your screen is pretty much black)
    exfat support (no fuse, all credits to @Dorimanx, automounting of devices fixed by @sorg)
    Sweep2Sleep (all credits to Lord Boeffla)
    frandom RNG
    F2FS support
    ZRAM
    WLAN Wakelock reducer


    More to come:
    Init.d

    If I should find the time also:
    BLX
    A separate KVM build
    Compiling with another Toolchain

    How to install:

    1st pre-requisite: Unlock your Bootloader
    2nd pre-requisite: Use the stock Marshmallow ROM ;-)
    3rd pre-requisite: BACKUP!!!

    Download the flashable anykernel zip here:
    Drive

    Flash it via TWRP and reboot. The Anykernel zip preserves whatever modification you already have (xposed, root,...) and just replaces the needed parts :good:

    Credits:
    @jrior001, @crpalmer, @jamison904, @tectas, @dorimanx, @Lord Boeflla, @say99

    XDA:DevDB Information
    [MM-KERNEL][UC][F2FS] Project T for MM [STOCK ROM ONLY], Kernel for the Asus ZenFone 2

    Contributors
    TheSSJ
    Source Code: https://github.com/TheSSJ/zf2_mmkernel

    Kernel Special Features: F2FS, more governors, underclocked, more IO schedulers, westwood TCP cong

    Version Information
    Status: Stable
    Current Stable Version: 1.5
    Stable Release Date: 2016-11-25

    Created 2016-09-09
    Last Updated 2016-12-08
    8
    Reserved

    Changelog:

    25-11-2016 v1.5
    - Updated to latest kernel version from Asus Website (.184)

    23-09-2016 v1.4
    - backlight is configurable again (super simple patch)
    - Mechanism to avoid entropy depleting (aka generating random numbers as needed)

    20-09-2016 v1.3
    - set brightness to the minimum possible before the screen goes off
    - restrict user space apps to modify the min_brightness node, Kernel adiutor cannot mess around anymore with it
    - increase speed of mathematical operations

    18-09-2016 v1.2
    - Fixed deep sleep issue and camera problems

    18-09-2016 v1.0 & 1.1
    - Implemented WLAN wakelock divider (configurable in KA)
    - Enabled Deadline IO scheduler
    - Increased performance by approx. 30% (according to the rumors)
    - GPU: Set default frequency to 266MHz
    - Should automount cache and data depending if ext4 or f2fs

    17-09-2016 v0.6
    - Enabled video driver of z008, should work now
    - Built-in wireless driver instead of a module
    - Fixed urgent request handling in row scheduler
    - set ROW as default IO sched

    Older releases:

    16-09-2016 v0.5
    - Failed build while trying to reduce modules to 0

    13-09-2016 v0.4
    - Updated to latest ASUS source code (V4.21.40.134)
    - Added configurable LED blink rate (check Kernel Adiutor! Thanks to @crpalmer for the implementation and @say99 for pulling this to the source)
    - Dynamic FSync turned on by default
    - Updated Powersuspend driver to 1.7
    - Increased readahead for memory handling (this has nothing to do with reading from int./ext. storage)
    - Updated Block-system to support urgent request handling (pre-requisite to get the ROW scheduler working)
    - Added working row IO scheduler

    12-09-2016 v0.3
    - power efficient work queues
    - added quick wakeup driver (improves deep sleep)
    - under the hood Improvements

    11-09-2016 v0.2
    - added powersuspend driver
    - added dynamic fsync
    - working Anykernel zip system!

    09-09-2016 v0.1
    Initial build flashable with Anykernel system
    - UC
    - More governors
    - More IOSchedulers
    - F2FS
    - exFAT support
    - Sweep2Sleep
    - Touchboost working for Thessjactive and Yankactive
    8
    @TheSSJ updated your stuff and renamed it :p
    https://github.com/sayeed99/zf2_mmkernel

    source code update to .327
    anykernel zip always
    Fixed screen flickering issues
    Updated GPU stuff
    Updated display driver stuff
    patch to increase battery by 3-5% (GPU based)
    a few more fixes and updates

    link : https://drive.google.com/open?id=0B2DVhZKJ05fLdzhoSWtOS2Qxa1E

    common for Z00A/Z008 (its anykernel!)
    7
    I'm losing approximately 9% battery during night time (8 hours).
    Battery shows the phone is about 95% of the time in deep sleep. Is this normal?

    I am losing 1-2 % per night. Yes, the deep sleep rate is normal...as our phone model becomes older and older, the battery is beginning to struggle more and more...it's pretty normal

    How can i install SuperSu(chainfire) on stock rom(with this kernel) ?

    I flashed the kernel and restarted (no SuperSu work)
    I flashed Magisk7 fixed for ZF2 and install Magisk Manager.apk
    I flashed supersu r277 fixed for ZF2

    And no root..... I dont know what's happening :(

    All sources are in THIS post

    Can't tell you...I was on stock when I rooted my phone. Only afterwards I flashed my kernel. Since then I am still rooted when I flash an updated kernel version...Maybe you should start from scratch and first root and flash magisk, THEN flash my kernel

    Kernel source are here http://dlcdnet.asus.com/pub/ASUS/ZenFone/ZE551ML/ZE551ML4_21_40_184.zip

    Inviato dal mio ASUS_Z00AD utilizzando Tapatalk

    Implemented and building right now. Can*t tell if the sensor problems are fixed in this version though...12 files or so were updated, see my git account for info

    EDIT: Uploaded version 1.5, hopefully the sensors are fixed for the brazilian users, too
    6
    Is there any stock MM rom for Z00A flashable via twrp already ?
    Not that I know of, normally someone would just need to upload his MM system.img, the rest should be the same

    EDIT: Version 1.4 is out:
    - backlight is configurable again (super simple patch)
    - Mechanism to avoid entropy depleting (aka generating random numbers as needed)

    Will have a look for more cool optimizations