所有操作均在 root 用户下
-
下载必要的工具环境
apt-get install bc git bison flex libssl-dev make vim git apt-get install libncurses5-dev libncursesw5-dev
-
下载树莓派官方 linux 源码,参考树莓派文档 Linux 内核篇
git clone --depth=1 https://github.com/raspberrypi/linux --branch rpi-6.6.y
-
查看linux源码内核版本,查看Makefile文件前10行。现在版本是 6.6.60;
cd linux $ head -n 10 Makefile # SPDX-License-Identifier: