mkimage command not found

转载:http://blog.csdn.net/armeasy/article/details/6217621

 

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

posted @ 2014-01-24 18:39  摩斯电码  阅读(1271)  评论(0编辑  收藏  举报