[KERNEL] [blu_spark r87 OP8/Pro/T] [A11 OOS/Custom ]

eng.stk

Senior Member
Mar 29, 2011
6,747
58,333
263

Kernel features:
  • Build with Google Clang version 12.0.2 + LLD linker
  • Full -O2 build with device and target flags enhanced, build improvements and compiler fixes, etc
  • Less is more: stockish OP8 builds based on OnePlusOSS/android_kernel_oneplus_sm8250 for max stability
  • Systemless installer (doesn't touch system 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 sm8250 patchset
  • No OC, use 300HZ base timer frequency
  • msm_performance touchboost toggle on/off (enabled by default), tweaked cpu_boost driver
  • Enhanced TCP methods (westwood is default), Network tweaks and updated drivers
  • Several I/O control tweaks, added schedulers ZEN v2 is default, advanced filesystems enabled (F2FS, ExFAT, NTFS, CIFS & NFS)
  • ZRAM Swap (LZ4) and with swap file disabled
  • 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 option
  • Gamepad support enabled (xbox, ps4, switch)
  • USB Fast Charge (USB mode up to 900mA with MTP on)
  • FS fsync toggle on/off
  • Wakelock blockers available
  • wireguard support
  • CDROM emulation on mass_storage (compatible with DriveDroid 0.10.36+)
  • Compatible with Kernel Adiutor, EXKM, FKM 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 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 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/op8
Don't forget to hit thanks, it's free ;)


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

eng.stk

Senior Member
Mar 29, 2011
6,747
58,333
263
blu_spark r12 release

All right crew!

It's that time again, 1st build is up :highfive:

This kernel source is unified for OP8/Pro, don't know how it will run in the regular model (can only test in the Pro). Let me know.
At the moment we're maybe at 80% of the usual goodies, get a nice and stable base and go from there.
I'm building with clang currently got some hiccups with gcc. I'll probably revisit this in the future but it will need more TLC.
You can now use FKM download kernel feature, just import the links bellow in the app :highfive:


blu_spark_r12release
FKM download configs: oos | custom
  • Build with latest Google Clang version 11.0.2 (Android 11) - blu_gcc may come in the future, needs som TLC
  • Synchronize codes for OnePlus 8 Oxygen OS 10.5.9.IN21AA and OnePlus 8 Pro Oxygen OS 10.5.10.IN11AA
  • Build errors and warnings fixes
  • Compiling improving and target optimizations
  • Goodies: IO and filesystem stuff, priorities and UX, touchboost, zram, wakelock blocker, haptic and gestures level, adrenoboost, etc
  • wireguard updates (v1.0.20200611)
  • init adjust for sdm8250
  • AnyKernel3 latest updates
  • For root, stable Magisk 20.4 or newer is mandatory

Keep in mind: I will give no active support for custom ROMs (including OOS based ones).
I am only interested on debugging stuff in stock and stable OOS (with logs and reproducible steps to replicate the issue).
Don't spam this thread with LOS or other ROMs stuff like "this don't work, my app doesn't open, etc" or debugging features.
Also don't go spam and bug reporting on ROM threads if using this.


No mirrors please
If you like my work, donations are always welcome.
Don't forget to hit thanks and rate the thread nicely, it's free :)
 
Last edited:

Surfeur-des-Reves

Senior Member
Jun 21, 2008
182
66
48
Great job! Any list of the best settings to activate for your kernel in FKM? Can't manage to activate westwood TCP method, it gets stuck to reno, for example. Or any config file to have the best settings selected, maybe? Sorry, I'm not too familiar with FKM yet.
 

tbalden

Recognized Developer
Oct 22, 2010
9,800
16,774
263
Budapest
www.virtuousrom.com
Hey there, welcome. Nice to see you here.

Just one question, why are so many features listed in the OP and many or most not in the sources on GitHub? Isn't this a copy paste error?

Sent from my Pixel 4 XL using Tapatalk
 

eng.stk

