• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

Okitavera's Kernel for Mi 9 SE - v8.4

Status
Not open for further replies.
Search This thread

okitavera

Senior Member
Jan 6, 2016
436
808
Malang
okitavera.me

eHjVLwZ.png


Intro
Okitavera's kernel is a custom kernel based on CAF Kernel with specific patches from Xiaomi.
Aims to provide stability, security, and other benefits from having a regular patches from Linux Stable, CAF, and Google.

Features
  • Merged patches from :
    • Linux Stable currently on: v4.9.197
    • Google's kernel common: android-4.9
    • CAF specific fork for for Snapdragon 71*, currently on: LA.UM.7.8.r1-07100-SDM710.0
  • Dynamic SchedTune boost
  • BBR and Westwood TCP congestion-avoidance algorithm (optional)
  • Exposure Adjustment (DC Dimming)
  • AVB and SafetyNet bypassed
  • KCAL, KLapse, Vibration control, and Sound control
  • Check GitHub commits for more
  • TL;DR : The best custom karamel (arguable)

Compatibility (v8.4)
  • AOSP-based custom ROM (Pie)
  • MIUI 10 and 11 (Stable or Weekly. Pie, NOT THE Q)

Downloads
Zach said this link should be bigger and as you can see he's right


Installation
  • Backup your dtbo and boot partition.
  • Flash the kernel.zip file via twrp

Credits and Thanks to
  • Linus, The Linux Foundation, Google, CodeAurora, Xiaomi
  • arter97
  • celtare21
  • faust93
  • flar2
  • franciscofranco
  • kdrag0n
  • kerneltoast
  • krasCGQ
  • nathanchance
  • osm0sis
  • pengus77
  • RenderBroken
  • ... and all of the contributors from commits and patches on my git


XDA:DevDB Information
Okitavera's Kernel, Kernel for the Xiaomi Mi 9 SE

Contributors
yuneharuka
Source Code: https://github.com/okitavera/msm-4.9-grus-okita

Kernel Special Features: Family friendly, no overclocked.

Version Information
Status: Stable
Current Stable Version: 8.4
Stable Release Date: 2019-10-19

Created 2019-05-26
Last Updated 2019-10-19
 
Last edited:

okitavera

Senior Member
Jan 6, 2016
436
808
Malang
okitavera.me
FAQ (Fricking Asked Question)

Q : is this a battery-life or performance aware kernel ?
A : Neither of it, this kernel is focused on upstreaming and bug-fixing so it can be used on many ROM as much as possible. But well, sometimes I'm interested on some additional features and include it on this kernel.

Q : My phone is hot after installing this kernel!
A : next question please!

Q : When kramel update xdd ?
A : Whenever I want. fun project != ETA

Q : Can I talk about my probl..
A : PM will be ignored, Discuss the problem on this thread instead.

Q : Magisk user should flash it before or after installing this kernel ?
A : Starting from v2.5, you can flash magisk at anytime, it will be preserved.

Q : Please more battery backup sur
A : next.

Q : What is your app recommendation for tuning this kernel ?
A : I'm using EXKM, but you can use any other app. Oh wait, based on user report, Kernel Adiutor/SmartPack can't read the big cluster cpufreq table properly.

Q : I have some problem, what can I do for you to diagnose it ?
A : dmesg, logcat, and also any additional information would be helpful.

Blocked Requests
- Additional cpu governor or io-scheduler
- In-kernel wakelock blocker
- Any weird, unused, or stuff that likely makes the phone in a dangerous state like overclocking, undervolting, and so on.
 
Last edited:

denzel09

Senior Member
Jun 28, 2009
4,233
876
Teheran
What is the kernel version? Thank you

---------- Post added at 11:42 PM ---------- Previous post was at 11:38 PM ----------

A question. I see this: Optional : Flash Magisk Installer zip file after flashing the kernel

I always seen the dev Franco to say that Magisk must be flashed before flashing the kernel because Magisk can mess with ramdisk, etc.. I have done alwys in this way with Pocophone and Franco kernel.
 
  • Like
Reactions: elpaablo

okitavera

Senior Member
Jan 6, 2016
436
808
Malang
okitavera.me
What is the kernel version? Thank you

---------- Post added at 11:42 PM ---------- Previous post was at 11:38 PM ----------

A question. I see this: Optional : Flash Magisk Installer zip file after flashing the kernel

I always seen the dev Franco to say that Magisk must be flashed before flashing the kernel because Magisk can mess with ramdisk, etc.. I have done alwys in this way with Pocophone and Franco kernel.


it uses kernel 4.9.112 from MiCode with Merged CAF Tag LA.UM.7.8.r1-05600-SDM710.0


For the magisk situations,
I am using a customized AK2 installer for be able to flash kernel on a clean stock boot partition that doesn't have a ramdisk (yes, our boot partition doesn't have ramdisk on it) without needing to flash the magisk first.



So if you guys are not using magisk, just flash like a normal.
but if you're using Magisk, you can reflash magisk after installing or reinstalling the kernel :)
 
  • Like
Reactions: denzel09

okitavera

Senior Member
Jan 6, 2016
436
808
Malang
okitavera.me
why backup of dtbo n boot?


Just in case you want to restore it back to the default rom.

This kernel is using stock global stable dtbo.
And if you try to use dtbo from a custom rom like Xiaomi.eu, it will breaks the camera drivers since the dt aren't compatible with the camera source that are released by xiaomi in their github (well, typical xiaomi's behaviour)
 
  • Like
Reactions: denzel09

skyline91

Senior Member
Oct 7, 2013
238
67
Samsung Galaxy S21
Just in case you want to restore it back to the default rom.

This kernel is using stock global stable dtbo.
And if you try to use dtbo from a custom rom like Xiaomi.eu, it will breaks the camera drivers since the dt aren't compatible with the camera source that are released by xiaomi in their github (well, typical xiaomi's behaviour)
can you flash it from stock img via fastboot? or need to backup?
 

PeppeCNN

Senior Member
Jan 28, 2018
614
545
Just in case you want to restore it back to the default rom.

This kernel is using stock global stable dtbo.
And if you try to use dtbo from a custom rom like Xiaomi.eu, it will breaks the camera drivers since the dt aren't compatible with the camera source that are released by xiaomi in their github (well, typical xiaomi's behaviour)

things that can be solved with a dirty flash anyway :p
right?
 

PeppeCNN

Senior Member
Jan 28, 2018
614
545
is battery friendly or more aggressive ur kernel? how many sot have u?


Anyway....flashed, i hope that doesn't go in conflict lkt magisk module
 
Last edited:

okitavera

Senior Member
Jan 6, 2016
436
808
Malang
okitavera.me
is battery friendly or more aggressive ur kernel? how many sot have u?


Anyway....flashed, i hope that doesn't go in conflict lkt magisk module

it's pretty much balanced, with slightly boost on the io and cpu department.

I don't think SOT can presenting the actual of battery life since everyone has a different use case but well, here it is
 

Attachments

  • Screenshot_2019-05-27-07-10-00-954_com.android.settings.png
    Screenshot_2019-05-27-07-10-00-954_com.android.settings.png
    125.1 KB · Views: 782
  • Screenshot_2019-05-27-07-09-42-176_com.android.settings.png
    Screenshot_2019-05-27-07-09-42-176_com.android.settings.png
    125.3 KB · Views: 776
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 39

    eHjVLwZ.png


    Intro
    Okitavera's kernel is a custom kernel based on CAF Kernel with specific patches from Xiaomi.
    Aims to provide stability, security, and other benefits from having a regular patches from Linux Stable, CAF, and Google.

    Features
    • Merged patches from :
      • Linux Stable currently on: v4.9.197
      • Google's kernel common: android-4.9
      • CAF specific fork for for Snapdragon 71*, currently on: LA.UM.7.8.r1-07100-SDM710.0
    • Dynamic SchedTune boost
    • BBR and Westwood TCP congestion-avoidance algorithm (optional)
    • Exposure Adjustment (DC Dimming)
    • AVB and SafetyNet bypassed
    • KCAL, KLapse, Vibration control, and Sound control
    • Check GitHub commits for more
    • TL;DR : The best custom karamel (arguable)

    Compatibility (v8.4)
    • AOSP-based custom ROM (Pie)
    • MIUI 10 and 11 (Stable or Weekly. Pie, NOT THE Q)

    Downloads
    Zach said this link should be bigger and as you can see he's right


    Installation
    • Backup your dtbo and boot partition.
    • Flash the kernel.zip file via twrp

    Credits and Thanks to
    • Linus, The Linux Foundation, Google, CodeAurora, Xiaomi
    • arter97
    • celtare21
    • faust93
    • flar2
    • franciscofranco
    • kdrag0n
    • kerneltoast
    • krasCGQ
    • nathanchance
    • osm0sis
    • pengus77
    • RenderBroken
    • ... and all of the contributors from commits and patches on my git


    XDA:DevDB Information
    Okitavera's Kernel, Kernel for the Xiaomi Mi 9 SE

    Contributors
    yuneharuka
    Source Code: https://github.com/okitavera/msm-4.9-grus-okita

    Kernel Special Features: Family friendly, no overclocked.

    Version Information
    Status: Stable
    Current Stable Version: 8.4
    Stable Release Date: 2019-10-19

    Created 2019-05-26
    Last Updated 2019-10-19
    15
    Breaking news.

    Xiaomi already publish the Mi A3 (or Mi CC9, CC9 Meitu, whatever you named it, Xiaomi) Kernel source code.
    It basically uses the same base as ours, and after some hours of inspection,
    me and @pengus77 got a few things from Mi A3 and Mi 9 source code that can be ported to fix several issues on this device (like the brightness, fod, etc) :)
    14
    Good Bye :D

    Hello everyone!
    Unfortunately, I have to stop the development for Mi 9 SE due to device change
    smile.gif

    The kernel sources for this device still available at my GitHub page if you want to fork or even just looking around.

    Thanks for all the support given and see you later :)
    14
    Hello everyone!

    Here's the update notes for v4.0

    Changelogs

    - Add Sound Control for our Speaker
    - Fix overlapped call and notification values on haptic control
    - Cleanup debug bloat on Wi-Fi driver as much as possible
    - Cleanup some unused xiaomi changes on driver departments (camera and fragmention)
    - Removed schedutil_pixel (blu_schedutil and default schedutil is more than enough)
    - Adjust Dynamic Stune Boost default to 10%
    - Turned-down Performance cluster to 748MHz
    - Keeping boosted freq that based on touch input a litte bit longer
    - Enable workqueue power saving by default
    14
    Hello everyone!

    Here's the update notes for v4.5

    Changelogs

    - Upstream kernel to 4.9.185 (android-linux-stable)
    - Allow enforcing deepest cluster idle state selection
    - Use power efficient workqueues on the vmstat and audio-kernel
    - hardcode dirty_expire_centisecs to 30s (https://android-review.googlesource.com/c/platform/system/core/+/938362)
    - Add IPA_RM12 and IPA_WS to the default block list (thanks to @pengus77 for more wakelock block list)
    - Updated Goodix GT9886 firmware from MIUI Dev
    - Cleaned-up unused touchscreen driver

    Notes
    I can't fix the short brightness bugs on MIUI Dev yet, so lmao yeah.