• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[KERNEL] kernel-plus for Nokia 6 (PLE)

Search This thread

xaedoplay.modder.xda

Senior Member
May 24, 2017
69
26
Nokia 6
kernel-plus for Nokia 6

This project is made to enhance user experiences using the Linux kernel on the Nokia 6 phone.

What this kernel have:
  • Additional CPU governors (alucard, nightmare, darkness, bioshock, blu_active), with "darkness" as the default governor for stability and battery life
  • SafetyNet compatibility
  • Enforcing SELinux (can be easily changed by modifying the flashable ZIP)
  • exFAT and NTFS read/write drivers (userspace programs will be necessary to access those functionalities) << THE FIRST ANDROID KERNEL TO HAVE NTFS KERNEL DRIVER
  • Latest patches from kernel.org for its respective release version (in this case 3.18.y)
  • Latest commits from CAF for its respective release version (in this case msm-3.18)
  • /proc/config.gz support for you kernel builders out there;)

What this kernel will have in the future:
  • EAS support with schedutil (currently work-in-progress)
  • Double tap to wake support (planned)
  • Overclocking support (planned)
  • Different kernel release upstream branch (planned)

>Is it safe to use the kernel? Have you done any tests?
Yes. I personally am using it with pirrat25's LineageOS 15.1 custom ROM (Oreo 8.1) on my Nokia 6 and it just works. I don't really know yet about long term usability so let me know in the thread!

