• 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
2,936
634
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
2,936
634
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
 

physwizz

Senior Member
Sep 16, 2013
2,936
634
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