"mkimage" command not found - U-Boot images will not be built的解决办法

$make uImage时出现

"mkimage" command not found - U-Boot images will not be built

如果使用make uImage 则能生成由uboot 引导的内核文件, 需要用到uboot/tools/mkimage,可以在/etc/bashrc 文件末加入一下语句:
export PATH:=$PATH:/usr/src/arm/u-boot-1.1.6/tools
这样就能直接引用mkimage 命令。

前提是uboot/tools目录下有mkimage这个工具,需要编译才能生成:

修改Makefile
找到
ifeq($(ARCH),arm)CROSS_COMPILE =
改成
ifeq($(ARCH),arm)
CROSS_COMPILE = arm-softfloat-linux-gnu-

make distclean
make config
make

生成的工具在uboot的tools里面,把这个mkimage考到/usr/bin下就行了:

#cp mkimage /usr/bin/mkimage

或执行命令安装:

#apt-get install uboot-mkimage

posted @ 2012-10-25 10:50  福。oO  阅读(597)  评论(0编辑  收藏  举报