How to Upstream Android kernel? My upstreamed Android kernel
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:-
- 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:- - 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 :
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
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]
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
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
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