为什么我可以构建Yocto图像? BitBake错误[ERRNO2]

发布于 2025-02-13 20:06:16 字数 1191 浏览 4 评论 0原文

我尝试构建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

在此处输入图像描述

i try to build rpi image, but get this mistake.

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

緦唸λ蓇 2025-02-20 20:06:16

我以前遇到了同样的错误,现在我发现解决方案

要注意
“ root/rpi-build/conf/bblayers.conf”。

缩进线路

BBLAYERS ?= " \
  ${BSPDIR}/sources/meta-raspberrypi \
  ${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 \
  "

您必须与Linux字符的双重空间

I got previously the same error, now I found a solution

Pay attention into
"root/rpi-build/conf/bblayers.conf".

You have to indent the line

BBLAYERS ?= " \
  ${BSPDIR}/sources/meta-raspberrypi \
  ${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 \
  "

With double space of linux character

把时间冻结 2025-02-20 20:06:16

我也遇到了同样的错误,我找到了一个解决方案。
当您是config“ bblayers.conf”文件时,您必须键入准确的类路径。
例如:../ meta -arm->错误并弄错了“错误:追溯(最新通话最后):......”
../meta-arm/meta-arm-->真的
因为元臂层由元臂,meta-arm-bsp组成,...

I also got the same error, I found a solution.
When you are config "bblayers.conf" file.You must type path of class accurate.
e.g: ../meta-arm -> wrong and get mistake "ERROR: Traceback (most recent call last): ......"
../meta-arm/meta-arm -> true
because meta-arm layer consist of meta-arm, meta-arm-bsp ,...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文