FORUMS
Remove All Ads from XDA

[REFERENCE] Pixel 2 kernel source with linux-stable (4.4.138)

13,103 posts
Thanks Meter: 45,772
 
By nathanchance, Recognized Developer / Recognized Contributor on 29th November 2017, 12:50 PM
Post Reply Email Thread
Introduction

Hello everyone, this is a thread to introduce both users and kernel developers to the concept of linux-stable as well as give developers some tips and a tree to either merge into their own, use as a base, or just as a reference. Feel free to ask questions and enjoy!


What is it?

linux-stable is, as the name implies, the stable branch of the Linux kernel, the base of Android. The phone could not run without the Linux kernel (at least not without reworking a lot of stuff). The Android kernels are based on the longterm stable trees:
Quote:

Longterm

There are usually several "longterm maintenance" kernel releases provided for the purposes of backporting bugfixes for older kernel trees. Only important bugfixes are applied to such kernels and they don't usually see very frequent releases, especially for older trees.

Source: https://www.kernel.org/category/releases.html

All Linux development happens on the master branch, which is governed by Linus Torvalds. When issues are discovered there, the fixes are applied then backported to these various stable trees for consumption. It is not uncommon for a fix to need to go back a few years.

There is a LOT more information available in the notes repo in the android-linux-stable organization if you care to learn more in-depth: https://github.com/android-linux-stable/notes


What does this mean for me?

If you are a developer, this means you should be merging these changes into your own tree. These are vetted, stable fixes to real world problems and they are being handed out for free. It does not take long to get up to date (as you can just merge this tree directly into your own or do it yourself using the tree as a reference) and once you are up to date, there is usually a release once every two weeks, give or take. I provide a rebuttal to a lot of various complaints here. If you still feel like there is a good reason not to do this, please let me know, I'll be happy to try and debate on it!

If you are a user, it means that you should be looking for and using kernels that have these fixes, as it shows the developers care for your security and stability. The current version for this device is 4.4.88 and the current version upstream is 4.4.138 so all you need to do is go into Settings > About phone and look at the kernel version to know if you are up to date.


How do I use?

If you are a developer, the reference tree is located in the android-linux-stable organization: https://github.com/android-linux-stable/wahoo

This can either be merged into your existing kernel tree if you have one or be used as a fresh base. You do not need my permission to use it nor do you need to give me credit (although it would be appreciated).

If you are a user, use a kernel that has the changes added in!


Getting notified about updates

There are a few ways to get notified of linux-stable updates:

Getting help

If you have any issues with getting these changes into your tree or want to ask a question, there are a few different ways to do it:
  • Post in this thread
  • Join the linux-stable support chat on Telegram: https://t.me/joinchat/C1UAJ1EMSX31PCFdwLnOSg
  • File an issue either in the android-linux-stable notes repo or the android-linux-stable repo for this device

When requesting help, please give some solid details as to what you are struggling with, as I am happy to provide assistant and clarity but not to do something for you (unless I screwed up).
The Following 9 Users Say Thank You to nathanchance For This Useful Post: [ View ]
 
 
30th November 2017, 03:07 PM |#2  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 45,772
 
More
4.4.103 has been merged in.
The Following 3 Users Say Thank You to nathanchance For This Useful Post: [ View ]
30th November 2017, 05:05 PM |#3  
Telperion's Avatar
Senior Member
Thanks Meter: 277
 
More
This is my first Nexus / Pixel (VZW Galaxy Nexus I don't count), how soon does Google typically release the kernel source for the DP's? Only after the official software release?

I'm torn between stable + your kernel and DP + stock kernel.
30th November 2017, 05:32 PM |#4  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 45,772
 
More
Quote:
Originally Posted by Telperion

This is my first Nexus / Pixel (VZW Galaxy Nexus I don't count), how soon does Google typically release the kernel source for the DP's? Only after the official software release?

I'm torn between stable + your kernel and DP + stock kernel.

It depends. Longer DPs like the initial release of a new major number (7.0, 8.0, etc) typically get kernel source within a month of the new DP version dropping. Smaller DPs usually don't get source until release (7.1 is the only other small DP that has ever happened so not much history).
2nd December 2017, 02:50 PM |#6  
luizffgarcia's Avatar
Senior Member
Flag Toronto
Thanks Meter: 113
 
More
I dont mean to go too offtopic here, but does that apply to the android source codes too? I meam does it usualy take that long for them to release the sources? I am guessing we still dont have any custom roms because the sources were not released by google yet?
5th December 2017, 12:19 PM |#7  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 45,772
 
More
4.4.104 has been merged in, with conflict notes updated accordingly.
The Following 4 Users Say Thank You to nathanchance For This Useful Post: [ View ]
10th December 2017, 01:34 AM |#8  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 45,772
 
More
The repo location has changed (new link is in the OP).

Additionally, an 8.1 branch has been created. Google went from 4.4.56 to 4.4.88 so the branch was redone to avoid conflicts and go with Google's resolution. The notes have been updated as well. Happy kerneling!
The Following 4 Users Say Thank You to nathanchance For This Useful Post: [ View ]
25th December 2017, 03:42 PM |#11  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 45,772
 
More
4.4.108 has been merged in.
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