100ask_imx6ull_pro 从零移植Linux,构建 linux 报错

参照《完全开发手册-从零移植篇》,使用 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

配置项:

如报错提示所说“Incorrect selection of kernel headers: expected 5.14.x, got 5.4.x”
工具链与Linux内核标识不一致,相关细节搜下网上资料。

另外,请注意帖子要选对相应的板块,这次我手动移了。
发错板块,相应老师看不到,会没人回复。

谢谢老师的及时回复 :melting_face:(刚到新论坛,还不是很熟悉,后面会注意啦)

是老师讲的原因,学到啦,在 buildroot 的配置选项里更改可以啦