Development [KERNEL] [blu_spark r103 OP9/Pro] [A11 OOS/A12 Custom]

Search This thread

eng.stk

Senior Member
Mar 29, 2011
7,128
60,665
OnePlus 5T
OnePlus 6
DWHxIK

Kernel features:
  • Build with custom upstream LLVM 14.x (Clang 14.0.5 + LLD linker + IAS)
  • full thinLTO -O2 build with device and target flags enhanced, build improvements and compiler fixes, etc
  • Less is more: stockish OP9 builds based on OnePlusOSS/android_kernel_oneplus_sm8350 for max stability
  • Systemless installer (doesn't touch system/vendor partition, OTA friendly), AnyKernel3 backend (compatible with autoflash apps)
  • Removed some debug and logging options
  • ARM enhanced performance and battery patches
  • CVE security patches, general upstream and CAF fixes for important subsystems
  • Modded schedutil governor merged from latest CAF sm8350 patchset
  • No OC, use 250HZ base timer frequency
  • msm_performance touchboost toggle on/off (enabled by default), tweaked cpu_boost driver
  • Enhanced TCP methods (westwood is default, BBR available), Network tweaks and updated drivers
  • Several I/O control tweaks, advanced filesystems enabled (F2FS, ExFAT, NTFS, CIFS & NFS)
  • ZRAM Swap (4GB LZ4 default) and with file disabled (2 GB storage gain), LZO-RLE and ZSTD are available
  • Vibrator Strength tunable and Gesture Haptic Feedback control (touchpanel and FPR)
  • KGSL fixes and general improvements for GPU driver
  • adrenoboost ready (disabled by default)
  • Backlight min brightness and brightness scaling (custom) option
  • Gamepad support enabled (xbox, ps4, switch)
  • USB2 Fast Charge (USB mode up to 900mA with MTP on)
  • FS fsync toggle on/off
  • Wakelock blockers available
  • wireguard support
  • Compatible with FKM, EXKM, Kernel Adiutor and others


DOWNLOAD KERNEL ZIP
FKM download configs: oos | custom
(No mirrors please)​


Setup and troubleshoot: To install just flash the zip on a stock setup with either TWRP or autoflash kernel app.
If you come from other kernel or have any issues, you should restore your stock boot.img/vendor_boot.img or dirty flash your ROM before flashing blu_spark zip to avoid problems. Also uninstall or clean data of any kernel control app you're using.
If you are upgrading between blu_spark versions, just flash the kernel zip.

About bugs and reports: don't bother to post if a log isn't ready or without steps so the behavior can be replicated. I only active support stock OOS ROM with NO mods whatsoever (apart from root). That includes NO support if using xposed, Magisk with added modules, etc.
If you're using custom ROMs (including stock based ones) and OOS Open Betas you're much on your own. I'm mostly interested on debugging stuff in stock and stable OOS.
Also try not to spam the thread with OT. There's threads for all kind of stuff, use them.

Going back to stock: This kernel installer doesn't change your filesystem. You can backup your boot.img/vendor_boot.img with TWRP or kernel app before flashing blu_spark if you want to go back to full stock or just dirty flash your full ROM.


Source Code: https://github.com/engstk/op9
Don't forget to hit thanks, it's free ;)


OnePlus 9 Pro development unit donated by OnePlus. Big shouts to them :)
Very proud for being on the OnePlus Developer Program, special thanks to dev relations team.
 
Last edited:

eng.stk

Senior Member
Mar 29, 2011
7,128
60,665
OnePlus 5T
OnePlus 6
blu_spark_r23 release

First blu_spark build for the OP9 series is up (y)

This kernel is tested for the 9 Pro but it's unified, so should work for the OP9 also (need some fixes since code is broken). So backup you boot if you want to test and let me know :)
Kernel already have some merged goodies and I think I have a good base to work with. For a couple days of work, it's not bad :)
I'll take a look into more stuff to come, some things in OP are WIP. Stay tuned!

You can use FKM download kernel feature, just import the links bellow in the app.
FKM download configs: oos


Changelog:
  • Build with Google Clang 12.0.5 + LLD linker
  • Synchronize codes for OnePlus 9/Pro Oxygen 11.2.6.6.LE25AA
  • Several build error fixes and quirks handled
  • Compilation improvements an cruf removed
  • Some goodies already merged like filesystem stuff, cpu governor & boost/msm perf, TCP algos, wakelock blocker, vibration and haptic feedback control, gpu adrenoboost, etc
  • All drivers builtin, wifi stack and datarmmnet merged from CAF
  • net/wireguard: merge v1.0.20210424


