[英]Building Yocto linux image - “bitbake image-full” error
我正在尝试构建Yocto linux映像。 我正在遵循Sergey博客中给出的过程。 解压缩文件:
$ 7z x Board_Support_Package_Sources_for_Intel_Quark_v0.7.5.7z
解压缩meta-clanton_v0.7.5.tar.gz:
$ tar xzvf Board_Support_Package_Sources_for_Intel_Quark_v0.7.5/meta-clanton_v0.7.5.tar.gz
将目录更改为meta-clanton_v0.7.5:
$ cd meta-clanton_v0.7.5
运行setup.sh:
$ ./setup.sh
源poky / oe-init-build-env脚本,为其提供构建目录(yocto_build)作为参数:
$ source poky/oe-init-build-env yocto_build
运行bitbake生成图像:
$ bitbake image-full
但是我收到以下错误:
Traceback (most recent call last):
File "/usr/bin/bitbake", line 275, in <module>
ret = main()
File "/usr/bin/bitbake", line 222, in main
bb.msg.init_msgconfig(configuration.verbose, configuration.debug,
AttributeError: 'module' object has no attribute 'init_msgconfig'
请帮忙。 提前致谢。
我找不到0.7.5版本,所以我已经在1.0.0版本上尝试过。
提取meta-clanton-v1.0.0.tar.gz
cd meta-clanton_v1.0.0
./setup.sh
. poky/oe-init-build-env yocto_build
bitbake image-full -e
在完全运行bitbake image-full
情况下,也可以毫无问题地开始构建。 (不过,我还没有完成。)
我有点担心您的回溯,其中包括"/usr/bin/bitbake"
。 如果您在构建机器上安装了bitbake软件包,请卸载它。 poky-git repo确实包含它自己的bitbake副本,这将确保您使用的bitbake版本与其余的元数据兼容。
(我也建议您更新到最新的meta-clanton版本)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.