1. Install git
The android Linux kernel can be selected from the release (portable) version. If git is not commonly used, you can select the portable version.
Download the git of portable, decompress it, and run Git-Bash. A console window is displayed.
2. the android kernel has multiple parts. You can run the following command to download the required content as needed.
Run the following command in the GIT Console window to download the kernel:
$ Git clone https://android.googlesource.com/kernel/common.git // This is the Linux kernel, it can also be git clone slave clone git: // android.git.kernel.org/kernel/common, but now it seems useless.
$ 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
3. Check the corresponding Kernel
Go to the Samsung directory
$ Git branch-A // list all available kernel versions
$ Git checkout remotes/ORIGIN/android-samsung-3.0-ics-mr1 // checkout out the kernel you want to use
If you want to download all android source files, see the http://source.android.com/source/downloading.html for the download method
Supplement: execute the following commands on the terminal for Android installation and development:
Sudo apt-Get install Git-core GnuPG valgrind flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev