参照《完全开发手册-从零移植篇》,使用 buildroot 按照文档修改配置选项编译 Linux 内核发生了报错,请教大家是哪个步骤出现了问题吗?(前面的步骤都得到了正确的结果,包括默认配置生成 sdcard.img 和u-boot-dtb.imx)
报错内容:
tiansong@tiansong-virtual-machine:~/buildroot-2022.02.4$ make linux-rebuild
rm -f /home/tiansong/buildroot-2022.02.4/output/build/linux-05967a3aaba135f40eee6eaf14ced11c090d32c1/.stamp_ins
rm -f /home/tiansong/buildroot-2022.02.4/output/build/linux-05967a3aaba135f40eee6eaf14ced11c090d32c1/.stamp_sta
rm -f /home/tiansong/buildroot-2022.02.4/output/build/linux-05967a3aaba135f40eee6eaf14ced11c090d32c1/.stamp_tar
rm -f /home/tiansong/buildroot-2022.02.4/output/build/linux-05967a3aaba135f40eee6eaf14ced11c090d32c1/.stamp_ima
rm -f /home/tiansong/buildroot-2022.02.4/output/build/linux-05967a3aaba135f40eee6eaf14ced11c090d32c1/.stamp_hos
rm -f /home/tiansong/buildroot-2022.02.4/output/build/linux-05967a3aaba135f40eee6eaf14ced11c090d32c1/.stamp_bui
>>> linux-headers 05967a3aaba135f40eee6eaf14ced11c090d32c1 Installing to staging directory
(cd /home/tiansong/buildroot-2022.02.4/output/build/linux-headers-05967a3aaba135f40eee6eaf14ced11c090d32c1; PAT:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/tiansong/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnuut/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr headers_install)
INSTALL /home/tiansong/buildroot-2022.02.4/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/includ
if ! support/scripts/check-kernel-headers.sh /home/tiansong/buildroot-2022.02.4/output/build /home/tiansong/b
Incorrect selection of kernel headers: expected 5.14.x, got 5.4.x
make[1]: *** [package/pkg-generic.mk:333: /home/tiansong/buildroot-2022.02.4/output/build/linux-headers-05967a3
make: *** [Makefile:84: _all] Error 2
配置项: