根据官方文档 https://www.raspberrypi.org/documentation/linux/kernel/building.md
步骤如下(这里只说交叉编译,因为在配置高的机器上编译效率高):
1) 下载 kernel 的 source
$ git clone --depth=1 https://github.com/raspberrypi/linux
如何知道kernel 的当前版本,两个方法
a) make kernelversion
b) head Makefile
2) 配置kernel