为什么我可以构建Yocto图像? BitBake错误[ERRNO2]
我尝试构建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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我以前遇到了同样的错误,现在我发现解决方案
要注意
“ root/rpi-build/conf/bblayers.conf”。
缩进线路
您必须与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
With double space of linux character
我也遇到了同样的错误,我找到了一个解决方案。
当您是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 ,...