参考文档
https://www.raspberrypi.org/documentation/linux/kernel/building.md
代码下载
git clone https://github.com/raspberrypi/linux
64bit image下载
https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2020-08-24/
代码用树莓派自己的,别用ubuntu的,没搞明白代码怎么下载
---------------------- I am splitter ----------------------------
两种方法,一是apt命令,二是ubuntu官网的release
apt 命令
apt-cache search linux-source
jimmy@jimmy-desktop:/usr/local/src$ apt-cache search linux-source
linux-source - Linux kernel source with Ubuntu patches
linux-source-5.8.0 - Linux kernel source for version 5.8.0 with Ubuntu patches
linux-source-5.7.0 - Linux kernel source for version 5.7.0 with Ubuntu patches
sudo apt-get install linux-source-5.8.0
cd /usr/src
release
http://cdimage.ubuntu.com/releases/20.10/release/source/