• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Making my first kernel for the A20

Search This thread

physwizz

Senior Member
Sep 16, 2013
3,148
683
Sydney
Within update


Beginners guide to github


I have always had a lot of difficulty with github.

I have jotted down a few things which might help some new kernel builders.


A. Github Setup

1. Go to github and Open a new Repo
I called mine "physwizz_kernel"


2. To set up SSH key

$ git config --global user.email "[email protected]"
$ git config --global user.name "Your Github Name"

$ ssh-keygen -t rsa -b 4096 -C "[email protected]"

Press enter 3 times

$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsa
$ sudo apt-get install xclip
$ xclip -sel clip < ~/.ssh/id_rsa.pub

3. The SSH key will be in clipboard
Go to github settings => SSH and GPG keys
Paste key here

B. Using github

1. Open Terminal In The Kernel Folder

$ git init
$ git remote add origin (github id) mine is [email protected]:physwizz/physwizz_kernel.git
$ touch README
$ git add README
$ git add --all
$ git commit -m "Initial commit"
$ git push -u origin main

To cherry pick a commit from another github repository

firstly add the other repository to your kernel
$ git remote add other https:<other address>
$ git cherry-pick [hash_id]

to push changes to github

$ make clean && make mrproper
$ git add --all

if the change is your own
$ sudo git commit -a

write comment
ctrl o (to output)
enter
ctrl x (to exit)

then
$ git push origin main

if the change is a cherry pick
$ git commit "change made" --author="Author's name<author's email>"

then
$ git push origin main

If it doesn't work or if you want to try something else

$ git revert <commit hash code>
$ git push origin main

Or
$ git reset --hard < last clean commit hash >
$ git push origin main -f
$ git cherry pick <clean commits >
$ git push origin main


to edit last commit

$ git commit --amend -e
$ git push origin main

Please give any feedback.
@physwizz
 

sercari

Member
Dec 27, 2018
29
2
Tucuman
Thanks a lot
You are very attentive.

I am trying to compile a kernel that fixes my problem with FMP.
 
Last edited:

physwizz

Senior Member
Sep 16, 2013
3,148
683
Sydney
Thanks a lot
You are very attentive.

I am trying to compile a kernel that fixes my problem with FMP.
Sorry.
I don't really know much about that
 

(Sri Lanka)

Senior Member
Apr 17, 2018
88
18
i build samsung m01 kernel from souce get from samusng open source but no sound and wifi can you help
 

physwizz

Senior Member
Sep 16, 2013
3,148
683
Sydney
A20 Frequencies

BIG(2). LITTLE (6). GPU
(2288) 1690. 1300
2184. 1586. 1200
2080. 1352. 1100
1976. 1248. 845
1872. 1144. 676
1768. 1014. 545
1664. 902. 450
1560. 839. 343
1352. 757
1144. 676
936. 546
728. 449
520. 343
312. 208
208

@physwizz
 

thongass000

Member
Aug 26, 2021
29
2
Hi. I'm new to building custom samsung kernel. Do you know any lines for enabling mtp, audio output recognition and switchable selinux and where should I add it?
Thanks
 

thongass000

Member
Aug 26, 2021
29
2

physwizz

Senior Member
Sep 16, 2013
3,148
683
Sydney
Can you look into my work? i compiled successfully but the phone will bootloop. i don't know how to get the logs. I can upload my final image if you want
This is the original source (I don't want to upload my kernel until it is stable enough): https://github.com/thongass000/android_kernel_samsung_a9y18qlte
EDIT: there are 4 defconfig files and I have merged all of them for the compiler to work
What device are you building?
It's too hard for me to see with only 1 commit
 

thongass000

Member
Aug 26, 2021
29
2
What device are you building?
It's too hard for me to see with only 1 commit
It's Samsung Galaxy A9 2018, generally, what I add is enabling switchable selinux, and disable a few samsung security features following these:
 

physwizz

Senior Member
Sep 16, 2013
3,148
683
Sydney
It's Samsung Galaxy A9 2018, generally, what I add is enabling switchable selinux, and disable a few samsung security features following these:
Does it boot?
 

Top Liked Posts