【问题标题】:Building Yocto linux image - "bitbake image-full" error构建 Yocto linux 映像 - “bitbake image-full”错误
【发布时间】:2015-06-04 07:47:24
【问题描述】:

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

请帮忙。 提前致谢。

【问题讨论】:

  • 我不知道您为什么需要完整的 Yocto 映像,但如果您不需要它,您可以为 Intel Quark 构建自己的内核,例如,Buildroot 可以帮助您使用根文件系统.

标签: python linux linux-kernel yocto bitbake


【解决方案1】:

我找不到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 存储库确实包含它自己的 bitbake 副本,这将确保您使用的 bitbake 版本与您的其他元数据兼容。

(我还建议更新到最新的 meta-clanton 版本)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-08-23
    • 2021-11-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-02
    相关资源
    最近更新 更多