[KERNEL] [blu_spark r104 OP8/Pro/T] [A11 OOS]

Search This thread

Imprezzion

Senior Member
Dec 12, 2011
626
214
Gorredijk
Hi 😊 first of all thanks for your work 🙂
One question. You say you don't give support to custom ROMs but can you say if it works on them or not. Because it's a little bit confuse to me when I open the "custom" link from OP page. It says "OOS 11, custom + OOS 10"😊
Thanks in advanced and keep strong and healthy 😉

Like I posted 2 posts above this one, I just decided to give it a try on custom A11 as obviously I have a backup .img of the stock rooted kernel anyway.

Yes, I can confirm it works without any problems on CrDroid 7.1 which is A11 custom. I imagine it will work fine on LOS 18.1 / PE as well.
 

Shooter7889

Senior Member
Mar 24, 2019
106
41
FLORENCE
Like I posted 2 posts above this one, I just decided to give it a try on custom A11 as obviously I have a backup .img of the stock rooted kernel anyway.

Yes, I can confirm it works without any problems on CrDroid 7.1 which is A11 custom. I imagine it will work fine on LOS 18.1 / PE as well.
Custom/works on EvoX as well with all functionality/no issues. I've been running both together all wk perfectly
 
  • Like
Reactions: alex moymoy

Kollachi

