[7]_编译内核错误提示2:recipe for target 'kernel/timeconst.h' failed 和 "mkimage" command not found - U-Boot

----------------------------------------------------------------编译内核出现的错误------------------------------------------------------------------------------

10. 感觉就要成功了,执行 make -j4 uImage 后出现:(说实在,还是第一次遇到这个问题)

[7]_编译内核错误提示2:recipe for target 'kernel/timeconst.h' failed 和

11. 查找资料后发现:因为在新版本的(Linux) 上编译老版本的内核版本出现的错误(新版主机linux内核是4.10,被编译版本的内核是3.0的,好像是这么回事!),解决办法是:将kernel/timeconst.pl中第373行的defined()去掉,去掉后如下:

[7]_编译内核错误提示2:recipe for target 'kernel/timeconst.h' failed 和

12. 执行make -j4 zImage , 再次出现问题:"mkimage" command not found - U-Boot images will not be built

13. 查资料,是因为主机中制作uImage镜像依赖的一个包没安装,执行:sudo apt-get install u-boot-tools

14. 再次执行:make -j4 uImage ,成功编译!!

[7]_编译内核错误提示2:recipe for target 'kernel/timeconst.h' failed 和


--------------------------------------------------------------------------------------------------------------------------------------------------------

15.补充:查看主机内核版本的命令:uname -a


16. 补充:查看被编译的内核源码:vi Makefile

[7]_编译内核错误提示2:recipe for target 'kernel/timeconst.h' failed 和


你可能感兴趣的:(Hisilicon,Hi35xx,Notes)