[MI2/MI2S][KERNEL] MiCore 010 for MIUI | Linaro | UV | OC

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by redmaner, Dec 9, 2013.

  1. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    #1redmaner,Dec 9, 2013
    Last edited: Feb 26, 2014
    MiCore is a kernel for Xiaomi MI-2/S(C). This kernel is especially for MIUI (Android Jellybean 4.1.1) works on official AOSP too.
    The purpose of this kernel is to implement a few modification to allow wider user adjustments.
    It must be flexible to tune on speed, stability, battery and/or average.

    This kernel is compiled from sources, which are released by Xiaomi on GitHub
    If you seek a kernel for AOSP based roms I suggest to look here or here

    Kernel features 010m
    - Linux 3.4.82
    - Compiled with Linaro 4.8.3 toolchain
    - CPU governors: msm-dcvs, ondemand, conservative, intellidemand, interactive (default)
    - IO schedulers: cfq, deadline, noop, row, fiops (default)
    - GPU simple governor
    - Intelligent hotplug driver (intelli-plug replaces MPDesicion)
    - Voltage Control (undervolting)
    - Dynamic Fsync
    - Kernel image compressed with XZ
    - init.d support
    - fstrim at boot
    - other optimizations, updated code and tweaks

    Kernel features 010oc
    - All of the features from M series
    - Overclocking enabled up to 1.7ghz for Mi2
    - Overclocking enabled up to 1.9ghz for Mi2S

    How to install
    - Only works on MIUI (based) 3.11.8 and above. Latest is recommended.
    - Make a nandroid backup
    - Flash in clockworkmod recovery.
    - Flash on the right system
    - Lost data? Read this

    Known problems / not supported features
    - Color temperature / color saturation doesn't work in settings >> display
    - Xiaomi Piston ears are not fully supported (buttons not working)
    - GPU frequencies double 400mhz
    - alarm doesn't work when phone is OFF

    Download
    Standard disclaimer:
    Not responsible for bricking your phone, voiding your warranty, or any other pain or suffering you may feel as a result of using this kernel

    Mainline kernels (M series)
    MiCore 010m | Release notes

    MiCore 009m | Release notes
    MiCore 007m | Initial release

    Overclock kernels (OC series)
    MiCore 010oc | Release notes

    MiCore 009oc | Release notes

    Credits
    Linux Foundation for linux kernel
    Linaro for their open source work on Linux for ARM
    Xiaomi for releasing sources and helping solving bugs
    Faux123 for his kernel, intellidemand and intelli_plug Sources here
    FransicoFranco for generic touchboost driver
    @M1cha for Wi-Fi driver and battery driver
    @zhhwin (from Xiaomi?) for updating kernel sources with Mi2S camera support
    @MarkHUK for his connections
    @Acid, @linuxx, @Wajk, @.bastian, @aditoma777, @jacov, @tomjoad70 for testing this kernel
    All other awesome (kernel) developers[/B]
     
    pollozzo, wenxi5200, Swos and 39 others like this.
  2. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    #2redmaner,Jan 2, 2014
    Last edited: Feb 26, 2014
    Sources
    Kernel: here
    Initramfs: here

    Features explained
    MPDecision
    All Qualcomm based phones have Qualcomm prorprietary userspace binary called "mpdecision" aka m(ake)p(oor)decision. Instead of letting the kernel itself to decide what frequencies and how many cores to run, this "mpdecsion" binary polls the kernel run queue statistics and decides for the whole system the "optimal" frequency and the "optimal" number of cores to use. The concept is fine, except the decision making is done in userspace and it's 100% closed source so there's no way to tweak it and there's a latency (because all userspace binaries needs to "poll" the kernel for the latest information which is slightly delayed) - Faux123

    Intelli_plug hotplug module let the kernel itself decide what frequencies and how many cores to run.

    CPU governors
    CPU governors

    I/O schedulers
    I/O schedulers

    Three batteryprofiles from MiCore
    Xiaomi has implemented three batteryprofiles in MIUI, these batteryprofiles are optimized to suit MiCore.
    Change batteryprofile in settings >> battery >> batterymode

    Powersaving
    CPU governor: intellidemand
    GPU governor: ondemand
    Max GPU frequency: 200mhz
    Max brightness: 140

    Normal
    CPU governor: interactive
    GPU governor: ondemand
    Max GPU frequency: 400mhz
    Max brightness: 255

    Performance
    CPU governor: interactive
    GPU governor: simple
    Max GPU frequency: 400mhz
    Max brightness: 255

    Bugreports and feature requests
    If you have any bugreports or featurerequests let me know.
    For bugs, logs are highly appeciated (dmesg / kmsg / last_kmsg) Logcats are not preffered.
    For feature requests, links to examples are fine or a detailed overview.
     
    Swos, nexxiaomi, gabril and 10 others like this.
  3. linuxx

    linuxxMembers

    Jul 6, 2013
    1,436
    717
    220
    Male
    CyanogenMod
    Italy
    Here we are :D
     
    DeepSpace likes this.
  4. xeGox

    xeGoxMembers

    Feb 26, 2013
    395
    57
    60
    Male
    Wondeful news..!
    I'm downloading ASAP

    Inviato dal mio Xiaomi Mi-5f (f sta per fun,non per fan)...con tapatalk 26°
     
  5. oile

    oileMembers

    Jul 15, 2013
    280
    138
    65
    Male
    Italy
    I want to try it. What should I flash to come back if something goes wrong?
    Thanks for this great news
     
    xeGox likes this.
  6. linuxx

    linuxxMembers

    Jul 6, 2013
    1,436
    717
    220
    Male
    CyanogenMod
    Italy
    Flash miui again without wipes
     
    oile likes this.
  7. Lepi

    LepiMembers

    Oct 16, 2013
    48
    12
    18
    Male
    cinema
    Perm
    Thank you. I installed a new kernel on WIUI 3.10.18 . I will watch over his behavior.
     
  8. Acid

    AcidScripting Ninja
    Staff Member

    Aug 20, 2011
    2,726
    744
    245
    Male
    The best is to flash on miuiandroid MIUI. Wajk uses his own CPU tweaks so flashing MiCore is bad idea.
    Also.. read OP. There is a minimal MIUI version you should use to flash MiCore.
     
  9. Lepi

    LepiMembers

    Oct 16, 2013
    48
    12
    18
    Male
    cinema
    Perm
    Tomorrow will tell their observations . While there is the conclusion that consumption decreased. But this may be a misconception .
     
  10. kekkojoker90

    Jan 9, 2013
    507
    99
    65
    Male
    let me know a thing. If i change into conservative under setting-battery-power setting how work your kernel?
     
  11. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    I recommend the normal battery profile.
    Kernel is already optimised for battery and performance
     
  12. DeepSpace

    DeepSpaceMembers

    Nov 30, 2013
    236
    36
    50
    Male
    Great work! Well done guys ;) Would this work on a ROM like WIUI?
     
  13. kekkojoker90

    Jan 9, 2013
    507
    99
    65
    Male
    i know if is based on faux kernel or on his intellidemand. I would mean if i need to change my personal profile under battery saver when my battery goes under 30% into battery saver (security app of miui rom). Fo sure i don't need to use conservative mode with your kernel.
     
  14. woZa

    woZaMembers

    Sep 2, 2013
    81
    27
    28
    Male
    Thanks for your work on this.

    Sent from my MI 2S using Tapatalk
     
  15. oile

    oileMembers

    Jul 15, 2013
    280
    138
    65
    Male
    Italy
    Something wrong with GPU governor: it stays on 400 mhz and almost never goes down.
    Modify laziness at 0 and ramp at 1000 seems helpful.
    I'll test it extensively but seems pretty good :) frequencies are now lockable like in WIUI.
    I see this Intel plug plugs in the four cores more often. I'll see how much battery will last.
    Thanks
     
  16. letsfifa

    letsfifaMembers

    Aug 27, 2013
    279
    20
    40
    If Someone can maybe please explain to me.
    How can this kernel improve the Mi2s ? Battery?
    Keep it simple lol :D
     
  17. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    Have a look here
    http://xiaomi.eu/community/index.php?posts/193127

    Yes you can, that powersaving mode won't effect this kernel that much

    I assure you that intelli_plug has way better batterylife then MPDecision.
    Atleast on my device, curious about your expierence let me know.

    For simple GPU governor, yes it's ramping fast to max frequency
    The positive side of this governor is that it can be tuned for performance or battery or average.
    You discovered that too, maybe I'll add some profiles for it in the future.

    Simple said, it has better batterylife for me and performance is good.
    Try out yourself, if you don't like it then flash MIUI back and you are all good
     
  18. DeepSpace

    DeepSpaceMembers

    Nov 30, 2013
    236
    36
    50
    Male
    He just posted a patch with the MiCore kernel, so I guess he already did something about it.
     
  19. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    Yes, I already edited my post.
    Didn't saw your post yet ;)
     
  20. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    For those of you who seek extreme batterylife
    Download trickstermod >> goto specific tab >> enable eco mode.
    This enables only two cores instead of four
     
  21. letsfifa

    letsfifaMembers

    Aug 27, 2013
    279
    20
    40
    If it works all well can WiUi get build on it?
    Can you post a pic of battery life?
    Thanks
     
  22. DeepSpace

    DeepSpaceMembers

    Nov 30, 2013
    236
    36
    50
    Male
    Please read the whole topic:
     
  23. DeepSpace

    DeepSpaceMembers

    Nov 30, 2013
    236
    36
    50
    Male
    #23DeepSpace,Jan 3, 2014
    Last edited: Jan 3, 2014
    I just installed Trickstermod, went to the Specific Tab and saw this:
    ____________________________________________

    [​IMG]
    ____________________________________________
    MP-Decision shouldn't be enabled, right? I also don't see the eco mode. I used Wajk's patch by the way. Going to post this on the WIUI thread too.


    Fixed
     
  24. dextructor

    dextructorMembers

    Feb 26, 2013
    347
    100
    65
    Male
    Thanks a lot redmaner!

    Will try and report it latter
     
  25. kribabic

    kribabicMembers

    May 6, 2013
    33
    1
    18
    Male
    Where can i download this kernel?
     

Share Our Site