CarboniteKERNEL for the OnePlus 5

Status
Not open for further replies.

adinkwok

Retired Forum Moderator / Inactive Recognized Deve
May 28, 2013
2,712
10,116
0
6ix
adin.dev
Hi OnePlus 5 peeps!

Today (June 27th), I graduated from high school!
In more important news, I finished upstreaming the OnePlus 5 kernel to the latest stable kernel version...

Whoa, what is this?
This is my personal kernel that I run as the OnePlus 5 is my daily driver.
I will not claim my work as the best at anything, but just know that I would not do anything to this kernel that could potentially ruin my own device.
Additionally, this is the kernel that comes built into CarbonROM.

There are three versions of this kernel:
AOSP aka AOSP/LOS build - Flash this on any source built custom ROM except for CarbonROM
CR-5.1 aka CarbonROM build - Flash this on CarbonROM
OOS aka OxygenOS build - Flash this version on OxygenOS

Main features:
  • Upstreamed Linux kernel version, went from v4.4.21 -> v4.4.79
  • Backported random driver from Linux v4.12 (latest and greatest)
  • Backported scheduler from Linux v4.9 (latest android kernel branch)
  • Upstreamed F2FS driver from f2fs-stable/linux-4.4.y
  • KGSL driver improvements
  • MDSS driver improvements
  • SOC driver improvements
  • Built using Optimization Level 2
  • Added maple io scheduler (default) by frap129
  • Added adreno idler by arter97 with tweaks from frap129
  • Vibrator motor control by flar2
  • Kcal control driver from EX kernel
  • Many wakelocks disabled
  • Switched to power efficient workqueues across the kernel
  • Built with Google's latest stable gcc-4.9
  • Anykernel 2.0 by osm0sis! Compatible with all OxygenOS based roms

Download:
Latest builds
OxygenOS boot.img

How to install:
1. Reboot into the latest stable TWRP build
2. Download kernel zip and make sure it is in your internal storage (/sdcard)
3. Reboot into TWRP
4. Double check here to see if you require any additional instructions
5a. Install -> Install image -> select oxygen-4.x.x-boot.img -> swipe to install
5b. Install -> select CarboniteKERNEL-XXX-Rx-OP5-N.zip -> swipe to install
6. Reboot

DISCLAIMER!
If you don't understand my instructions, that's too bad >:D
If you are unsure about what this thing is, I highly advise you do some research before going through with installing...
Updates will come as regular as I want them to, don't ask me when I'll release cause you'll know when it comes out >:'D

XDA:DevDB Information
CarboniteKERNEL for the OnePlus 5, Kernel for the OnePlus 5

Contributors
adinkwok, nathanchance, flar2, Lord Boeffla, osm0sis, etc
Source Code: https://github.com/adinkwok/oneplus5-kernel

Kernel Special Features: One of Taylor Swift's exes should write a song called "Maybe You're the Problem"

Version Information
Status: Testing

Created 2017-06-28
Last Updated 2017-08-02
 
Last edited:

adinkwok

Retired Forum Moderator / Inactive Recognized Deve
May 28, 2013
2,712
10,116
0
6ix
adin.dev
For OxygenOS users:
Code:
[B]If you are on OxygenOS and are coming from another custom kernel:[/B]
Download the latest stock.4.X.X-boot.img
You [B]must[/B] flash the boot.img before flashing the kernel!

[B]If you are on OxygenOS are switching to a different custom kernel:[/B]
Download the latest stock.4.X.X-boot.img
You [B]must[/B] flash the boot.img before switching kernels!
For AOSP/LOS/RR/etc users:
Code:
[B]If you are coming from another custom kernel:[/B]
You [B]must[/B] reflash your ROM build before flashing this kernel!

[B]If you are on AOSP/LOS/RR/etc and are switching to another custom kernel:[/B]
You [B]must[/B] reflash your ROM build before flashing another kernel!
Why is it like this?
I have included some ramdisk modifications that set the default settings for this kernel. When you come from a different custom kernel, the ramdisk changes from that kernel may conflict with the changes I intend to have. Likewise when you switch to a different kernel; my ramdisk changes may conflict with the changes they intend to have. When you flash the stock boot.img, it replaces the modified ramdisk with a clean one, removing these conflicts.
 
Last edited:

rav101

Senior Member
Dec 1, 2013
2,327
1,266
183
Walsall
Congratulations on the graduation buddy,

Just flashed and I had charging cycling on and off (using dash charger in car on freedom v1.1). Flashed EX and charging is fine. Need charge ATM but maybe a little later I can help you get a log.

Sent from my OnePlus5 using XDA Labs
 

adinkwok

Retired Forum Moderator / Inactive Recognized Deve
May 28, 2013
2,712
10,116
0
6ix
adin.dev
Congratulations on the graduation buddy,

Just flashed and I had charging cycling on and off (using dash charger in car on freedom v1.1). Flashed EX and charging is fine. Need charge ATM but maybe a little later I can help you get a log.

Sent from my OnePlus5 using XDA Labs
Hmmm never noticed this... I guess the graduation drinks are getting to me. I'll re-upload a stable build without upstreaming as that's definitely the culprit.
 

lagg.master

Member
Dec 17, 2014
11
7
0
What an amazing day for you (Congratulations!) and the OP5 community!

I was really loving and enyoing all your efforts you did for the OPO (Pure Nexus port) and the amazing Carbon ROM. :)
 
Last edited:

rav101

Senior Member
Dec 1, 2013
2,327
1,266
183
Walsall
Hmmm never noticed this... I guess the graduation drinks are getting to me. I'll re-upload a stable build without upstreaming as that's definitely the culprit.
I'm the first to report so let's see if anyone else has the same issue. I will also try for logs later on though I do have a lot on today (so might be this evening).

I didn't actually reboot or get to try a different charger to help diagnose so don't want you doing more work that you need to for what could me my issue :cowboy:

Sent from my OnePlus5 using XDA Labs
 

adinkwok

Retired Forum Moderator / Inactive Recognized Deve
May 28, 2013
2,712
10,116
0
6ix
adin.dev
I'm the first to report so let's see if anyone else has the same issue. I will also try for logs later on though I do have a lot on today (so might be this evening).

I didn't actually reboot or get to try a different charger to help diagnose so don't want you doing more work that you need to for what could me my issue :cowboy:
I can confirm the issue because while I was bringing up the upstream branch I ran into this issue with dash charging and I thought I solved it. Time to debug!

Edit: link updated without the upstreaming, everything else still stands though
 
Last edited:

rav101

Senior Member
Dec 1, 2013
2,327
1,266
183
Walsall
I can confirm the issue because while I was bringing up the upstream branch I ran into this issue with dash charging and I thought I solved it. Time to debug!

Edit: link updated without the upstreaming, everything else still stands though
No problem buddy,

Be good once it's all resolved and we have the benefits of upstream kernel code as well!! Your time and effort is appreciated!

Sent from my OnePlus5 using XDA Labs
 
Status
Not open for further replies.