FORUMS
Remove All Ads from XDA
OnePlus 6 On Sale

[MARLIN] [8.1.0/P] [3.18.109] [CLANG 7.0] Flash Kernel 1.03

12,869 posts
Thanks Meter: 44,041
 
Post Reply Email Thread

Introduction

Hello everyone, this is my personal kernel for the Pixel XL. While I am not a super star kernel developer, I do know my way around it. My philosophy on kernels is pretty simple:
  • Follow stable Linux always. Updates will be delivered within 24 hours of their release to kernel.org.
  • Stable kernel rules work best (only add small things when possible).
  • Security and stability are paramount. Vulnerabilities are patched as soon as they are disclosed.
  • Features will be added only as needed (I have a list of things in the FAQ I will NOT add, even if requested).
Hopefully you enjoy


Important thread information!
  1. I refuse to acknowledge/respond to bug reports that do not include clear steps to reproduce, a logcat, and a console ramoops (if random rebooting) or a dmesg (any other issues). Follow this guide to do this.
  2. Keep things civil, I do NOT tolerate flaming of any kind.
  3. OT is allowed.


Features
Here are the major features of the kernel (feel free to explore Github)
  • Up to date with the May security update (android-8.1.0_r0.54) and P Preview 2 (android-p-preview-2_r0.1)
  • Up to date with the latest stable Linux version (3.18.109)
  • Latest binder and sdcardfs commits from kernel/common
  • Several subsystems converted to use power efficient workqueues
  • Mainline improvements to CFQ
  • Kernel hardening from CopperheadOS
  • Westwood as the default congestion algorithm
  • Sultanxda's wake boost driver
  • The following user facing features:
    • Backlight dimmer
    • Color control
    • HBM
    • Maple I/O scheduler
    • Sound control
    • USB fast charging
    • Wake gestures
    • Wakelock blocking
  • Latest WireGuard snapshot (0.0.20180513)
  • Built with a self compiled Clang 7.0 toolchain with a local initialization sanitizer (build script here)
  • Hides bootloader unlock from SafetyNet (can still fail through other means)
  • Available to flash with AnyKernel2 (thanks to @osm0sis)


Downloads

Primary: http://nchancellor.net/downloads/kernels/marlin
Mirror: https://github.com/nathanchance/fk-zips

Folder descriptions:
  1. alpha: Very likely broken or contains highly experimental patches; should only be run if you want to be a part of cutting edge development
  2. beta: Normal testing build; bootable and has no immediate issue.
  3. rc: Same as a beta but has had no issues for at least three days. I recommend running these when they are out as they will be pushed to the stable folder after a few days.
  4. stable: Same as rc but has had no issues for at least three days. If you are unsure which one to run, just use this one.
  5. archive: Old stable kernels

All issues with any build other than a stable build MUST be reported via Telegram. I keep my development out in the open but I don't let it cross over onto XDA. I do recommend participating as I am quicker to fix issues if I have multiple people testing. I request that you do not mirror my kernels. If the primary site is down, please use the mirror. Navigate to the file you want and click the download button. If you are mobile, tell GitHub to use the desktop version. I don't need posts telling me the primary site is down, it's my build server so I'll know if it is down. Thanks!


Installation

Images are being offered for people who don't want to interact with TWRP. They should only be used on stock! If you do want to use TWRP, follow their installation instructions, do not bother me in this thread with TWRP issues!

Images (installation and upgrade):
  • Install the latest adb and fastboot: https://developer.android.com/studio...orm-tools.html
  • Grab the kernel image from the download site above
  • Reboot into the bootloader using either restart and hold power button and volume down or adb:
    Code:
    adb reboot bootloader
  • Flash the kernel image. Run the following command in the folder with the kernel image and ensure fastboot is in your PATH:
    Code:
    fastboot flash kernel <kernel_image_name>.img
  • ???
  • Reboot and profit!

Zips (installation):
  • Either dirty flash your ROM or flash the stock boot image.
  • Install or temporarily boot into TWRP.
  • Flash the zip.
  • (OPTIONAL) Flash Magisk for root
  • ???
  • Reboot and profit!

NOTE: On custom ROMs, you must do a reboot between installing the ROM and installing the kernel/Magisk on a clean flash otherwise you may end up in a bootloop...

Zips (upgrade):
  • Boot into TWRP.
  • Flash the zip.
  • (OPTIONAL) Flash Magisk for root
  • ???
  • Reboot and profit!



Changelog

Latest release post!

Commits


Frequently asked questions
1.1 Q: I am having an issue, can you help me?
1.1 A: I am not an amazing kernel developer but I will certainly try my best. First, start by reading the release posts, as I may make note of a particular issue. Also search the thread to see if I have discussed it before. If you see nothing, please provide me with a dmesg/last_kmsg and logcat, your ROM/kernel version, and a detailed description of the issue, following this guide. If I can't reproduce reliably, I'm not going to fix the issue.

1.2 Q: Can you add xyz feature?
1.2 A: If you link me the commits or tell me what kernel you had the feature in, I can take a look at them. I will not go digging super hard for commits and I will ignore requests that don't include this information. I won't promise that I will merge every request but I will always take it into consideration. I will NOT add the following:
  • Overclocking or underclocking of CPU or GPU
  • Undervolting
  • Any governors other than sched/schedutil
  • Any schedulers other than cfq
  • Anything that compromises performance

1.3 Q: How do I control the kernel?
1.3 A: To be honest, there isn't much to tune here. However, I'd recommend using @flar2's EX Kernel Manager as it is the best designed kernel manager around.

