Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/296.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 构建Yocto linux映像-“;bitbake图像完整“;错误_Python_Linux_Linux Kernel_Yocto_Bitbake - Fatal编程技术网

Python 构建Yocto linux映像-“;bitbake图像完整“;错误

Python 构建Yocto linux映像-“;bitbake图像完整“;错误,python,linux,linux-kernel,yocto,bitbake,Python,Linux,Linux Kernel,Yocto,Bitbake,我正在尝试构建YoctoLinux映像。我正在遵循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-clanto

我正在尝试构建YoctoLinux映像。我正在遵循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'
回溯(最近一次呼叫最后一次):
文件“/usr/bin/bitbake”,第275行,在
ret=main()
文件“/usr/bin/bitbake”,第222行,主
bb.msg.init_msgconfig(configuration.verbose、configuration.debug、,
AttributeError:“模块”对象没有属性“init\u 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版本)。

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