编译内核错误:"mkimage" command not found - U-Boot images will not be built解决办法

时间:2021-12-10 19:37:38

ubuntu 14.04 64位系统编译内核时提示如下错误:

In file included from arch/arm/boot/compressed/misc.c:30:
include/asm/arch/uncompress.h:61: warning: conflicting types for built-in function 'putc'
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
UIMAGE arch/arm/boot/uImage
"mkimage" command not found - U-Boot images will not be built//提示"mkimage"这个命令或程序没有被找到
Image arch/arm/boot/uImage is ready

解决办法:
我们需要安装依赖包:
sudo apt-get install uboot-mkimage但此时会产生如下失败:
编译内核错误:"mkimage" command not found - U-Boot images will not be built解决办法
安装”u-boot-tools“即可
sudo apt-get install u-boot-tools
编译内核错误:"mkimage" command not found - U-Boot images will not be built解决办法
安装成功,然后进行内核的编译:
编译内核错误:"mkimage" command not found - U-Boot images will not be built解决办法

编译内核成功!即可在/arch/arm/boot目录中找到uImage。