android kernel网址为https://android.googlesource.com/, 无法直接看代码,需要使用git下载。
1. 先按照http://source.android.com/source/downloading.html 进行repo设置
2. 之后在Linux环境的终端中输入
zwx@zwx-VirtualBox:~/下载$ cd kernel/
zwx@zwx-VirtualBox:~/下载/kernel$ ls
zwx@zwx-VirtualBox:~/下载/kernel$ git clonehttps://android.googlesource.com/kernel/common
如果无法链接网站,将https改为http。
3. git branch -a查看kernel分支,并使用git checkout 命令checkout出想要的分支