Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.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
通过.wks文件的多个rootfs在yocto中失败_Yocto - Fatal编程技术网

通过.wks文件的多个rootfs在yocto中失败

通过.wks文件的多个rootfs在yocto中失败,yocto,Yocto,我正在为我的机器生成两个rootf。一个用于核心图像sato,另一个用于swupdate image。我正试图将这两个rootf保持在两个不同的分区上,如下所述(directdisk.wks): 通过执行wic create directdisk-e core image sato--rootfs dir rootfs1=tmp/work/panther1 poky linux/core image sato/1.0-r0/rootfs--rootfs dir rootfs2=tmp/work/

我正在为我的机器生成两个rootf。一个用于
核心图像sato
,另一个用于
swupdate image
。我正试图将这两个rootf保持在两个不同的分区上,如下所述(
directdisk.wks
):

通过执行
wic create directdisk-e core image sato--rootfs dir rootfs1=tmp/work/panther1 poky linux/core image sato/1.0-r0/rootfs--rootfs dir rootfs2=tmp/work/panther1 poky linux/swupdate image/1.0-r0/rootfs命令,我能够用两个rootfs生成sato映像

但是,当我在directdisk.wks
中将
--rootfs dir rootfs1=tmp/work/panther1 poky linux/core image sato/1.0-r0/rootfs
--rootfs dir=rootfs2
替换为
--rootfs dir rootfs2=tmp/work/panther1 poky linux/swupdate image/1.0-r0/rootfs
时,我面临编译问题

为什么它使用命令而不使用.wks文件

错误日志

| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_wic
| INFO: Creating image(s)...
| 
| Couldn't get bitbake variable from /home/panther2/warrior/build_panther1/tmp/sysroots/panther1/imgdata/rootfs1=tmp/work/panther1-poky-linux/core-image-sato/1.0-r0/rootfs.env.
| File /home/panther2/warrior/build_panther1/tmp/sysroots/panther1/imgdata/rootfs1=tmp/work/panther1-poky-linux/core-image-sato/1.0-r0/rootfs.env doesn't exist.
| Traceback (most recent call last):
|   File "/home/panther2/warrior/sources/poky/scripts/wic", line 520, in <module>
|     sys.exit(main(sys.argv[1:]))
|   File "/home/panther2/warrior/sources/poky/scripts/wic", line 515, in main
|     return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/help.py", line 83, in invoke_subcommand
|     subcmd[0](args, usage)
|   File "/home/panther2/warrior/sources/poky/scripts/wic", line 220, in wic_create_subcommand
|     native_sysroot, options)
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/engine.py", line 188, in wic_create
|     plugin.do_create()
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 86, in do_create
|     self.create()
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 196, in create
|     self._image.prepare(self)
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 362, in prepare
|     imager.kernel_dir, imager.native_sysroot)
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/partition.py", line 173, in prepare
|     kernel_dir, rootfs_dir, native_sysroot)
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/source/rootfs.py", line 70, in do_prepare_partition
|     part.rootfs_dir = cls.__get_rootfs_dir(rootfs_dir)
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/source/rootfs.py", line 40, in __get_rootfs_dir
|     if not os.path.isdir(image_rootfs_dir):
|   File "/home/panther2/warrior/build_panther1/tmp/work/panther1-poky-linux/core-image-sato/1.0-r0/recipe-sysroot-native/usr/lib/python3.7/genericpath.py", line 42, in isdir
|     st = os.stat(s)
| TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_wic (log file is located at /home/panther2/warrior/build_panther1/tmp/work/panther1-poky-linux/core-image-sato/1.0-r0/temp/log.do_image_wic.94498)
ERROR: Task (/home/panther2/warrior/sources/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 9173 tasks of which 9161 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /home/panther2/warrior/sources/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_wic
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
|调试:Python函数extend_recipe_sysroot已完成
|调试:执行shell函数do_image_wic
|信息:正在创建图像。。。
| 
|无法从/home/panther2/warrior/build_panther1/tmp/sysroot/panther1/imgdata/rootfs1=tmp/work/panther1 poky linux/core image sato/1.0-r0/rootfs.env获取bitbake变量。
|文件/home/panther2/warrior/build_panther1/tmp/sysroot/panther1/imgdata/rootfs1=tmp/work/panther1 poky linux/core image sato/1.0-r0/rootfs.env不存在。
|回溯(最近一次呼叫最后一次):
|文件“/home/panther2/warrior/sources/poky/scripts/wic”,第520行,在
|系统出口(主(系统argv[1:]))
|文件“/home/panther2/warrior/sources/poky/scripts/wic”,主文件第515行
|返回hlp.invoke_子命令(args、解析器、hlp.wic_help_用法、子命令)
|文件“/home/panther2/warrior/sources/poky/scripts/lib/wic/help.py”,第83行,在invoke_子命令中
|subcmd[0](参数,用法)
|wic_create_子命令中的文件“/home/panther2/warrior/sources/poky/scripts/wic”,第220行
|本机(系统根,选项)
|文件“/home/panther2/warrior/sources/poky/scripts/lib/wic/engine.py”,wic_create中的第188行
|plugin.do_create()
|文件“/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/imager/direct.py”,第86行,在do_create中
|self.create()
|文件“/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/imager/direct.py”,第196行,在create中
|self.\u图像准备(self)
|文件“/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/imager/direct.py”,第362行,在prepare中
|imager.kernel\u dir,imager.native\u sysroot)
|文件“/home/panther2/warrior/sources/poky/scripts/lib/wic/partition.py”,第173行,在prepare中
|内核(根目录、根目录、本机系统根目录)
|文件“/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/source/rootfs.py”,第70行,在do\u prepare\u分区中
|part.rootfs\u dir=cls.\u获取\u rootfs\u dir(rootfs\u dir)
|文件“/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/source/rootfs.py”,第40行,在
|如果不是os.path.isdir(image\u rootfs\u dir):
|isdir中的第42行文件“/home/panther2/warrior/build_panther1/tmp/work/panther1 poky linux/core image sato/1.0-r0/recipe sysroot native/usr/lib/python3.7/genericpath.py”
|st=操作系统状态(s)
|TypeError:stat:path应该是字符串、字节、os.PathLike或整数,而不是非非类型
|警告:从shell命令中退出代码1。
|错误:函数失败:do_image_wic(日志文件位于/home/panther2/warrior/build_panther1/tmp/work/panther1 poky linux/core image sato/1.0-r0/temp/log.do_image_wic.94498)
错误:任务(/home/panther2/warrior/sources/poky/meta/recipes sato/images/core image sato.bb:do_image_wic)失败,退出代码为“1”
注意:任务摘要:尝试了9173项任务,其中9161项不需要重新运行,1项失败。
注:编写构建历史
摘要:1任务失败:
/home/panther2/warrior/sources/poky/meta/recipes sato/images/core image sato.bb:do_image_wic
摘要:显示1条错误消息,返回非零退出代码。

