2

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

请帮忙。提前致谢。

4

1 回答 1

2

我找不到 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 版本)。

于 2015-03-31T07:39:58.760 回答