>So, it has never been tested on stock ROM?
No, it has been tested to be not working (on Pie). YMMV, though. So go and try it! (Don't forget to give feedback in the thread if you do, thanks!)

>Will you add more features to the kernel? It's so barren!
Yes. That feature roadmap list is definitely not final. I will try and get as many features as I can to the kernel, so please stay tuned! Also, YOU can also contribute and add new features to the kernel. Just fork the source code on GitHub and make a pull request when you think you've got enough work on it.



XDA:DevDB Information
kernel-plus, Kernel for the Nokia 6

Contributors
xaedoplay.modder.xda, Linux Foundation, AOSP, Qualcomm, and HMD/FIH kernel engineers
Source Code: https://github.com/rmnscnce/android_kernel_PLE/tree/plus-3.18.y

Kernel Special Features:

Version Information
Status: Stable
Current Stable Version: 3.18.140-plus_v1.5
Stable Release Date: 2020-10-18

Created 2020-10-18
Last Updated 2020-10-28
 
Last edited:

xaedoplay.modder.xda

Senior Member
May 24, 2017
69
26
Nokia 6
Here you can download the prebuilt kernel images

Format: Flashable ZIP Archive
Latest version link: Direct download || Release page

Version archives (direct download links):
  • 3.18.140-plus_v1.5
    Changes:
    - Merged tag LA.UM.6.5.r1-11500-8x96.0 from CAF
    Code:
              msm : adsprpc: maintain local copy of rpra offloaded to DSP
              Make file credentials available to the seqfile interfaces
              ext4: only look at the bg_flags field if it is valid
              ext4: don't update checksum of new initialized bitmaps
              ext4: verify the depth of extent tree in ext4_find_extent()
              ext4: add more inode number paranoia checks
              diag: Prevent out-of-bound access while processing userspace data
              diag: Prevent out of bound access while getting build mask
              diag: Check command size against the minimum before parsing
              msm: adsprpc: maintain local copy of rpra offloaded to DSP
              msm: ais: Remove dead code from Camera drivers
              asoc: Ratelimit error logs to avoid excessive logging
              soc: qcom: smem: validate fields of shared structures
              msm: sensor: actuator: fix out of bound read for bivcm region params
              FROMGIT: binder: create node flag to request sender's security context
              ext4: avoid running out of journal credits when appending to an inline file
              jbd2: don't mark block as modified if the handle is out of credits
              jbd2: speedup jbd2_journal_dirty_metadata()
              ext4: add corruption check in ext4_xattr_set_entry()
              ext4: always verify the magic number in xattr blocks
    - Compiled all drivers directly into the kernel image to prevent cases of incompatible .ko files (Pie not being able to use Wi-Fi)
  • 3.18.140-plus_v1.4
    Changes:
    - Reverted integration of several drivers (readded /system/vendor/lib/modules files compilation)
    - Added exFAT support in the kernel (submodule github:arter97/exfat-linux::branch=old)
    - Added NTFS support in the kernel (Paragon NTFS3 GPL R/W driver)
    - Fixed mistake in cmdline patcher
  • 3.18.140-plus_v1.3
    Changes:
    - Streamlined the package by including all (necessary) drivers in the kernel image (eliminated /system/vendor/lib/modules dependency)
    - Signed the flashable ZIP
  • 3.18.140-plus_v1.2.1
    Changes:
    - Switched default CPU governor back to 'darkness'
    - Removed 'lionfish' because of reboots when the battery is 35% or lower
  • 3.18.140-plus_v1.2(DO NOT USE)
    Changes:
    - Removed "bloat" CPU governor 'conservativex' (it never worked)
    - Changed default CPU governor to 'lionfish'
    - Now using stock ramdisk
  • 3.18.140-plus_v1.1
    Changes:
    - Applied SELinux compatibility kernel patch
    - Modified kernel command line to boot on SELinux enforcing
  • 3.18.140-plus
    Changes:
    - Initial release

Big thanks for GitHub for hosting my project repo and builds
 
Last edited:

xaedoplay.modder.xda

Senior Member
May 24, 2017
69
26
Nokia 6
Installation Guide

How to install the kernel?

Simple answer: "Just flash it using TWRP"

---

Well, it's that easy. Just flash the file you have downloaded using TWRP, and reboot the phone. Nothing fancy, just flash and it's all set.

Additional note: For some (unknown) reason Magisk would not survive the kernel flash procedure. You will need to flash Magisk installer zip after flashing the kernel to use it.

-----

How to change the kernel to boot into permissive SELinux mode?

While for security (and SafetyNet) it is not recommended to set the kernel to boot into permissive SELinux mode, you can easily modify the kernel flash script to do so (you can even disable SELinux altogether, but it is STRICTLY NOT RECOMMENDED)

To modify the kernel flash script, you must edit the "anykernel.sh" file.

From this
Code:
patch_cmdline androidboot.selinux=permissive androidboot.selinux=enforcing
-
To this:
Code:
patch_cmdline androidboot.selinux=permissive androidboot.selinux=permissive
or to this - if you want to disable SELinux altogether:
Code:
patch_cmdline androidboot.selinux=permissive androidboot.selinux=disabled

After it is done, you can repack the ZIP (I don't recommend applying compression to the ZIP) and flash it on TWRP
 
Last edited:

JinbrianZ

Senior Member
Aug 18, 2013
77
15
CEBU
hello, I tried this but it doesnt work on stockrom base on Pie.

I also made a kernel based on nokia source V6* weeks ago with the kernel ver 3.18.120 from nokia, with pre enabled permissive mode and enabled some on menuconfig and governors and it seems to work everything, did it for personal purpose.

I also tried to upstream it, but I'm stuck got lots of error cuz I directly jump to the last version of kernel which is 3.18.140. did tried adding also EAS to the kernel, but there is alot of file to be added and fixing the error and symlinks manually so I didnt continue there since im doing it on my Celeron laptop.

anyway this one wont flash on TWRP, gets error using anykernel3 zip, something error like " update error:1" I dont remember exactly the whole text.
same thing for fastboot. I replaced the kernel from stockboot.img from this one and get Remote failed: dtb not found. (tried 3x) I know the compiled sources are dtb file but it doest get read,
which is the same procedure when I compiled my kernel which works.
thank you for making a time doing it for the N6 users. hopefully it will work soon. ☺️
 
Last edited:

xaedoplay.modder.xda

Senior Member
May 24, 2017
69
26
Nokia 6
hello, I tried this but it doesnt work on stockrom base on Pie.

I also made a kernel based on nokia source V6* weeks ago with the kernel ver 3.18.120 from nokia, with pre enabled permissive mode and enabled some on menuconfig and governors and it seems to work everything, did it for personal purpose.

I also tried to upstream it, but I'm stuck got lots of error cuz I directly jump to the last version of kernel which is 3.18.140. did tried adding also EAS to the kernel, but there is alot of file to be added and fixing the error and symlinks manually so I didnt continue there since im doing it on my Celeron laptop.

anyway this one wont flash on TWRP, gets error using anykernel3 zip, something error like " update error:1" I dont remember exactly the whole text.
same thing for fastboot. I replaced the kernel from stockboot.img from this one and get Remote failed: dtb not found. (tried 3x) I know the compiled sources are dtb file but it doest get read,
which is the same procedure when I compiled my kernel which works.
thank you for making a time doing it for the N6 users. hopefully it will work soon. ☺️

Thanks for the reply!

>anyway this one wont flash on TWRP, gets error using anykernel3 zip, something error like " update error:1" I dont remember exactly the whole text.

Can you please take note of the error message? It would be impossible for me to fix if you don't give me the details

>I replaced the kernel from stockboot.img from this one and get Remote failed: dtb not found. (tried 3x) I know the compiled sources are dtb file but it doest get read

This looks really strange. Is it possible that dtb layout from Oreo differs to the one on Pie? If it is, then I'll need to patch more and create a specific custom Makefile option to make it possible to compile more than one dtb image per source.

I will update the OP to let people know that this doesn't work (yet) on the stock Pie ROM

Cheers!
 

JinbrianZ

Senior Member
Aug 18, 2013
77
15
CEBU
Thanks for the reply!

>anyway this one wont flash on TWRP, gets error using anykernel3 zip, something error like " update error:1" I dont remember exactly the whole text.

Can you please take note of the error message? It would be impossible for me to fix if you don't give me the details

>I replaced the kernel from stockboot.img from this one and get Remote failed: dtb not found. (tried 3x) I know the compiled sources are dtb file but it doest get read

This looks really strange. Is it possible that dtb layout from Oreo differs to the one on Pie? If it is, then I'll need to patch more and create a specific custom Makefile option to make it possible to compile more than one dtb image per source.

I will update the OP to let people know that this doesn't work (yet) on the stock Pie ROM

Cheers!


> I will check it later.
or maybe because of TWRP, I use the bootable version which 3.2.3-0, but I can flash any zip on it. except for the anykernel zip that gets same error, which is also I did before for my compiled kernel.
and only gets to work when fastbooting the .img

Also when I compiled the kernel sources based on pie V6 from nokia, I got a dtb file size of about 18mb. where the stockboot image is 21mb. the one you compiled is in smaller size which maybe there is something missing files to get to work on pie I think?
 

xaedoplay.modder.xda

Senior Member
May 24, 2017
69
26
Nokia 6
> I will check it later.
or maybe because of TWRP, I use the bootable version which 3.2.3-0, but I can flash any zip on it. except for the anykernel zip that gets same error, which is also I did before for my compiled kernel.
and only gets to work when fastbooting the .img

Also when I compiled the kernel sources based on pie V6 from nokia, I got a dtb file size of about 18mb. where the stockboot image is 21mb. the one you compiled is in smaller size which maybe there is something missing files to get to work on pie I think?

Thanks for the reply!

>or maybe because of TWRP, I use the bootable version which 3.2.3-0, but I can flash any zip on it
Maybe try to use the official TWRP? It has full support and stuff, but I couldn't manage to flash the custom ROM there so to each their own

>he one you compiled is in smaller size which maybe there is something missing files to get to work on pie I think?
Yeah, maybe that's the culprit. Is it because I don't integrate all modules inside the kernel image? I will try and compile all the modules inside the kernel. The final ZIP size is 25MB though so it is actually bigger in total compared to the stock boot image.

Like I said, I will fix this issue once I got the real problem, so that all Nokia 6 user can enjoy using custom kernel images :fingers-crossed:
 

MYR-12.v2

Member
May 26, 2015
6
1
21
Bandung
Xiaomi Redmi Note 4
Finally a custom kernel for our phone! looks like i really need to unlock the bootloader now. Thanks for your effort from making this one!

btw sorry if it's OOT but is the LOS 15.1 ROM stable enough for daily driver use?
 

xaedoplay.modder.xda

Senior Member
May 24, 2017
69
26
Nokia 6
Finally a custom kernel for our phone! looks like i really need to unlock the bootloader now. Thanks for your effort from making this one!

btw sorry if it's OOT but is the LOS 15.1 ROM stable enough for daily driver use?

Thank you for the reply!

>is the LOS 15.1 ROM stable enough for daily driver use?
Yes – only if you wouldn't mind not being able to use the fingerprint scanner (and the button backlights). Other than that it's good! As an added bonus, the built in camera firmware is on par with the GCam port for this phone, without the shutter lag
 

cbkings

Member
Feb 3, 2018
30
0
Nokia 6
I installed latest plus kernel on stock pie. it works now on my device. but wifi doesnt work.
if u set CONFIG_PRONTO_WLAN=m into CONFIG_PRONTO_WLAN=y on PLE_defconfig wifi will work. hope this error is due to this, kind of a sign error i hope so. I experienced this same error when i tried to build los.
 
Last edited:

xaedoplay.modder.xda

Senior Member
May 24, 2017
69
26
Nokia 6
I installed latest plus kernel on stock pie. it flashed well but didn't boot into system,it rebooted into bootloader.

Thank you for the reply!

So, it cannot boot on Pie, right? I will work for Pie ROMs on a separate branch, then!

I really thought there weren't going to be any changes in userspace compatibility between Oreo and Pie. Turned out I am wrong
 

cbkings

Member
Feb 3, 2018
30
0
Nokia 6
Thank you for the reply!

So, it cannot boot on Pie, right? I will work for Pie ROMs on a separate branch, then!

I really thought there weren't going to be any changes in userspace compatibility between Oreo and Pie. Turned out I am wrong

sorry man, can u check my previous reply again. i edited it. now its working. :D
I wiped cache and flashed magisk again then it worked..
but wifi doesnt work
 

xaedoplay.modder.xda

Senior Member
May 24, 2017
69
26
Nokia 6
sorry man, can u check my previous reply again. i edited it. now its working. :D
I wiped cache and flashed magisk again then it worked..
but wifi doesnt work

Thank you for your reply!

I checked the previous reply:
I installed latest plus kernel on stock pie. it works now on my device. but wifi doesnt work.
if u set CONFIG_PRONTO_WLAN=m into CONFIG_PRONTO_WLAN=y on PLE_defconfig wifi will work. hope this error is due to this, kind of a sign error i hope so. I experienced this same error when i tried to build los.

> if u set CONFIG_PRONTO_WLAN=m into CONFIG_PRONTO_WLAN=y on PLE_defconfig wifi will work
Okay, so I guess I had to merge drivers into the kernel again, huh? Will do! (Expect new version later today with even more updates)

>I experienced this same error when i tried to build los
You built LOS? What version? I would like to have it if it's working and is LineageOS 16 or later!
 

cbkings

Member
Feb 3, 2018
30
0
Nokia 6
Thank you for your reply!

I checked the previous reply:


> if u set CONFIG_PRONTO_WLAN=m into CONFIG_PRONTO_WLAN=y on PLE_defconfig wifi will work
Okay, so I guess I had to merge drivers into the kernel again, huh? Will do! (Expect new version later today with even more updates)

>I experienced this same error when i tried to build los
You built LOS? What version? I would like to have it if it's working and is LineageOS 16 or later!

Thanks for ur efforts on kernel plus! keep this going on. we will hope later updates

I tried to build los 16 but i failed. I built los 15.1 using pirats tree. tried to fix fingerprint,hotspot and backlight bugs . Only i managed to fix hotspot bug also i managed to set Selinux to enforced on los 15.1 userdebug build without any major issue.
 
Last edited:

xaedoplay.modder.xda

Senior Member
May 24, 2017
69
26
Nokia 6
Thanks for ur efforts on kernel plus! keep this going on. we will hope later updates

I tried to build los 16 but i failed. I built los 15.1 using pirats tree. tried to fix fingerprint,hotspot and backlight bugs . Only i managed to fix hotspot bug also i managed to set Selinux to enforced on los 15.1 userdebug build without any major issue.

Thank you for your reply!

>Thanks for ur efforts on kernel plus! keep this going on. we will hope later updates

Stay tuned! I'm ~65% done on the next update!

>I tried to build los 16 but i failed

Aw, that's quite unfortunate :\ Maybe you could try building 17.1 tree made available by someone on GitHub?

>tried to fix fingerprint,hotspot and backlight bugs . Only i managed to fix hotspot bug also i managed to set Selinux to enforced on los 15.1 userdebug build without any major issue

There's a hotspot bug? I don't experience anything strange on it here. Anyways could you please share the fixed build (on the respective pirrat's thread)? Any fixes' a goal!
 

cbkings

Member
Feb 3, 2018
30
0
Nokia 6
Thank you for your reply!

>Thanks for ur efforts on kernel plus! keep this going on. we will hope later updates

Stay tuned! I'm ~65% done on the next update!

>I tried to build los 16 but i failed

Aw, that's quite unfortunate :\ Maybe you could try building 17.1 tree made available by someone on GitHub?

>tried to fix fingerprint,hotspot and backlight bugs . Only i managed to fix hotspot bug also i managed to set Selinux to enforced on los 15.1 userdebug build without any major issue

There's a hotspot bug? I don't experience anything strange on it here. Anyways could you please share the fixed build (on the respective pirrat's thread)? Any fixes' a goal!

>I did it for my personal use. about hotspot bug when we switch between hotspot and wifi system got restart after a while.

>I tried that los 17 tree posted by samu , it also not working. I'm new for these stuff. i think we have to add some symlinks manually to upstream the tree. But i dont know much about it. :crying:

> I'll post my work on that thread soon. :p I have to find the working zip file now. There are lots of zips on my pc and are not organised well :(

I want to know does pirrats los 15.1 having any battery issue quick discharge in idle or any kind of a unusual battery usage???
In my build im having a unusual battery usage cant even find what is the cause for it. i thought it was due to tree . let me know if u have a quick battery drain in idle on urs.
 
Last edited:

xaedoplay.modder.xda

Senior Member
May 24, 2017
69
26
Nokia 6
>I did it for my personal use. about hotspot bug when we switch between hotspot and wifi system got restart after a while.

>I tried that los 17 tree posted by samu , it also not working. I'm new for these stuff. i think we have to add some symlinks manually to upstream the tree. But i dont know much about it. :crying:

> I'll post my work on that thread soon. :p I have to find the working zip file now. There are lots of zips on my pc and are not organised well :(

I want to know does pirrats los 15.1 having any battery issue quick discharge in idle or any kind of a unusual battery usage???
In my build im having a unusual battery usage cant even find what is the cause for it. i thought it was due to tree . let me know if u have a quick battery drain in idle on urs.

Thanks for your reply!

>>I tried that los 17 tree posted by samu , it also not working. I'm new for these stuff. i think we have to add some symlinks manually to upstream the tree. But i dont know much about it. :crying:

I really want to help on this but sadly I don't have much storage spaces left on my workstation so kernel it is! Maybe if I finally got my hands on more storage? I hope so!

>I want to know does pirrats los 15.1 having any battery issue quick discharge in idle or any kind of a unusual battery usage???

Maybe? I don't know, I started the kernel development almost immediately after I got my hands on 15.1. For what I know, the battery drains but I think that's because of my battery breaking down (thinking about having ~2500mAh left intact) (this kernel is really good at maintaining idle battery life through HW controlled deep sleep though, thanks to "darkness" governor)
 
Last edited:

cbkings

Member
Feb 3, 2018
30
0
Nokia 6
Thanks for your reply!

>>I tried that los 17 tree posted by samu , it also not working. I'm new for these stuff. i think we have to add some symlinks manually to upstream the tree. But i dont know much about it. :crying:

I really want to help on this but sadly I don't have much storage spaces left on my workstation so kernel it is! Maybe if I finally got my hands on more storage? I hope so!

>I want to know does pirrats los 15.1 having any battery issue quick discharge in idle or any kind of a unusual battery usage???

Maybe? I don't know, I started the kernel development almost immediately after I got my hands on 15.1. For what I know, the battery drains but I think that's because of my battery breaking down (thinking about having ~2500mAh left intact) (this kernel is really good at maintaining idle battery life through HW controlled deep sleep though, thanks to "darkness" governor)

Can u join me on telegram ""t.me/cbkings"" . :fingers-crossed: maybe we can talk little about development just in case .
 
Last edited:

Wapitiii

New member
Thanks for making a custom kernel, i tried it with Lineage OS 15.1, but everytime when i deploy it with TWRP 3.4.0, it soft-bricks my android installation. (or even TWRP itself also, but i am not sure)
Also im using TA-1033.

Edit: Changed TWRP to 3.3.1 and installed Magisk before applying, now it boots, but GUI is messed up.
 
Last edited:

xaedoplay.modder.xda

Senior Member
May 24, 2017
69
26
Nokia 6
I installed latest plus kernel on stock pie. it works now on my device. but wifi doesnt work.
if u set CONFIG_PRONTO_WLAN=m into CONFIG_PRONTO_WLAN=y on PLE_defconfig wifi will work. hope this error is due to this, kind of a sign error i hope so. I experienced this same error when i tried to build los.

Hey! Just wanted to inform you that the new kernel release (plus_v1.5) got all the drivers built into the kernel image. Hopefully now the Wi-Fi will work on stock Pie ROM.

Please give an update if you're trying it out!

Thanks for making a custom kernel, i tried it with Lineage OS 15.1, but everytime when i deploy it with TWRP 3.4.0, it soft-bricks my android installation. (or even TWRP itself also, but i am not sure)
Also im using TA-1033.

Edit: Changed TWRP to 3.3.1 and installed Magisk before applying, now it boots, but GUI is messed up.

Thanks for the reply!

>but GUI is messed up

Have you tampered the GPU drivers? You can try to wipe the GPU cache (also the /cache partition and runtime (dalvik) cache) to fix issues with broken UI elements
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hi OP and testers, are there updates on the development/debug of this kernel? Thanks!