Keep in mind: I will give no active support for custom ROMs (including OOS based ones).
I am mostly interested on debugging stuff in stock stable OOS (with logs and reproducible steps to replicate the issue).


No mirrors please
Don't forget to hit thanks, it's free :)
 
Last edited:

djsubterrain

Senior Member
Jan 4, 2012
4,112
3,834
Livingston
OnePlus 9 Pro
@eng.stk I think the kernel has the same issue as Omega had, wireless charging seems to stop at 95%

Dumped out some logs if it will help

EDIT : OK, Apparently I'm talking crap, just seemed to be charging slowly but did get to 100%
 

Attachments

  • Logs_010621.zip
    567.1 KB · Views: 20
Last edited:
  • Like
Reactions: eng.stk

netgar

Senior Member
Jan 14, 2012
1,013
109
Does anyone have stock kernel?
 

Attachments

  • Screenshot_20210601-201616.jpg
    Screenshot_20210601-201616.jpg
    266.6 KB · Views: 814

Flasher8

Senior Member
Apr 24, 2011
1,194
175
Got some laggy sound with YouTube vanced off screen playing background music/ video. Attached log for info. Never happen with stock and omega kernel b4. Thanks
 

Attachments

  • bglog.zip
    197.5 KB · Views: 21

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    blu_spark_r99 release (A12 custom)

    New build is up (y)

    I tested with lineage-19.1-20220712-nightly-lemonadep-signed.zip, kernel build may work with other ROMs that use similar device/kernel trees.
    This kernel is tested for the 9 Pro but it's unified, so should work for the OP9 also.

    You can use FKM download kernel feature, just import the links bellow in the app.
    FKM download configs: custom

    In case of derps during flashing, check this first:


    Changelog:
    • ThinLTO build with custom upstream LLVM 14.x (Clang 14.0.5 + LLD linker + IAS)
    • Couple cleanup reverts
    • Fix some build naming and actions
    • For root, Magisk 25.1 or newer is mandatory


    Keep in mind: I will give no active support for custom ROMs (just kidding ;p).
    I am mostly interested on debugging stuff with logs and reproducible steps to replicate the issue.


    No mirrors please
    Don't forget to hit like, it's free :)
    10
    blu_spark_r100 release (A12 custom)

    New build is up (y)

    I tested with lineage-19.1-20220720-nightly-lemonadep-signed.zip, kernel build may work with other ROMs that use similar device/kernel trees.
    This kernel is tested for the 9 Pro but it's unified, so should work for the OP9 also.

    You can use FKM download kernel feature, just import the links bellow in the app.
    FKM download configs: custom

    Don't flash kernel zipright after LOS update and don't use LOS recovery.
    Have the system booted in a clean rooted state, don't flash any zips, reboot, flash kernel zip, reboot.
    In case of derps during flashing, check this first to get system back up running:
    https://forum.xda-developers.com/t/...-pro-a11-oos-a12-custom.4286037/post-87170985
    https://forum.xda-developers.com/t/...-pro-a11-oos-a12-custom.4286037/post-87092451
    https://forum.xda-developers.com/t/...-pro-a11-oos-a12-custom.4286037/post-87098111


    Changelog:
    • Merge lineage-19.1-20220719-nightly kernel updates
    • For root, Magisk 25.1 or newer is mandatory


    Keep in mind: I will give no active support for custom ROMs (just kidding ;p).
    I am mostly interested on debugging stuff with logs and reproducible steps to replicate the issue.


    No mirrors please
    Don't forget to hit like, it's free :)
    9
    blu_spark_r97 release (A12 custom)

    New build is up (y)

    I tested with lineage-19.1-20220712-nightly-lemonadep-signed.zip, kernel build may work with other ROMs that use similar device/kernel trees.
    This kernel is tested for the 9 Pro but it's unified, so should work for the OP9 also.

    You can use FKM download kernel feature, just import the links bellow in the app.
    FKM download configs: custom


    Changelog:
    • Merge lineage-19.1-20220712-nightly kernel updates
    • For root, Magisk 25.1 or newer is mandatory


    Keep in mind: I will give no active support for custom ROMs (just kidding ;p).
    I am mostly interested on debugging stuff with logs and reproducible steps to replicate the issue.


    No mirrors please
    Don't forget to hit like, it's free :)
    8
    blu_spark_r102 release (A12 custom)

    New build is up (y)

    I tested with lineage-19.1-20220726-nightly-lemonadep-signed.zip, kernel build may work with other ROMs that use similar device/kernel trees.
    This kernel is tested for the 9 Pro but it's unified, so should work for the OP9 also.

    You can use FKM download kernel feature, just import the links bellow in the app.
    FKM download configs: custom

    Don't flash kernel zipright after LOS update and don't use LOS recovery.
    Have the system booted in a clean rooted state, don't flash any zips, reboot, flash kernel zip, reboot.
    In case of derps during flashing, check this first to get system back up running:
    https://forum.xda-developers.com/t/...-pro-a11-oos-a12-custom.4286037/post-87170985
    https://forum.xda-developers.com/t/...-pro-a11-oos-a12-custom.4286037/post-87092451
    https://forum.xda-developers.com/t/...-pro-a11-oos-a12-custom.4286037/post-87098111


    Changelog:
    • Merge lineage-19.1-20220726-nightly kernel updates
    • Small rebase and cleanup
    • Flash vendor_dlkm temporary fix
    • AnyKernel3 updates (v20220727)
    • For root, Magisk 25.2 or newer is mandatory


    Keep in mind: I will give no active support for custom ROMs (just kidding ;p).
    I am mostly interested on debugging stuff with logs and reproducible steps to replicate the issue.


    No mirrors please
    Don't forget to hit like, it's free :)
    6
    With Crdroid based on OOS12 firmware C.61 you can't install this kernel it just out right fails. Hopefully it will be updated soon!
    Changes are needed for C.61 fw, will push a build today or tomorrow when I update my LOS.
  • 80
    DWHxIK

    Kernel features:
    • Build with custom upstream LLVM 14.x (Clang 14.0.5 + LLD linker + IAS)
    • full thinLTO -O2 build with device and target flags enhanced, build improvements and compiler fixes, etc
    • Less is more: stockish OP9 builds based on OnePlusOSS/android_kernel_oneplus_sm8350 for max stability
    • Systemless installer (doesn't touch system/vendor partition, OTA friendly), AnyKernel3 backend (compatible with autoflash apps)
    • Removed some debug and logging options
    • ARM enhanced performance and battery patches
    • CVE security patches, general upstream and CAF fixes for important subsystems
    • Modded schedutil governor merged from latest CAF sm8350 patchset
    • No OC, use 250HZ base timer frequency
    • msm_performance touchboost toggle on/off (enabled by default), tweaked cpu_boost driver
    • Enhanced TCP methods (westwood is default, BBR available), Network tweaks and updated drivers
    • Several I/O control tweaks, advanced filesystems enabled (F2FS, ExFAT, NTFS, CIFS & NFS)
    • ZRAM Swap (4GB LZ4 default) and with file disabled (2 GB storage gain), LZO-RLE and ZSTD are available
    • Vibrator Strength tunable and Gesture Haptic Feedback control (touchpanel and FPR)
    • KGSL fixes and general improvements for GPU driver
    • adrenoboost ready (disabled by default)
    • Backlight min brightness and brightness scaling (custom) option
    • Gamepad support enabled (xbox, ps4, switch)
    • USB2 Fast Charge (USB mode up to 900mA with MTP on)
    • FS fsync toggle on/off
    • Wakelock blockers available
    • wireguard support
    • Compatible with FKM, EXKM, Kernel Adiutor and others


    DOWNLOAD KERNEL ZIP
    FKM download configs: oos | custom
    (No mirrors please)​


    Setup and troubleshoot: To install just flash the zip on a stock setup with either TWRP or autoflash kernel app.
    If you come from other kernel or have any issues, you should restore your stock boot.img/vendor_boot.img or dirty flash your ROM before flashing blu_spark zip to avoid problems. Also uninstall or clean data of any kernel control app you're using.
    If you are upgrading between blu_spark versions, just flash the kernel zip.

    About bugs and reports: don't bother to post if a log isn't ready or without steps so the behavior can be replicated. I only active support stock OOS ROM with NO mods whatsoever (apart from root). That includes NO support if using xposed, Magisk with added modules, etc.
    If you're using custom ROMs (including stock based ones) and OOS Open Betas you're much on your own. I'm mostly interested on debugging stuff in stock and stable OOS.
    Also try not to spam the thread with OT. There's threads for all kind of stuff, use them.

    Going back to stock: This kernel installer doesn't change your filesystem. You can backup your boot.img/vendor_boot.img with TWRP or kernel app before flashing blu_spark if you want to go back to full stock or just dirty flash your full ROM.


    Source Code: https://github.com/engstk/op9
    Don't forget to hit thanks, it's free ;)


    OnePlus 9 Pro development unit donated by OnePlus. Big shouts to them :)
    Very proud for being on the OnePlus Developer Program, special thanks to dev relations team.
    31
    blu_spark_r23 release

    First blu_spark build for the OP9 series is up (y)

    This kernel is tested for the 9 Pro but it's unified, so should work for the OP9 also (need some fixes since code is broken). So backup you boot if you want to test and let me know :)
    Kernel already have some merged goodies and I think I have a good base to work with. For a couple days of work, it's not bad :)
    I'll take a look into more stuff to come, some things in OP are WIP. Stay tuned!

    You can use FKM download kernel feature, just import the links bellow in the app.
    FKM download configs: oos


    Changelog:
    • Build with Google Clang 12.0.5 + LLD linker
    • Synchronize codes for OnePlus 9/Pro Oxygen 11.2.6.6.LE25AA
    • Several build error fixes and quirks handled
    • Compilation improvements an cruf removed
    • Some goodies already merged like filesystem stuff, cpu governor & boost/msm perf, TCP algos, wakelock blocker, vibration and haptic feedback control, gpu adrenoboost, etc
    • All drivers builtin, wifi stack and datarmmnet merged from CAF
    • net/wireguard: merge v1.0.20210424


    Keep in mind: I will give no active support for custom ROMs (including OOS based ones).
    I am mostly interested on debugging stuff in stock stable OOS (with logs and reproducible steps to replicate the issue).


    No mirrors please
    Don't forget to hit thanks, it's free :)
    21
    [Thread Cleaned]

    Good (or perhaps not so good?) day everyone! I've removed a few posts but left the ones that matter: civilized closure of conflict – social media can learn a thing or two from this. As we sit behind our desks and in our couches (or on a plane, even that's a thing nowadays), protected by that anonymity shield, we easily throw our words out into the world. And sometimes we regret them. Unfortunately, we find it so easy to judge one another for that. But facing the fact that we're all just humans that make mistakes, I believe we know that we shouldn't judge so quickly. Now more than ever; kindness should prevail.

    Thank you for your attention and have an energetic day or quiet night in your part of the world. If you need a chat, drop me a line. Just keep our development threads focused on development and mutual respect.

    Cheers!
    Timmy
    Forum Moderator
    17
    blu_spark_r52 release

    New build is up (y)

    This kernel is tested for the 9 Pro but it's unified, so should work for the OP9 also.

    You can use FKM download kernel feature, just import the links bellow in the app.
    FKM download configs: oos


    Changelog:
    • Synchronize codes for OnePlus 9 Oxygen 11.2.10.10
    • f2fs: shrink node_write lock coverage
    • AnyKernel3 updates (v20211215)
    • Couple init runtime adjusts to better UX
    • For root, Magisk 23.0 or higher is mandatory


    Keep in mind: I will give no active support for custom ROMs (including OOS based ones).
    I am mostly interested on debugging stuff in stock stable OOS (with logs and reproducible steps to replicate the issue).


    No mirrors please
    Don't forget to hit thanks, it's free :)
    16
    blu_spark_r54 release

    New build is up (y)
    One last A11 hurrah before stuff start to line up for A12.

    This kernel is tested for the 9 Pro but it's unified, so should work for the OP9 also.

    You can use FKM download kernel feature, just import the links bellow in the app.
    FKM download configs: oos


    Changelog:
    • Build with Google Clang 14.0.1 + LLD linker
    • wakelock blocker updates
    • Couple build reverts
    • AnyKernel3 updates (v20220126)
    • For root, Magisk 24.1 or newer is mandatory


    Keep in mind: I will give no active support for custom ROMs (including OOS based ones).
    I am mostly interested on debugging stuff in stock stable OOS (with logs and reproducible steps to replicate the issue).


    No mirrors please
    Don't forget to hit like, it's free :)