简体   繁体   English

构建Yocto linux映像-“ bitbake映像已满”错误

[英]Building Yocto linux image - “bitbake image-full” error

I am trying to build the Yocto linux image. 我正在尝试构建Yocto linux映像。 I am following the process given in Sergey's Blog. 我正在遵循Sergey博客中给出的过程。 Unzip the file: 解压缩文件:

$ 7z x Board_Support_Package_Sources_for_Intel_Quark_v0.7.5.7z

Unzip meta-clanton_v0.7.5.tar.gz: 解压缩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

Change directory to meta-clanton_v0.7.5: 将目录更改为meta-clanton_v0.7.5:

$ cd meta-clanton_v0.7.5

Run setup.sh: 运行setup.sh:

$ ./setup.sh

Source poky/oe-init-build-env script, giving it the build directory (yocto_build) as a parameter: 源poky / oe-init-build-env脚本,为其提供构建目录(yocto_build)作为参数:

$ source poky/oe-init-build-env yocto_build

Run bitbake to build the image: 运行bitbake生成图像:

$ bitbake image-full

But I am getting the following error: 但是我收到以下错误:

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'

Please help. 请帮忙。 Thanks in advance. 提前致谢。

I couldn't find the 0.7.5 version, so I've tried this on the 1.0.0 version. 我找不到0.7.5版本,所以我已经在1.0.0版本上尝试过。

Extracting meta-clanton-v1.0.0.tar.gz 提取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

Running bitbake image-full does also start the build without any issue. 在完全运行bitbake image-full情况下,也可以毫无问题地开始构建。 (I haven't let it complete though.) (不过,我还没有完成。)

I'm slightly worried about your traceback, which includes "/usr/bin/bitbake" . 我有点担心您的回溯,其中包括"/usr/bin/bitbake" If you have installed a bitbake package on your build-machine, please uninstall it. 如果您在构建机器上安装了bitbake软件包,请卸载它。 The poky-git repo does include it's own copy of bitbake, which will ensure that you're the version of bitbake you're using is compatible with the rest of your meta-data. poky-git repo确实包含它自己的bitbake副本,这将确保您使用的bitbake版本与其余的元数据兼容。

(I'd also suggest updating to the latest meta-clanton release). (我也建议您更新到最新的meta-clanton版本)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM