For developers who develop android drivers or conduct android transplantation and customization, obtaining the android kernel source code is essential.
Unfortunately, google's android.git.kernel.org has been suspended due to a hacker attack and the domain name is moved:
android.googlesource.com
The official website does not provide online kernel browsing, so you can only download kernel and read it again. Obviously, the following method cannot download the desired code again:
Git clone git: // android.git.kernel.org/projects/kernel/common.git/
Select one of the following commands as needed to download the corresponding kernel:
Goldfish is the simulated arm cpu in the simulator.
Msm is Qualcomm's processor
Omap is TI's processor.
$ Git clone https://android.googlesource.com/kernel/common.git
$ Git clone https://android.googlesource.com/kernel/goldfish.git
$ Git clone https://android.googlesource.com/kernel/msm.git
$ Git clone https://android.googlesource.com/kernel/omap.git
$ Git clone https://android.googlesource.com/kernel/samsung.git
$ Git clone https://android.googlesource.com/kernel/tegra.git
We hereby share this with csdn colleagues.
For other instructions, see: http://source.android.com/source/downloading.html
The process for downloading OMAP kernel is as follows:
Ossie @ ossie-desktop :~ /Android $
CD./kernel_omap_ww/
Ossie @ ossie-desktop :~ /Android/kernel_omap_ww $Git clone https://android.googlesource.com/kernel/omap.git
Initialized empty git repository in/home/Ossie/Android/kernel_omap_ww/OMAP/. Git/
Remote: counting objects: 169, done
Remote: counting objects: 2092554, done
Remote: Finding sources: 100% (8436/8436)
Remote: Getting sizes: 100% (1034/1034)
Remote: compressing objects: 100% (506/506)
Grouping objects: 100% (2091981/2091981), 429.91 MIB | 30 kib/s, done.
Remote: Total 2091981 (delta 1750194), reused 2091697 (delta 1750078)
Resolving deltas: 100% (1750441/1750441), done.
Ossie @ ossie-desktop :~ /Android/kernel_omap_ww $Ls-
... OMAP
Ossie @ ossie-desktop :~ /Android/kernel_omap_ww $CD./OMAP/
Ossie @ ossie-desktop :~ /Android/kernel_omap_ww/omap $
Git branch-R
Origin/HEAD-> origin/master
Origin/android-omap-3.0
Origin/android-omap-panda-3.0
Origin/android-omap-tuna-3.0
Origin/android-omap-tuna-3.0-mr0
Origin/linux-omap-3.0
Origin/master
Ossie @ ossie-desktop :~ /Android/kernel_omap_ww/omap $Git checkout origin/android-omap-3.0-B android-omap-3.0
Checking out files: 100% (37532/37532), done.
Branch android-omap-3.0 set up to track remote branch android-omap-3.0 from origin.
Switched to a new branch 'android-omap-3.0'
Ossie @ ossie-desktop :~ /Android/kernel_omap_ww/omap $
Ls
Arch Documentation init lib README sound
Block drivers ipc maintainers reporting-BUGS tools
COPYING firmware Kbuild Makefile samples usr
CREDITS fs Kconfig mm scripts virt
Crypto include kernel net security
Ossie @ ossie-desktop :~ /Android/kernel_omap_ww/omap $
Kernel online reading: Https://www.codeaurora.org/gitweb/quic/la/