How to Upstream Android kernel? My upstreamed Android kernel

in #utopian-io7 years ago (edited)

What is a linux kernel?

The linux kernel Organization is a California Public Benefit Corporation established in 2002 to distribute the linux kernel & other opensource software to the public without charge. The linux kernel org is maintained by The linux foundation

Why linux kernel is only used in Android Devices?

'Linux kernel is an open source project' which means every one can make enhancements upon the linux kernel. so, Android takes linux kernel as its underlying kernel & makes enhancements to meet mobile o/s requirements . Like better memory optimisation, Ram management & better performance.

So, Now How To Upstream Android Kernel?

For this u had to be familiar with git commands ( https://try.github.io/ ) & how to compile android kernel
Now Figure what kernel version u are using for this check Makefile in ur kernel tree

Then Fetch the kernel from kernel.org

For latest kernel tag & patches check https://www.kernel.org/
Now iam upstreaming my kernel from v3.10.107 to v3.10.108

Now Simply copy paste the commands as follows,

git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git v3.10.108

Now decide if u want to cherry-pick or merge

-Cherry-pick
Pros:-

  1. Easier to rebase
    2)Easier to resolve conflicts as uk what conflit is causng issues
    Cons:-
    1)It takes long time cuz each commit has to be individually picked
    -Merge
    Pros:-
    1)Its faster
    Cons:-
  2. Its difficult to resolve conflicts
    2)Rebasing is difficult
    I would recommend u to do cherry-pick

Now After fetching ,

Cherry-pick

Format:

git cherry-pick <previous_tag>..<next_tag>

example:-

git cherry-pick v3.10.107..v3.10.108

Merge

Format:

git merge <next_tag>

example:-

git merge v3.10.108

Some of my upstream kernel:-
https://github.com/DRohan898/kernel_xiaomi_msm8937

My proof of work - Here is a screenshot of my logged in session in Github :
proof.PNG
image.png

My developer profiles:

XDA-https://forum.xda-developers.com/member.php?u=7668741
YuForums-http://forums.yuplaygod.com/members/rohan.97666/
My Github Profile-https://github.com/DRohan898

References

1)https://www.kernel.org/category/about.html



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Your contribution cannot be approved yet, because it is in the wrong category. The correct category for your post is tutorial. See the Utopian Rules. Please edit your post to use the right category at this link, as shown below:

I see you have a lot of work in that kernel, just your post is not about that :)

You can contact us on Discord.
[utopian-moderator]

Your contribution cannot be approved yet, because it is in the wrong category

Sorry for that i had changed the category to 'tutorial '

It was approved. Sorry for the delay.

[utopian-moderator]

thanks :)

Hey @drohan I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.16
TRX 0.13
JST 0.027
BTC 59149.53
ETH 2749.59
USDT 1.00
SBD 2.29