"mkimage" command not found

来源:互联网 发布:干程序员帅哥变 编辑:程序博客网 时间:2024/04/28 18:09

UIMAGE  arch/arm/boot/uImage
"mkimage" command not found - U-Boot images will not be built
  Image arch/arm/boot/uImage is ready
cp: 无法获取"arch/arm/boot/uImage" 的文件状态(stat): 没有那个文件或目录

使用make uImage编译生成的内核能由uboot引导,编译时会用到mkimage工具,出现这种错误是因为编译器无法找到mkimage工具,该工具在uboot/tools目录下,以下两种方法可以解决问题:
方法一:在/etc/bashrc的末行加入以下语句:
export PATH:=$PATH:[uboot所在目录]/tools
方法二:将uboot/tools目录下的mkimage文件拷备到交叉编译环境的BIN目录:
cd [uboot所在目录]/tools
cp mkimage /usr/local/arm/3.4.1/bin

如果使用的是Ubuntu可以使用下面的命令安装mkimage:

#apt-get install uboot-mkimage


原创粉丝点击