Download the Android kernel source

I am trying to download the goldfish kernel source code, but no luck.

When I click the following command, I get a 1 GB source code:

git clone https://android.googlesource.com/kernel/common

However, we pressed the following command:

git checkout -t origin/android-goldfish-2.6.29 -b goldfish

tell me:

Fatal error: git repository not found.

Though

git branch -r

also gives me the same error.

+3
source share
2 answers

Well, if you just need the original, but not the local git repository, just take the snapshot you want, i.e. this one .
Similary you can upload any snapshot of the git tree, just pay attention to the link tags at https://android.googlesource.com

+2
source
git clone git://android.git.kernel.org/kernel/common.git

and then

cd common  ==============>>> this is the step u missed.

git branch -a 

git checkout -t  remotes/origin/android-2.6.38 -b mygoldfish2_6_38 

git branch -r 

git checkout -t  origin/android-2.6.35 -b mygoldfish_2_6_35

and then the following command gives:

git branch
  android-2.6.36
  mygoldfish2_6_38
* mygoldfish_2_6_35
+2
source

Source: https://habr.com/ru/post/1795972/


All Articles