欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

i.MX6 Yocto 单独编译 uboot 报错

程序员文章站 2022-04-28 07:56:18
...

i.MX6 单独编译 uboot 我使用的是

[email protected]-virtual-machine:/opt/yocto/fsl-release-bsp/build-mini$ bitbake -c compile -f -v u-boot-imx

但是在编译过程中出现如下报错

ERROR: u-boot-imx-2016.03-r0 do_compile: oe_runmake failed
ERROR: u-boot-imx-2016.03-r0 do_compile: Function failed: do_compile (log file is located at /opt/yocto/fsl-release-bsp/build-mini/tmp/work/imx6sxsabresd-poky-linux-gnueabi/u-boot-imx/2016.03-r0/temp/log.do_compile.26242)
ERROR: Logfile of failure stored in: /opt/yocto/fsl-release-bsp/build-mini/tmp/work/imx6sxsabresd-poky-linux-gnueabi/u-boot-imx/2016.03-r0/temp/log.do_compile.26242

ERROR: Task 4 (/opt/yocto/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2016.03.bb, do_compile) failed with exit code '1'

由于一开始编译时可以成功的,且编译中途有终止过,所以怀疑是需要清除编译过程中产生的中间文件
使用如下指令清除中间文件

make mrproper

再继续编译

bitbake -c compile -f -v u-boot-imx

部署内核镜像到deploy目录

bitbake -c deploy -f -v u-boot-imx

编译成功如下显示

NOTE: Tasks Summary: Attempted 234 tasks of which 233 didn't need to be rerun and all succeeded.