Senior Member
Mar 29, 2011
6,747
58,333
263
ur kernel is great for daily use when I have 6t, it's fast, smoot, and stable. do u plan to build one for oneplus 8?
Has it is doesn't work? idk.
At the moment I'm focused on the bringup.

Great job! Any list of the best settings to activate for your kernel in FKM? Can't manage to activate westwood TCP method, it gets stuck to reno, for example. Or any config file to have the best settings selected, maybe? Sorry, I'm not too familiar with FKM yet.
I already inject settings I see importanton the background. TCP method is westwood by default, that reno situation is a bug from the app, franco is on it :good:

Hey there, welcome. Nice to see you here.

Just one question, why are so many features listed in the OP and many or most not in the sources on GitHub? Isn't this a copy paste error?

Sent from my Pixel 4 XL using Tapatalk
Hey. WIP and will come soon after.
 

eng.stk

Senior Member
Mar 29, 2011
6,747
58,333
263
it's not working on regular 8
On8 not working
Hum too bad. Seems like there's driver differences between the models, we'll see what can be done ib the future.
For now I'll concentrate on the pro.



After installing this kernel I'm getting an option to boost GPU clock to 900 MHz. This also resulted in a much higher compute score. Is this normal? @eng.stk
Wait, what? Seem like that app is on acid lol

Sent from my blu_spark'd OnePlus
 
  • Like
Reactions: osm0sis

acuicultor

Recognized Contributor / Recognized Developer
Jan 3, 2013
3,050
10,953
263
Palma de Mallorca
Then how did I get 4351 OpenCL score on Geekbench lol?
You probably still have custom dtb from the kernel that have gpu oc, since this kernel doesn't replace the dtb and you switched kernels without keeping that in mind you ended up with mixed kernel images and dtbs.
 
Last edited:

akshat207

Member
Sep 22, 2017
20
3
3
You probably still have custom dtb from the kernel that have gpu oc since this kernel doesn't replace the dtb and you switched kernels without keeping that in mind you ended up with mixed kernel images and dtbs.
So, how is that much GPU OC possible? that's almost double the stock max frequency!

EDIT: You were right, it was from "Evira Kernel". Now my question is, is that much OC safe? That's insane.

Do note that my device didn't get hot when I was running the benchmark even at 900 MHz.
 
Last edited:

TheKnux

Senior Member
Sep 28, 2011
2,514
775
193
Akron
what was the problem for the regular OnePlus 8? bootloop and what region was ur phone
At the bootloader unlock screen, after a few seconds, the text turns green and has black lines through it, when it finishes booting, by the screen goes completely black. Vibration and sound still work though. Have to force power off and back to TWRP to restore stock boot.
 
  • Like
Reactions: hjjiang

eng.stk

Senior Member
Mar 29, 2011
6,747
58,333
263
blu_spark r18 release

All right crew!

New build is up :highfive:

This kernel is only tested for the Pro variant which I have, regular OP8 support may come in the future.
You can now use FKM download kernel feature, just import the links bellow in the app :highfive:


blu_spark_r18 release
FKM download configs: oos | custom wip
  • Full LLVM tools build (Clang + LLD), add a couple build fixes/improvements
  • drivers: misc: power: implement usb2 fast charge mode
  • power: smb5-lib: reset level on removal
  • drm-msm-dsi: add backlight min option
  • fs: exfat: version 2.2.0-3arter97
  • cpufreq: schedutil: make iowait boost optional
  • remove and disable some debug and logging
  • defconfig: enable overlay and disable dtb append
  • init adjustments
  • For root, stable Magisk 20.4 or newer is mandatory

Keep in mind: I will give no active support for custom ROMs (including OOS based ones).
I am only interested on debugging stuff in stock and stable OOS (with logs and reproducible steps to replicate the issue).
Don't spam this thread with LOS or other ROMs stuff like "this don't work, my app doesn't open, etc" or debugging features.
Also don't go spam and bug reporting on ROM threads if using this.


No mirrors please
If you like my work, donations are always welcome.
Don't forget to hit thanks and rate the thread nicely, it's free :)
 
Last edited: