[KERNEL REFERENCE] Linux 3.10.y / Individual WFC Commits

Gandalf

Inactive Recognized Developer / Retired Forum Mode
Mar 29, 2011
3,537
6,668
0
Philadelphia
** Disclaimer **
If you flash this and your device breaks, I'm not taking responsibility. You flash anything and everything AT YOUR OWN RISK.

This is intended (at time of writing) to remain stock AOSP source with upstream Linux 3.10.x merged in. I will be keeping a living copy of the Nexus 6 kernel source up-to-date with AOSP sources, as well as TESTED and VERIFIED upstream Linux subversion up to the most recent (3.10.63 at time of writing). This is mainly to save other developers time spent merging upstream Linux (while ultimately not very influential on Android, some benefits still remain that make it worthwhile to maintain this)

Branches to reference:
  • android-5.1 (AOSP + Upstream Linux Kernel)
  • Update: omnirom/android-5.1 AOSP lollipop-mr1 kernel including necessary bcmdhd and selinux changes for WFC (this is NOT an m-preview merge into lollipop-mr1)

AOSP Nexus 6 Kernel Source

Linux Kernel 3.10.x Source
 
Last edited:

Gandalf

Inactive Recognized Developer / Retired Forum Mode
Mar 29, 2011
3,537
6,668
0
Philadelphia
Currently tested with:
  • Stock (5.0.1 at time of writing)
  • OmniROM
  • CyanogenMod
  • CleanROM 1.3.5


As you test on different ROMs, please let me know so I can keep this list updated.

Also, this is a Nexus, as long as people don't start adding weird things, this will work fine on just about any ROM.
 
Last edited:

DespairFactor

Recognized Developer / Recognized Contributor
Mar 13, 2013
5,786
12,337
0
Toronto
I think you posted this in the wrong section, anyhow, thank you for your contribution:) I will for sure be taking a look at your work.
 

Gandalf

Inactive Recognized Developer / Retired Forum Mode
Mar 29, 2011
3,537
6,668
0
Philadelphia
I think you posted this in the wrong section, anyhow, thank you for your contribution:) I will for sure be taking a look at your work.
No, correct section. I plan on providing a "customized" version soon, which will provide some minor optimizations and changes. Currently working on another kernel for another device right now, so that will come once I complete my other project (next few days )
 

rlasalle15

Senior Member
Oct 6, 2010
805
915
0
Providence, RI
** This will mainly be for reference for developers, but can also be flashed for use with any ROM as well **

This is intended (at time of writing) to remain stock AOSP source with upstream Linux 3.10.x merged in. I will be keeping a living copy of the Nexus 6 kernel source up-to-date with AOSP sources, as well as TESTED and VERIFIED upstream Linux subversion up to the most recent (3.10.63 at time of writing). This is mainly to save other developers time spent merging upstream Linux (while ultimately not very influential on Android, some benefits still remain that make it worthwhile to maintain this)

Reference the android-5.0. I will only push to that branch after personally compiling and testing the kernel.

Source: https://github.com/jakew02/android_kernel_moto_shamu

AOSP Nexus 6

Linux Kernel 3.10.x


(Will make post pretty later)
Hey Jake...have you tried compiling this kernel on mac yet? I am having tons of issues with headers. Not sure if something is missing with Xcode. I am pretty sure I remember you having a mac.
 

Gandalf

Inactive Recognized Developer / Retired Forum Mode
Mar 29, 2011
3,537
6,668
0
Philadelphia
Hey Jake...have you tried compiling this kernel on mac yet? I am having tons of issues with headers. Not sure if something is missing with Xcode. I am pretty sure I remember you having a mac.
I used to, but not anymore. Most certainly an OS X issue. You would need to give me the errors to look at since I have no issues compiling on Arch.
 

rlasalle15

Senior Member
Oct 6, 2010
805
915
0
Providence, RI
I used to, but not anymore. Most certainly an OS X issue. You would need to give me the errors to look at since I have no issues compiling on Arch.
Going to try again.....building inline. give me a few.

---------- Post added 29th December 2014 at 12:41 AM ---------- Previous post was 28th December 2014 at 11:55 PM ----------

I used to, but not anymore. Most certainly an OS X issue. You would need to give me the errors to look at since I have no issues compiling on Arch.
sent you a pm.

here is the issue for anyone else that may have a clue on what a fix could be:

In file included from /Volumes/android/eos/kernel/moto/shamu/scripts/sortextable.c:31:
/Volumes/android/eos/kernel/moto/shamu/tools/include/tools/be_byteshift.h:4:10: fatal error: 'linux/types.h'
file not found
#include <linux/types.h>
^
1 error generated.

It seems like mac os x doesn't have types.h headers that linux does. Hammerhead compiles just fine, but shamu....she no wanna compile inline.
 
Last edited:

CPA Poke

Senior Member
Oct 23, 2012
1,515
3,334
0
Tulsa, OK
** This will mainly be for reference for developers, but can also be flashed for use with any ROM as well **

This is intended (at time of writing) to remain stock AOSP source with upstream Linux 3.10.x merged in. I will be keeping a living copy of the Nexus 6 kernel source up-to-date with AOSP sources, as well as TESTED and VERIFIED upstream Linux subversion up to the most recent (3.10.63 at time of writing). This is mainly to save other developers time spent merging upstream Linux (while ultimately not very influential on Android, some benefits still remain that make it worthwhile to maintain this)

Reference the android-5.0. I will only push to that branch after personally compiling and testing the kernel.

I will not be providing a recovery zip for installation. Use fastboot of Flashify.

Eventually going to add a custom version with CPU frequency and voltage control, and maybe some other stuff.

Download: shamu-3.10.63-20141230

Source: https://github.com/jakew02/android_kernel_moto_shamu

AOSP Nexus 6

Linux Kernel 3.10.x


(Will make post pretty later)
Sweet, thanks for this Jake - I like merging much better than manually patching :)
 

Gandalf

Inactive Recognized Developer / Retired Forum Mode
Mar 29, 2011
3,537
6,668
0
Philadelphia
Sweet, thanks for this Jake - I like merging much better than manually patching :)
The way I have setup the commit history should allow for most developers to just rebase onto my kernel source. I'm willing to bet there will be minimal merge conflicts in doing that (depending on what has been changed, of course)
 

CPA Poke

Senior Member
Oct 23, 2012
1,515
3,334
0
Tulsa, OK
The way I have setup the commit history should allow for most developers to just rebase onto my kernel source. I'm willing to bet there will be minimal merge conflicts in doing that (depending on what has been changed, of course)
Already started :) I was talking about future maintenance, ie for those who have already updated to the most recent sources.
 

ryanbg

Inactive Recognized Developer
Jan 3, 2008
855
1,734
0
movr0.com
Going to try again.....building inline. give me a few.

---------- Post added 29th December 2014 at 12:41 AM ---------- Previous post was 28th December 2014 at 11:55 PM ----------



sent you a pm.

here is the issue for anyone else that may have a clue on what a fix could be:

In file included from /Volumes/android/eos/kernel/moto/shamu/scripts/sortextable.c:31:
/Volumes/android/eos/kernel/moto/shamu/tools/include/tools/be_byteshift.h:4:10: fatal error: 'linux/types.h'
file not found
#include <linux/types.h>
^
1 error generated.

It seems like mac os x doesn't have types.h headers that linux does. Hammerhead compiles just fine, but shamu....she no wanna compile inline.
This is related to your toolchain and the 'include' files, or your NDK sysroot if you are using NDK/toolchain. What toolchain are you using to compile?
 

Gandalf

Inactive Recognized Developer / Retired Forum Mode
Mar 29, 2011
3,537
6,668
0
Philadelphia
This is related to your toolchain and the 'include' files, or your NDK sysroot if you are using NDK/toolchain. What toolchain are you using to compile?
He is building in OS X, probably not a toolchain issue. I would assume it's a compiler issue that needs to be fixed with some strange workaround specifically for OS X, since he said hammerhead kernel builds fine.
 

ryanbg

Inactive Recognized Developer
Jan 3, 2008
855
1,734
0
movr0.com
He is building in OS X, probably not a toolchain issue. I would assume it's a compiler issue that needs to be fixed with some strange workaround specifically for OS X, since he said hammerhead kernel builds fine.
Depends on if he is using the prebuilt darwin toolchain, there's some missing data types/ops in the header types.h. I've noticed it's been like that since Android 19 platform.
 
Last edited:

tyea

Senior Member
May 10, 2010
800
159
0
I'm happy using by his kernel. Thanks! I've tried several different kernels, and this seems to keep the phone running fast, reliable, and adequate battery life.