Senior Member
  • Aug 24, 2013
    2,193
    1,003
    Telegram
    Xiaomi Redmi Note 7
    OnePlus 7T
    Hi @eng.stk I flashed the latest r78 on OnePlus 8T 11.0.6.9 EU (magisk v21.2 too) using EXKM and I got a bootloop into recovery. Didn't happen with the previous version.

    EDIT: not sure why but somehow it worked in the end. Due to the bootloop I booted my patched stock OOS boot.img, and I direct install magisk after booting. After that it reboots successfully into blu_spark r78

    I have used FKM to flash r78 on my 8T with 11.0.6.9 and didn't have any issues.
     

    tidschi

    Senior Member
  • Mar 5, 2008
    327
    92
    Hi @eng.stk I flashed the latest r78 on OnePlus 8T 11.0.6.9 EU (magisk v21.2 too) using EXKM and I got a bootloop into recovery. Didn't happen with the previous version.

    EDIT: not sure why but somehow it worked in the end. Due to the bootloop I booted my patched stock OOS boot.img, and I direct install magisk after booting. After that it reboots successfully into blu_spark r78

    Here the same, went also into recovery because of bootlop. I only wiped cache, tried again and it boots again. Maybe luck?
     

    Reddit3321

    Senior Member
    Jan 19, 2017
    50
    33
    Here the same, went also into recovery because of bootlop. I only wiped cache, tried again and it boots again. Maybe luck?

    I also had the same experience, flashed with exkm and bootlooped to recovery eventually. I didn't have a saved copy of my stock boot img anywhere except for my phone so I screwed my self and ended up msm tool'ing.

    After I got back up and running again, I tried this time flashing with fkm and I have not had any troubles since. I think it may have something to do with the AK3 changes and how exkm flashes.
     

    tidschi

    Senior Member
  • Mar 5, 2008
    327
    92
    I also had the same experience, flashed with exkm and bootlooped to recovery eventually. I didn't have a saved copy of my stock boot img anywhere except for my phone so I screwed my self and ended up msm tool'ing.

    After I got back up and running again, I tried this time flashing with fkm and I have not had any troubles since. I think it may have something to do with the AK3 changes and how exkm flashes.

    Forgot to mention, that I flashed with FKM. xD
     

    RMarques

    Senior Member
    Jan 28, 2013
    949
    157
    @eng.stk

    Sup bud, thanks for putting your project out there to all of us to enjoy!

    I'm rolling with a rooted OP8, featuring A11 OB5 + xXx + Acc module. Using FKM to manage kernel options.

    I'd like to ask if:

    1. Does it have sound control? I'm looking forward to be able to improve my bluetooth earbuds mic input volume, so ppl can hear me better.

    2. Does it have battery idle? Device starts to draw power directly from the power outlet, once Acc does reach a given battery level, allowing you to let it connected to the charger all night long, reducing battery heat and stress.
     
    • Like
    Reactions: eng.stk

    eng.stk

    Senior Member
    Mar 29, 2011
    6,845
    58,932
    OnePlus 5T
    OnePlus 6
    @eng.stk

    Sup bud, thanks for putting your project out there to all of us to enjoy!

    I'm rolling with a rooted OP8, featuring A11 OB5 + xXx + Acc module. Using FKM to manage kernel options.

    I'd like to ask if:

    1. Does it have sound control? I'm looking forward to be able to improve my bluetooth earbuds mic input volume, so ppl can hear me better.

    2. Does it have battery idle? Device starts to draw power directly from the power outlet, once Acc does reach a given battery level, allowing you to let it connected to the charger all night long, reducing battery heat and stress.
    Welcome :)

    1. Nope, already discussed this for others devices.
    2. Nope OP8 already has a complicated charging stack as it is and intwligent charging is already in place.
     
    • Like
    Reactions: RMarques

    Boing7898

    Member
    Aug 10, 2011
    44
    8
    Hi @eng.stk
    I've noticed in your OP7/Pro blu_spark kernels you added support for WiFi on ROMs that have built in wifi module (like LOS with the latest updates):

    - Rework runtime backend to suport WLAN in all custom ROM variants (via AK3 kernel companion Magisk module)
    - Misc. LOS patches for better device support (custom)

    Do you have any plans in doing the same for this kernel for OP8/8T/Pro?

    Thank you for your work!
     
    • Like
    Reactions: eng.stk

    eng.stk

    Senior Member
    Mar 29, 2011
    6,845
    58,932
    OnePlus 5T
    OnePlus 6
    Hi @eng.stk
    I've noticed in your OP7/Pro blu_spark kernels you added support for WiFi on ROMs that have built in wifi module (like LOS with the latest updates):

    - Rework runtime backend to suport WLAN in all custom ROM variants (via AK3 kernel companion Magisk module)
    - Misc. LOS patches for better device support (custom)

    Do you have any plans in doing the same for this kernel for OP8/8T/Pro?

    Thank you for your work!
    All my current Oneplus lineup have that in place (y)
     
    • Like
    Reactions: Boing7898

    Boing7898

    Member
    Aug 10, 2011
    44
    8
    All my current Oneplus lineup have that in place (y)
    Oh that's great!
    Do you have any idea what could the problem be then? Magisk module is enabled, can't enable WiFi though.
    Here's the logcat

    Code:
    01-13 22:41:06.467   957   957 E [email protected]: get_mac_from_nv: Get nv mac file failed: Permission denied
    01-13 22:41:08.274   957   957 E [email protected]: get_mac_from_nv: Get nv mac file failed: Permission denied
    01-13 22:41:10.486   957   957 E [email protected]: Failed to access driver state control param No such file or directory, 2: No such file or directory
    01-13 22:41:10.486   957   957 E [email protected]: Failed to load WiFi driver
    01-13 22:41:10.486   957   957 E [email protected]: Failed to initialize firmware mode controller
    01-13 22:41:10.486   957   957 E [email protected]: Wifi HAL start failed
    01-13 22:41:10.487  1492  1953 E HalDevMgr: Cannot start IWifi: 9 ()
    01-13 22:41:10.487  1492  1953 E WifiVendorHal: Failed to start vendor HAL
    01-13 22:41:10.487  1492  1953 E WifiNative: Failed to start vendor HAL
    01-13 22:41:10.487  1492  1953 E WifiNative: Failed to start Hal
    01-13 22:41:10.487  1492  1953 E WifiClientModeManager: Failed to create ClientInterface. Sit in Idle

    Thank you!!
     

    eng.stk

    Senior Member
    Mar 29, 2011
    6,845
    58,932
    OnePlus 5T
    OnePlus 6
    Oh that's great!
    Do you have any idea what could the problem be then? Magisk module is enabled, can't enable WiFi though.
    Here's the logcat

    Code:
    01-13 22:41:06.467   957   957 E [email protected]: get_mac_from_nv: Get nv mac file failed: Permission denied
    01-13 22:41:08.274   957   957 E [email protected]: get_mac_from_nv: Get nv mac file failed: Permission denied
    01-13 22:41:10.486   957   957 E [email protected]: Failed to access driver state control param No such file or directory, 2: No such file or directory
    01-13 22:41:10.486   957   957 E [email protected]: Failed to load WiFi driver
    01-13 22:41:10.486   957   957 E [email protected]: Failed to initialize firmware mode controller
    01-13 22:41:10.486   957   957 E [email protected]: Wifi HAL start failed
    01-13 22:41:10.487  1492  1953 E HalDevMgr: Cannot start IWifi: 9 ()
    01-13 22:41:10.487  1492  1953 E WifiVendorHal: Failed to start vendor HAL
    01-13 22:41:10.487  1492  1953 E WifiNative: Failed to start vendor HAL
    01-13 22:41:10.487  1492  1953 E WifiNative: Failed to start Hal
    01-13 22:41:10.487  1492  1953 E WifiClientModeManager: Failed to create ClientInterface. Sit in Idle

    Thank you!!
    You provided the answer.
    So either the module is not loading correctly or the ROM you're using has a different CAF base that makes HAL/driver render imcompatible.
    Try the magisk module solo in Magisk 21.2. What ROM is that in which device?
     
    • Like
    Reactions: Boing7898

    Boing7898

    Member
    Aug 10, 2011
    44
    8
    You provided the answer.
    So either the module is not loading correctly or the ROM you're using has a different CAF base that makes HAL/driver render imcompatible.
    Try the magisk module solo in Magisk 21.2. What ROM is that in which device?
    First of all thanks for your reply, I know you're not really interested in helping debugging with custom ROMs. Custom kernels are pretty important to me so if they won't work with this ROM I might be forced to switch.
    I'm running Magisk 21.2, with no other modules than the AnyKernel3 helper module. ROM is LineageOS 18.1, latest update, on Oneplus 8T.
     

    eng.stk

    Senior Member
    Mar 29, 2011
    6,845
    58,932
    OnePlus 5T
    OnePlus 6
    First of all thanks for your reply, I know you're not really interested in helping debugging with custom ROMs. Custom kernels are pretty important to me so if they won't work with this ROM I might be forced to switch.
    I'm running Magisk 21.2, with no other modules than the AnyKernel3 helper module. ROM is LineageOS 18.1, latest update, on Oneplus 8T.


    Using Bluspark on LOS 18.1 fine. Apart from WiFi everything seems to work perfectly :)

    Try this one for me
     

    Attachments

    • blu_spark_r79-custom_op8x_b4c239c22.zip
      20.5 MB · Views: 11

    Boing7898

    Member
    Aug 10, 2011
    44
    8
    Try this one for me
    Sadly it still doesn't work :(
    Restarted twice after flashing, waited some time after boot, checked the Magisk module was enabled.
    Logs look the same, here they are:
    Code:
    01-16 09:54:19.749   955   955 E [email protected]: get_mac_from_nv: Get nv mac file failed: Permission denied
    01-16 09:54:21.557   955   955 E [email protected]: get_mac_from_nv: Get nv mac file failed: Permission denied
    01-16 09:54:23.354     0     0 E         : [20210116_09:54:23.353264]@0 [SWARPCHG][mp2650_float_voltage_write]vfloat_mv = 4435
    01-16 09:54:23.454     0     0 E         : [20210116_09:54:23.353680]@0 [SWARPCHG][mp2650_float_voltage_write]set the same fv 0x72, return!
    01-16 09:54:23.454     0     0 W healthd : battery l=72 v=4062 t=30.3 h=2 st=2 c=-153000 fc=2067 cc=5 chg=u
    01-16 09:54:23.773   955   955 E [email protected]: Failed to access driver state control param No such file or directory, 2: No such file or directory
    01-16 09:54:23.773   955   955 E [email protected]: Failed to load WiFi driver
    01-16 09:54:23.773   955   955 E [email protected]: Failed to initialize firmware mode controller
    01-16 09:54:23.773   955   955 E [email protected]: Wifi HAL start failed
    01-16 09:54:23.775  1449  2159 E HalDevMgr: Cannot start IWifi: 9 ()
    01-16 09:54:23.775  1449  2159 E WifiVendorHal: Failed to start vendor HAL
    01-16 09:54:23.775  1449  2159 E WifiNative: Failed to start vendor HAL
    01-16 09:54:23.776  1449  2159 E WifiNative: Failed to start Hal
    01-16 09:54:23.776  1449  2159 E WifiClientModeManager: Failed to create ClientInterface. Sit in Idle

    Thanks man!
     
    • Like
    Reactions: eng.stk

    eng.stk

    Senior Member
    Mar 29, 2011
    6,845
    58,932
    OnePlus 5T
    OnePlus 6
    Sadly it still doesn't work :(
    Restarted twice after flashing, waited some time after boot, checked the Magisk module was enabled.
    Logs look the same, here they are:
    Code:
    01-16 09:54:19.749   955   955 E [email protected]: get_mac_from_nv: Get nv mac file failed: Permission denied
    01-16 09:54:21.557   955   955 E [email protected]: get_mac_from_nv: Get nv mac file failed: Permission denied
    01-16 09:54:23.354     0     0 E         : [20210116_09:54:23.353264]@0 [SWARPCHG][mp2650_float_voltage_write]vfloat_mv = 4435
    01-16 09:54:23.454     0     0 E         : [20210116_09:54:23.353680]@0 [SWARPCHG][mp2650_float_voltage_write]set the same fv 0x72, return!
    01-16 09:54:23.454     0     0 W healthd : battery l=72 v=4062 t=30.3 h=2 st=2 c=-153000 fc=2067 cc=5 chg=u
    01-16 09:54:23.773   955   955 E [email protected]: Failed to access driver state control param No such file or directory, 2: No such file or directory
    01-16 09:54:23.773   955   955 E [email protected]: Failed to load WiFi driver
    01-16 09:54:23.773   955   955 E [email protected]: Failed to initialize firmware mode controller
    01-16 09:54:23.773   955   955 E [email protected]: Wifi HAL start failed
    01-16 09:54:23.775  1449  2159 E HalDevMgr: Cannot start IWifi: 9 ()
    01-16 09:54:23.775  1449  2159 E WifiVendorHal: Failed to start vendor HAL
    01-16 09:54:23.775  1449  2159 E WifiNative: Failed to start vendor HAL
    01-16 09:54:23.776  1449  2159 E WifiNative: Failed to start Hal
    01-16 09:54:23.776  1449  2159 E WifiClientModeManager: Failed to create ClientInterface. Sit in Idle

    Thanks man!

    Tried but WiFi and hotspot are still broken
    But thank you so lucky for looking into it, it would be amazing to get it to work perfectly battery life on LOS is si much better with your kernel

    I can still try some stuff, let me know how it goes :)
     

    Attachments

    • blu_spark_r80-custom_op8x_5d2cb0ff8.zip
      22 MB · Views: 9

    Top Liked Posts

    • There are no posts matching your filters.
    • 19
      blu_spark_r104 release

      New build is up (y)

      This kernel is tested for the 8 Pro and 8T variants which I have, regular OP8 in OOS 11 is said to be working fine by some users.
      You can use FKM download kernel feature, just import the links bellow in the app.
      FKM download configs: oos


      Changelog:
      • Synchronize codes for OnePlus 8T OxygenOS 11.0.8.12 and OnePlus 8/Pro OxygenOS 11.0.6.6
      • cpufreq: schedutil: make iowait boost on by default
      • Build improvements and stage cleanup
      • defconfig: enable BBR TCP congestion algo
      • AnyKernel3 updates sync
      • For root, Magisk v23.0 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 thanks, it's free :)
      6
      Why dropping support to custom? Still r90 in crdroid seem to be smooth..
      Because my time is my own and I have better things to do.
      Sorry.
      4
      This kernel makes OOS alive!
      I don't care about the lame OOS system updates because I found this stable and well optimized kernel for daily living that makes my OP8T great and stand out 😉👍
      Thank you @eng.stk !
      Enjoy the sparks mate 😎
      3
      Hi @eng.stk, what do you think about BBR tcp congestion ?
      Since it's already in the kernel is it possible to let users enable it via config apps ? I think that adding CONFIG_TCP_CONG_BBR=y to defconfig should be enough
      Thanks !
      It's more server oriented, but I can enable it for you to test it out 👍
      2
      Hi @eng.stk, what do you think about BBR tcp congestion ?
      Since it's already in the kernel is it possible to let users enable it via config apps ? I think that adding CONFIG_TCP_CONG_BBR=y to defconfig should be enough
      Thanks !
    • 58
      DWHxIK

      Kernel features:
      • Build with Google Clang version 12.0.5 + 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, BBR available), 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 (LZO-RLE default) and with file disabled, LZ4 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 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.
      26
      blu_spark_r101 release

      New build is up (y)

      This kernel is tested for the 8 Pro and 8T variants which I have, regular OP8 in OOS 11 is said to be working fine by some users.
      You can use FKM download kernel feature, just import the links bellow in the app.
      FKM download configs: oos


      Changelog:
      • Revert "fs: exfat: sync with v5.8-1arter97"
      • defconfig: disable IKHEADERS
      • Remove some logspam and debug
      • net/wireguard: merge v1.0.20210424
      • AnyKernel3 updates sync
      • For root, Magisk v22.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 thanks, it's free :)
      24
      blu_spark_r94 release

      New build is up (y)

      This kernel is tested for the 8 Pro and 8T variants which I have, regular OP8 in OOS 11 is said to be working fine by some users.
      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.4 + LLD linker
      • BACKPORT: lib/lzo: implement run-length encoding (zram default now, better compress/speed ratio)
      • BACKPORT: GKI: hwtracing: Add a driver for disabling coresight clocks (backport from Pixel 5, less idle draw)
      • BACKPORT: lz4: fix kernel decompression speed
      • A couple of build improvements
      • Further disable audit
      • defconfig: enable ZSTD
      • Remove some logspam
      • AnyKernel3 sync
      • For root, Magisk v22.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 thanks, it's free :)
      20
      blu_spark r44 release

      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_r44 release
      FKM download configs: oos | custom
      • Build with Google Clang 11.0.4 + LLD linker
      • Synchronize codes for OnePlus 8 Oxygen OS 10.5.12.IN21AA and OnePlus 8 Pro Oxygen OS 10.5.13.IN11AA (no changes)
      • CAF update and fixes: arm64 kernel, mm, scheduler, ufs
      • Add some build more build fixes and improvements, remove some cruft and debugging
      • Revert "msm: kgsl: use kmem_cache pool for draw objects"
      • wireguard updates (v1.0.20200729)
      • wifi driver update (custom)
      • 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 :)
      19
      blu_spark_r104 release

      New build is up (y)

      This kernel is tested for the 8 Pro and 8T variants which I have, regular OP8 in OOS 11 is said to be working fine by some users.
      You can use FKM download kernel feature, just import the links bellow in the app.
      FKM download configs: oos


      Changelog:
      • Synchronize codes for OnePlus 8T OxygenOS 11.0.8.12 and OnePlus 8/Pro OxygenOS 11.0.6.6
      • cpufreq: schedutil: make iowait boost on by default
      • Build improvements and stage cleanup
      • defconfig: enable BBR TCP congestion algo
      • AnyKernel3 updates sync
      • For root, Magisk v23.0 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 thanks, it's free :)
    Our Apps
    Get our official app!
    The best way to access XDA on your phone
    Nav Gestures
    Add swipe gestures to any Android
    One Handed Mode
    Eases uses one hand with your phone