我们可以有一些“编译问题”的日志吗?@Ninic0c0编辑了带有错误日志的问题。。很抱歉,回复延迟了很长时间。
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_wic
| INFO: Creating image(s)...
| 
| Couldn't get bitbake variable from /home/panther2/warrior/build_panther1/tmp/sysroots/panther1/imgdata/rootfs1=tmp/work/panther1-poky-linux/core-image-sato/1.0-r0/rootfs.env.
| File /home/panther2/warrior/build_panther1/tmp/sysroots/panther1/imgdata/rootfs1=tmp/work/panther1-poky-linux/core-image-sato/1.0-r0/rootfs.env doesn't exist.
| Traceback (most recent call last):
|   File "/home/panther2/warrior/sources/poky/scripts/wic", line 520, in <module>
|     sys.exit(main(sys.argv[1:]))
|   File "/home/panther2/warrior/sources/poky/scripts/wic", line 515, in main
|     return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/help.py", line 83, in invoke_subcommand
|     subcmd[0](args, usage)
|   File "/home/panther2/warrior/sources/poky/scripts/wic", line 220, in wic_create_subcommand
|     native_sysroot, options)
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/engine.py", line 188, in wic_create
|     plugin.do_create()
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 86, in do_create
|     self.create()
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 196, in create
|     self._image.prepare(self)
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 362, in prepare
|     imager.kernel_dir, imager.native_sysroot)
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/partition.py", line 173, in prepare
|     kernel_dir, rootfs_dir, native_sysroot)
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/source/rootfs.py", line 70, in do_prepare_partition
|     part.rootfs_dir = cls.__get_rootfs_dir(rootfs_dir)
|   File "/home/panther2/warrior/sources/poky/scripts/lib/wic/plugins/source/rootfs.py", line 40, in __get_rootfs_dir
|     if not os.path.isdir(image_rootfs_dir):
|   File "/home/panther2/warrior/build_panther1/tmp/work/panther1-poky-linux/core-image-sato/1.0-r0/recipe-sysroot-native/usr/lib/python3.7/genericpath.py", line 42, in isdir
|     st = os.stat(s)
| TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_wic (log file is located at /home/panther2/warrior/build_panther1/tmp/work/panther1-poky-linux/core-image-sato/1.0-r0/temp/log.do_image_wic.94498)
ERROR: Task (/home/panther2/warrior/sources/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 9173 tasks of which 9161 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /home/panther2/warrior/sources/poky/meta/recipes-sato/images/core-image-sato.bb:do_image_wic
Summary: There was 1 ERROR message shown, returning a non-zero exit code.