我使用的是 Ubuntu 16.04 LTS,最初我下载了 Yocto Project 并设置了它的环境
$ git clone -b rocko git://git.yoctoproject.org/poky.git
然后为 Banana Pi M1+ (meta-sunxi) 下载了元层
$ git clone https://github.com/linux-sunxi/meta-sunxi`
并在 yoctoproject 中添加了 meta 层,同样在 local.conf 中设置
MACHINE ?= "bananapi"
DL_DIR ?= "${TOPDIR}/../downloads"
SSTATE_DIR ?= "${TOPDIR}/../sstate-cache/${MACHINE}"
在构建图像文件时,它显示以下错误
日志:
$ bitbake -k core-image-minimal`
ERROR: Task (/home/uroborostech3/poky/meta-sunxi/recipes-bsp/u-boot/u-boot_2017.11.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2415 tasks of which 2414 didn't need to be rerun and 1 failed.
Summary: 1 task failed: /home/uroborostech3/poky/meta-sunxi/recipes-bsp/u-boot/u-boot_2017.11.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
我试过了
$ bitbake u-boot -c cleanall
和
$ bitbake u-boot -c compile
但错误没有变化。
群创香蕉派M1+而不是meta sunxi还需要添加其他层吗?如何正确配置和编译 Banana Pi m1+ 的镜像?