-
获取内核源码,https://github.com/raspberrypi。
选着linux工程代码,https://github.com/raspberrypi/linux,版本分支选择rpi-4.14.y
如果已经有内核配置文件则不需要此步骤。
在当前运行系统中执行如下命令可以获取config.gz配置文件,
pi@raspberrypi:~$ sudo modprobe configs
pi@raspberrypi:~$ ls /proc/con*
/proc/config.gz /proc/consoles
pi@raspberrypi:~$ zcat /proc/config.gz > board.config
将获得的内核配置文件取出,用作rpi-4.14.y的配置文件。
确认交叉编译工具链,可以从github取得,https://github.com/raspberrypi/tools。
本文档使用的交叉编译工具:tools