【问题标题】:Why i can't build yocto image? Bitbake error [errno2]为什么我无法构建 yocto 映像? Bitbake 错误 [errno2]
【发布时间】:2022-08-23 23:13:52
【问题描述】:

我尝试构建 rpi 映像,但出现此错误。

ERROR: Traceback (most recent call last):
  File \"/home/ubuntu14/raspberryPi3/sources/poky/bitbake/lib/bb/cookerdata.py\", line 179, in wrapped
    return func(fn, *args)
  File \"/home/ubuntu14/raspberryPi3/sources/poky/bitbake/lib/bb/cookerdata.py\", line 203, in parse_config_file
    return bb.parse.handle(fn, data, include)
  File \"/home/ubuntu14/raspberryPi3/sources/poky/bitbake/lib/bb/parse/__init__.py\", line 113, in handle
    return h[\'handle\'](fn, data, include)
  File \"/home/ubuntu14/raspberryPi3/sources/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py\", line 124, in handle
    abs_fn = resolve_file(fn, data)
  File \"/home/ubuntu14/raspberryPi3/sources/poky/bitbake/lib/bb/parse/__init__.py\", line 131, in resolve_file
    raise IOError(errno.ENOENT, \"file %s not found in %s\" % (fn, bbpath))
IOError: [Errno 2] file  /conf/layer.conf not found in /home/ubuntu14/raspberryPi3/rpi-build

ERROR: Unable to parse  /conf/layer.conf: [Errno 2] file  /conf/layer.conf not found in /home/ubuntu14/raspberryPi3/rpi-build

enter image description here

  • 你能在125-131之间sn-p代码吗?

标签: raspberry-pi arm raspberry-pi3 yocto bitbake


【解决方案1】:

我得到了同样的错误: “根/rpi-build/conf/local.conf”:

MACHINE ?= "raspberrypi3" PREFERRED_VERSION_linux-raspberrypi = "4.%" DISTRO_FEATURES_remove = "x11 路地" DISTRO_FEATURES_append = " systemd" VIRTUAL-RUNTIME_init_manager = "systemd" ENABLE_UART = "1"

"root/rpi-build/conf/bblayers.conf",

LCONF_VERSION = "6"

BBPATH = "${TOPDIR}"

BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True))

  • '/../..')}" BBFILES ?= "" BBLAYERS ?= " \   ${BSPDIR}/sources/poky/meta \   ${BSPDIR}/sources/poky/meta-poky \ ${BSPDIR}/sources/poky/meta-yocto-bsp \ ${BSPDIR}/sources/meta-openembedded/meta-oe \ ${BSPDIR}/sources/meta-openembedded/meta-multimedia \ ${BSPDIR}/sources/meta-raspberrypi \

也使用教程 https://raspinterest.wordpress.com/2016/11/30/yocto-project-on-raspberry-pi-3/comment-page-1/

不断收到错误。图层文件夹在根/来源

有人知道吗?

【讨论】:

    猜你喜欢
    • 2015-06-04
    • 1970-01-01
    • 2021-11-18
    • 1970-01-01
    • 1970-01-01
    • 2018-01-02
    • 2017-10-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多