android编译错误,找不到命令



举个例子:

  UIMAGE  arch/arm/boot/uImage
"mkimage" command not found - U-Boot images will not be built
/home/liwei/share/myandroid/kernel_imx/arch/arm/boot/Makefile:80: recipe for target 'arch/arm/boot/uImage' failed
make[2]: *** [arch/arm/boot/uImage] Error 1
/home/liwei/share/myandroid/kernel_imx/arch/arm/Makefile:307: recipe for target 'uImage' failed
make[1]: *** [uImage] Error 2
make[1]: Leaving directory '/home/liwei/share/myandroid/kernel_imx'
build/core/Makefile:1024: recipe for target 'out/target/product/sabresd_6dq/kernel' failed
make: *** [out/target/product/sabresd_6dq/kernel] Error 2
make: *** 正在等待未完成的任务....


这段编译出错,其中有一句,

"mkimage" command not found

那我们有理由相信这个命令是没有的.(有可能是出错的原因)

那么 我们怎么把这个命令安装上去呢??


处理方法如下:

先安装apt-file命令

sudo apt-get install apt-file


然后查找mkimage这个command

在终端输入 :  apt-file search mkimage

显示如下:

cvsgraph: /usr/share/doc/cvsgraph/examples/mkimage.php
docker.io: /usr/share/docker.io/contrib/mkimage-alpine.sh
docker.io: /usr/share/docker.io/contrib/mkimage-arch-pacman.conf
docker.io: /usr/share/docker.io/contrib/mkimage-arch.sh
docker.io: /usr/share/docker.io/contrib/mkimage-archarm-pacman.conf
docker.io: /usr/share/docker.io/contrib/mkimage-busybox.sh
docker.io: /usr/share/docker.io/contrib/mkimage-crux.sh
docker.io: /usr/share/docker.io/contrib/mkimage-debootstrap.sh
docker.io: /usr/share/docker.io/contrib/mkimage-rinse.sh
docker.io: /usr/share/docker.io/contrib/mkimage-yum.sh
docker.io: /usr/share/docker.io/contrib/mkimage.sh
docker.io: /usr/share/docker.io/contrib/mkimage/.febootstrap-minimize
docker.io: /usr/share/docker.io/contrib/mkimage/busybox-static
docker.io: /usr/share/docker.io/contrib/mkimage/debootstrap
docker.io: /usr/share/docker.io/contrib/mkimage/mageia-urpmi
docker.io: /usr/share/docker.io/contrib/mkimage/rinse
grub-common: /usr/bin/grub-mkimage
grub-common: /usr/share/man/man1/grub-mkimage.1.gz
jigit: /usr/bin/jigit-mkimage
jigit: /usr/share/man/man1/jigit-mkimage.1.gz
lupin-support: /usr/share/lupin-support/grub-mkimage
opennebula: /usr/lib/one/remotes/tm/dummy/mkimage
opennebula: /usr/lib/one/remotes/tm/qcow2/mkimage
opennebula: /usr/lib/one/remotes/tm/shared/mkimage
opennebula: /usr/lib/one/remotes/tm/ssh/mkimage
opennebula: /usr/lib/one/remotes/tm/vmfs/mkimage
python-freevo: /usr/lib/python2.7/dist-packages/freevo/helpers/mkimagemrss.py
python-freevo: /usr/share/pyshared/freevo/helpers/mkimagemrss.py
u-boot-tools: /usr/bin/mkimage
u-boot-tools: /usr/share/man/man1/mkimage.1.gz


注意其中粗体的部分: u-boot-tools:/usr/bin/mkimage

说明mkimage这个命令是在u-boot-tools这个包里面的.

所以安装这个包即可.


命令如下:

sudo apt-get install u-boot-tools

这样就可以了.



发布了101 篇原创文章 · 获赞 23 · 访问量 27万+
展开阅读全文

recipe for target 'prepare0' failed

05-26

``` PHONY += prepare archprepare prepare0 prepare1 prepare2 prepare3 prepare3 is used to check if we are building in a separate output directory,_ and if so do: 1) Check that make has not been executed in the kernel src $(srctree) 2) Create the include2 directory, used for the second asm symlink**______** **prepare3: include/config/kernel.release ifneq ($(KBUILD_SRC),)******** @echo ' Using $(srctree) as source for kernel' $(Q)if [ -f $(srctree)/.config -o -d $(srctree)/include/config ]; then \ echo " $(srctree) is not clean, please run 'make mrproper'";\ echo " in the '$(srctree)' directory.";\ /bin/false; \ fi; $(Q)if [ ! -d include2 ]; then \ mkdir -p include2; \ ln -fsn $(srctree)/include/asm-$(SRCARCH) include2/asm; \ fi endif # prepare2 creates a makefile if using a separate output directory prepare2: prepare3 outputmakefile prepare1: prepare2 include/linux/version.h include/linux/utsrelease.h \ include/asm include/config/auto.conf $(cmd_crmodverdir) archprepare: prepare1 scripts_basic prepare0: archprepare FORCE $(Q)$(MAKE) $(build)=. $(Q)$(MAKE) $(build)=. missing-syscalls # All the preparing.. # ## prepare: prepare0 # Leave this as default for preprocessing vmlinux.lds.S, which is now # done in arch/$(ARCH)/kernel/Makefile export CPPFLAGS_vmlinux.lds += -P -C -U$(ARCH) # The asm symlink changes when $(ARCH) changes. # Detect this and ask user to run make mrproper # If asm is a stale symlink (point to dir that does not exist) remove it** ``` 求助大神们 有人能告诉我怎么改正prepare0那的错误吗 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览