[CM11/12][ROM + KERNEL][Linaro][EXT4][F2FS][UV][Intelliplug][AndMore] Khaon's kitchen 13/01

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by Khaon, Sep 27, 2014.

  1. Khaon

    KhaonMembers

    Feb 24, 2014
    211
    143
    65
    Male
    #1Khaon,Sep 27, 2014
    Last edited: Jan 7, 2015
    Khaon presents his kitchen for
    Xioami MI2(s) devices



    I am not responsible for any damage to your phone.
    Read before downloading or posting in the thread:
    Proceed with caution if you have no experience
    .

    Introduction

    You will find in this thread links to my kernel and a custom CM rom compiled with linaro toolchains and with optimized flags. The rom is shipped with my kernel
    This kernel is based on cyanogen's. It ingrates various patches, in my opinion, stock kernel misses. It supports both ext4 and f2fs partitions.

    This is a xda debDB project, so feel free to fill in bug reports, feature(s) request and review!

    This kernel works on cyanogenmod rom and maybe some other AOSP roms!!
    It uses, for now, a simple all kernel repack script. Thus, this repack method is not guaranteed to work at 100%for your custom rom!

    Roms reported working so far : Omni Rom, Gummy rom, Paranoid rom, Pacman Rom, CM11 also


    The kernel is fully supporting f2fs, if will correctly mount your partition as long as they were formated with f2fs and ext4.
    You don't need to edit the rom's script, it will detect itself your partition's filesystem.


    For those who don't know what is f2fs

    Some benchmarks to point out the performance difference between EXT4 and F2FS

    Features :



      • Compiled with lastest stable linaro - 4.9.2-201409
      • Compiled with appropriated optmizated flags : O3, etc.
      • [STRIKE]Any kernel script [/STRIKE]
      • CPU Governors : onDemand,msm-dcvs,interactive, intelliactive,conservative, performance, userspace
      • GPU Governors: onDemand,performance,interactive
      • I/O schedulers : noop, cfq, row,deadline, bfq v7r6(tweaked for nand devices)
      • CPU hotplug drivers : intelli_plug
      • intelli_thermal
      • Support and up to date with upstream f2fs revision branch
      • Mounts dynamically your partition as long as they were formatted with ext4 or f2fs(not working yet with data f2fs with TDB and sys2)
      • CPU UC/OCing
      • GPU OCing up to 500 Mhz
      • FauxSound 3.6
      • supports kernel neon mode
      • kernel image compressed with lz4 algorithm for faster boot
      • arm optimized crypto algorithms
      • frandom: A fast random number generator for replacement to urandom
      • uksm in replacement for ksm
      • Westwood+ TCP congestion control algorithm
      • And many more patches(see my github!).
    Instructions :
     
    Be6i4, Doublemark, josedb and 12 others like this.
  2. Beyaz

    BeyazMembers

    Feb 13, 2013
    92
    30
    30
    Male
    France
    You finally released the kernel you were talking about in -if I'm not wrong- Xperianpro's thread. It looks great and promising. Thanks
     
  3. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    #3paulrlz,Sep 28, 2014
    Last edited: Sep 28, 2014
    w8ting for any kernel support.. running stable on -75mv with Codename Lungo cm11. The strange thing is that i can undervolt more with this kernel than Xperian Pro one. Will try with -100 soon
    Edit:
    There is my voltage table:

    384-750
    486-775
    594-775
    702-800
    810-825
    918-850
    1026-900
    1134-950
    1242-1012.5
    1350-1012.5
    1458-1025
    1566-1037.5
    1674-1050
    1728-1050

    Running stable for now.. my mi2s wont go much down than this.
    Feel free to advice some changes!
     
    acastrocab and Beyaz like this.
  4. XperianPro

    XperianProMembers

    Oct 26, 2013
    648
    217
    80
    Male
    You can undervolt more because I already undervolted my kernel,default values are lower.
     
    paulrlz likes this.
  5. josedb

    josedbMembers

    Nov 5, 2013
    214
    29
    50
    Male
    Mechanical engineering
    Buenos Aires
    Iam only interested in battery life upgrade (since everything works on any rom), as iam using mokee os, is this kernel better for that rom? thanks
     
  6. XperianPro

    XperianProMembers

    Oct 26, 2013
    648
    217
    80
    Male
    It won't work on Mokee os
     
    josedb likes this.
  7. X4nfire

    X4nfireMembers

    Jun 28, 2014
    204
    76
    52
    Male
    This is amazing...i can't go any lower than :

    384-850
    486-850
    594-850

    etc. short story -25 the default voltages
     
  8. Khaon

    KhaonMembers

    Feb 24, 2014
    211
    143
    65
    Male
    Slrry my bad since mokee is based on Cm it works. Well it the the same kernel but with extra patches
     
  9. On Mokee not working "CM" version and "any" version too. "CM" version working on: Omni Rom, Gummy rom, Paranoid rom, CM11 also :)
    i'm trying versions of 28.09.2014
     
  10. Suspiria

    SuspiriaMembers

    Sep 26, 2013
    95
    17
    18
    Male
    Peux-tu m'expliquer en quelques mots ce qu'un noyau apporte réellement à une rom ?
    C'est une question sérieuse, je vois ce que ça peut aider à faire en théorie mais en pratique quel est l'impact réeel d'un noyau super optimisé par rapport à un autre, je vais doubler la durée de ma batterie, mon tél va faire 35000 points sous Antutu, le système sera plus fluide/rapide ?
    Je pose la question en français car j'aimerais bien comprendre éxactement et pas me retrouver à devoir décoder avec mon anglais.
    Merci d'avance.
     
  11. vidar

    vidarMembers

    Jan 14, 2013
    199
    65
    38
    Oui oui merci. If you want help talk English please. :)
    Even if you last sentence seems to say you're posting it in French for some reason. It's better to stay with English for a wider range of people able to help you.

    Sent with my Xiaomi MI2 with Tapatalk Pro
     
  12. Khaon

    KhaonMembers

    Feb 24, 2014
    211
    143
    65
    Male
    Thank you for that I will edit the OP
     
  13. Suspiria

    SuspiriaMembers

    Sep 26, 2013
    95
    17
    18
    Male
    Ja ja danke mein Schatz.
    I was asking him directly not you or someone else so I don't care if you understand or not.
    Maybe you should have told me to use private message that would have been wiser and this is what I should have done.
     
  14. vidar

    vidarMembers

    Jan 14, 2013
    199
    65
    38
    I'm Sorry but I can't read French.. how could I know for sure, that you asked someone directly?
    There's an error in your logic there.
    I didn't want to sound negative I just wanted to help you get more help by talking English. And yeah next time use pm or write the message directly with naming the user at the beginning. ^^

    Sent with my Xiaomi MI2 with Tapatalk Pro
     
    discom, paulrlz and MSephiroth like this.
  15. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    3f5a00acf72df93528b6bb7cd0a4fd0c.jpeg
     
  16. Khaon

    KhaonMembers

    Feb 24, 2014
    211
    143
    65
    Male
    hello everyone here is an update:


    works only on cm based rom for now
     
    Beyaz, vidar and kuloincorner like this.
  17. Riichard63

    Riichard63Members

    Nov 17, 2013
    145
    25
    38
    Male
    Student
    #17Riichard63,Oct 2, 2014
    Last edited: Oct 2, 2014
    For all people sorry in advance for writing french. But he's asking what are the gain of changing a kernel.

    Un noyau c'est ce qui fait le lien entre le matériel et le logiciel.
    Par exemple en diminuant le voltage du processeur jusqu'à la limite de la stabilité (car si tu diminues trop le voltage ça va planter) tu peux économiser de la batterie tout en conservant la même fréquence et donc la même performance.
    Tu peux améliorer la gestion du processeur avec des gouverneurs (gestion des montées et descente de fréquence selon la demande des applications lancées, chaque gouverneur possède des caractéristiques particulières et donc des points forts et des points faibles : http://www.phonandroid.com/forum/qu-est-ce-qu-un-gouverneur-cpu-t26062.html ).
    Ce kernel permet d'overclocker ton processeur, à mon avis tu sais déjà ce que c'est. Mais bon augmenter la fréquence pour plus de puissance.
    Mais bon après il y a tout un tas d'améliorations qui sont faites.

    Edit : I have a personnal question, which tool shoul I use to set parameters of this kernel?

    Regards
     
  18. Beyaz

    BeyazMembers

    Feb 13, 2013
    92
    30
    30
    Male
    France
    Same question as Richard. Settings don't stick with fauxclock after reboot, ok for PerformanceControl but everything is not here and device is not compatible with UniversalKernelManager.
    @Richard63 I suggest You to use PerformanceControl from xda or trickstermod if you want pay and when you have stable settings, push them in scripts in init.d.
     
  19. paulrlz

    paulrlzMembers

    Nov 23, 2013
    584
    167
    80
    Male
    For me faux clock working.
     
  20. Mokee does NOT work because the use the unofficial sources from ivan for some reason.
     
    MSephiroth likes this.
  21. Khaon

    KhaonMembers

    Feb 24, 2014
    211
    143
    65
    Male
    Thank you , I will edit this immeidatly! I will try to make an universal kernel. BUT I don't even know if that is possible, but ,yet, thanks for that, will be usefull for many users.
     
    MSephiroth likes this.
  22. If you want to make a "universal kernel", changes has to be made on ramdisk level... or that i've read somewhere...
     
  23. Khaon

    KhaonMembers

    Feb 24, 2014
    211
    143
    65
    Male
    last changelog:

    • f2fs: updated to revision branch
    • aries: corrected the default max freq bouncing
    • intelli thermal : introducting, patched to upstream revision
    • aries : corrected voltage regulator !!! Voltage < 700 mV weren't correctly applied because of it.
    • initial support for full f2fs: recompiled the dual_boot binary to mount data partition with a personal script (now you can format your data partition with f2fs formatter)
    • request: added driver for gamepad/joystick
    • intelli thermal enabled by default
     
    MSephiroth, ivangotoy and vital5 like this.
  24. Khaon

    KhaonMembers

    Feb 24, 2014
    211
    143
    65
    Male

    Yep I know , just, a simple repack wont work and I have not yet work on that :)
     
  25. Netweaver

    NetweaverMembers

    Nov 29, 2013
    111
    26
    38
    How does your kernel compare to the one made by XperianPro? Completely interchangeable? Can be used also his f2fs cm11 build? Also intelligent in determining safe undervolting values automatically per cpu speed bin? Anyway, thanks for your work so far
     

Share Our Site