1.4 Q: OMFG MY BATTERY SUXXXX PLS FIX!!!
1.4 A: The kernel doesn't drain any battery, use an app like BetterBatteryStats to figure out what app is screwing with your phone.


Thanks to:
The various other developers for their patches
@osm0sis for AnyKernel2
@phantom146 for the thread banner
All of you guys for viewing the thread


A note about donations

Quite a few people have asked to donate to me in the past and I have turned them down. I am not in this for the money, this is my hobby, something I truly enjoy. If you truly want to donate to something (it is not expected in the slightest), I recommend an entity like the Open Source Initiative, the Free Software Foundation, XDA, or any one of the people I have thanked in the OP. Additionally, you are free to copy any and all of my work; the only thing I request is that you not ask for donations as well (though I can't really enforce this lol). Thank you.


Kernel source links

8.1.0/P Preview 2: https://github.com/nathanchance/marlin/tree/oreo-m4


DISCLAIMER: I openly welcome off topic in my threads. Mods, please do not clean off topic discussion and users, do not complain about off topic discussion here. I may direct you to another thread if it is so suited but I won't have the discussion cleaned. Thank you.
The Following 14 Users Say Thank You to nathanchance For This Useful Post: [ View ]
 
 
10th May 2018, 06:44 AM |#3  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 44,041
 
More
You may notice the feature list is a little bare. I wanted to get a nice solid base formed first then add features in as requested. Please read the thread before requesting a feature; if it is already present, just press thanks.

In theory, this should work on P as I have merged the source in. I have only tested on Oreo though.

Feel free to join Telegram for beta builds and hanging out https://t.me/joinchat/C1UAJ0OCAoJtDRo-hhkjhw
The Following 3 Users Say Thank You to nathanchance For This Useful Post: [ View ]
10th May 2018, 09:29 AM |#4  
stebomurkn420's Avatar
Senior Member
Flag Pitsburg
Thanks Meter: 567
 
Donate to Me
More
Quote:
Originally Posted by nathanchance

You may notice the feature list is a little bare. I wanted to get a nice solid base formed first then add features in as requested. Please read the thread before requesting a feature; if it is already present, just press thanks.

In theory, this should work on P as I have merged the source in. I have only tested on Oreo though.

Feel free to join Telegram for beta builds and hanging out https://t.me/joinchat/C1UAJ0OCAoJtDRo-hhkjhw

Awesome! Thank you Nathan...
The Following User Says Thank You to stebomurkn420 For This Useful Post: [ View ] Gift stebomurkn420 Ad-Free
10th May 2018, 10:34 AM |#5  
Chimaira33's Avatar
Junior Member
Thanks Meter: 9
 
More
Add KCAL Color Control and I'm in. All I've wanted for so long is a stock like stable kernel with KCAL so I can tweak the display!
I ran your flash kernel the short time it was available for my old Nexus 6, happy to see this kernel here.
The Following User Says Thank You to Chimaira33 For This Useful Post: [ View ] Gift Chimaira33 Ad-Free
10th May 2018, 01:44 PM |#6  
aoaleman's Avatar
Senior Member
Flag San Antonio, TX
Thanks Meter: 825
 
More
Thank you for bringing this to marlin!!
The Following User Says Thank You to aoaleman For This Useful Post: [ View ] Gift aoaleman Ad-Free
10th May 2018, 04:55 PM |#7  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 44,041
 
More
Quote:
Originally Posted by Chimaira33

Add KCAL Color Control and I'm in. All I've wanted for so long is a stock like stable kernel with KCAL so I can tweak the display!
I ran your flash kernel the short time it was available for my old Nexus 6, happy to see this kernel here.

Sure, I can add that always happy to see returning users!
The Following 2 Users Say Thank You to nathanchance For This Useful Post: [ View ]
10th May 2018, 05:06 PM |#8  
shagbag913's Avatar
Senior Member
Thanks Meter: 150
 
Donate to Me
More
Quote:
Originally Posted by nathanchance

Sure, I can add that always happy to see returning users!

Was looking at your taimen post and was thinking to myself I wish we had this on sailfish/Marlin. Can you add schedutil?
The Following User Says Thank You to shagbag913 For This Useful Post: [ View ] Gift shagbag913 Ad-Free
10th May 2018, 05:06 PM |#9  
Gordietm's Avatar
Senior Member
Flag Toronto
Thanks Meter: 213
 
More
I tried another kernel on Android P preview 2 and had some problems. You noted that this kernel includes the source links for preview 2. The other I think only had preview 1. Would there be a difference?
10th May 2018, 06:15 PM |#10  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 44,041
 
More
Quote:
Originally Posted by shagbag913

Was looking at your taimen post and was thinking to myself I wish we had this on sailfish/Marlin. Can you add schedutil?

I plan to look into EAS 1.5 tomorrow or this weekend I will look at adding features tonight.

Quote:
Originally Posted by Gordietm

I tried another kernel on Android P preview 2 and had some problems. You noted that this kernel includes the source links for preview 2. The other I think only had preview 1. Would there be a difference?

Yes although I don't know how much offhand.
The Following 5 Users Say Thank You to nathanchance For This Useful Post: [ View ]
10th May 2018, 07:27 PM |#11  
Senior Member
Thanks Meter: 54
 
More
@nathanchance I haven't had a change to flash this yet, I really enjoyed this from my 6P days. Can you tell me if HBM and backlight dimmer are available? If not, could I request them? Any wakelock blocks available? Possibly fingerprint scanner boost--NSFW Kernel has this.

Thanks, I was really missing Flash Kernel
The Following User Says Thank You to Akomack For This Useful Post: [ View ] Gift Akomack Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes