现在的位置: 首页 > 技术文章 > Bootloader > 正文

mkimage” command not found – U-Boot images will not be buil

2014年08月10日 Bootloader ⁄ 共 607字 ⁄ 字号 mkimage” command not found – U-Boot images will not be buil已关闭评论 ⁄ 阅读 1,039 次

"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.5/tools
这样就能直接引用mkimage 命令。

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

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

(CROSS_COMPILE = #arm-none-linux-gnueabi- 经测试也可以)
make distclean
make at91sam9260ek_config
make

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

#cp mkimage /usr/bin/mkimage

 

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

#apt-get install uboot-mkimage

简单来说 就是把uboot/tools目录下有mkimage这个工具考到/usr/bin下就行了:

×