How to download the android kernel because the current source code after git on the android website does not include the kernel, You need to download the android kernel separately to generate the used patch. below is how I use it, for your reference, here is a way of extracting raw Android patches at a certain point intime, though this may be datedken @ Ken:/data/Android-kernel $ git clone git: // android.git.kernel.org/kernel/common.git Android-kernelken @ Ken:/data/Android-kernel $ CD Android-kernelken @ Ken:/data/Android/android OId-kernel $ git checkout -- track-B Android-2.6.32 origin/android-2.6.32ken @ Ken:/data/Android-kernel $ git fetch -- tagsgit: // zookeeper log v2.6.32.9 .. headken @ Ken:/data/Android-kernel $ git format-patch v2.6.32.9 .. after the head uses the CMD command, all the patches are under the kernel directory. I personally think this management is not very good. Similarly, you can also play the patchgit checkout android-2.6.29git fetch -- tagsgit: // zookeeper log v2.6.29.6.. headgit format-patch v2.6.29.6.. head