目录
环境:
- x64
- manjaro-gnome 18.1.4 OS kernel 5.4.2-1
- gcc 9.2
编译内核
编译4.19.24版本的内核
先从中科大源下载linux源码(科大镜像站搜kernel)
cd ~/code/linux/linux-4.19.24
make menuconfig
#错误1:未找到 bison 解决:sudo pacman -S bison
#错误2:未找到 flex 解决:sudo pacman -S flex
#在弹出的图形化设置里,开启以下调试参数
Kernel hacking --->
Compile-time checks and compiler options --->
[*] Compile the ke