Yocto wic和fitImage的循环依赖性问题+;Initramfs

Yocto wic和fitImage的循环依赖性问题+;Initramfs,yocto,bitbake,Yocto,Bitbake,我试图建立sd卡形象使用wic在Yocto。发现如果我使用bundle initramfs启用fitImage会触发错误。如果我禁用INITRAMFS\u图像,它可以正常工作。如何解决此循环依赖关系问题 ERROR: 1099 unbuildable tasks were found.#####################################################################

我试图建立sd卡形象使用wic在Yocto。发现如果我使用bundle initramfs启用fitImage会触发错误。如果我禁用INITRAMFS\u图像,它可以正常工作。如何解决此循环依赖关系问题

ERROR: 1099 unbuildable tasks were found.#####################################################################                                                                                                                | ETA:  0:00:05
These are usually caused by circular dependencies and any circular dependency chains found will be printed below. Increase the debug level to see a list of unbuildable tasks.
Identifying dependency loops (this may take a short while)...

ERROR: 
Dependency loop #1 found:
  Task /build/zynq/yocto/tiny/sources/core/../meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_assemble_fitimage_initramfs (dependent Tasks ['device-tree.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image_complete', 'linux-xlnx_2018.3.bb:do_bundle_initramfs'])
  Task /build/zynq/yocto/tiny/sources/core/../meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_deploy (dependent Tasks ['linux-xlnx_2018.3.bb:do_assemble_fitimage_initramfs', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-xlnx_2018.3.bb:do_packagedata', 'linux-xlnx_2018.3.bb:do_populate_sysroot', 'linux-xlnx_2018.3.bb:do_bundle_initramfs'])
  Task /build/zynq/yocto/tiny/sources/core/meta/recipes-core/images/core-image-minimal.bb:do_image_wic (dependent Tasks ['fsbl_git.bb:do_deploy', 'mtools_4.0.18.bb:do_populate_sysroot', 'bitstream-extraction_git.bb:do_deploy', 'gptfdisk_1.0.3.bb:do_populate_sysroot', 'device-tree.bb:do_deploy', 'u-boot-zynq-uenv.bb:do_deploy', 'core-image-minimal.bb:do_image', 'core-image-minimal.bb:do_rootfs_wicenv', 'u-boot-xlnx_2018.3.bb:do_deploy', 'external-hdf.bb:do_deploy', 'linux-xlnx_2018.3.bb:do_deploy', 'dosfstools_4.1.bb:do_populate_sysroot', 'parted_3.2.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_deploy'])
  Task /build/zynq/yocto/tiny/sources/core/meta/recipes-core/images/core-image-minimal.bb:do_image_complete (dependent Tasks ['u-boot-xlnx_2018.3.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image_cpio', 'core-image-minimal.bb:do_image_wic', 'u-boot-zynq-uenv.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image'])

Dependency loop #2 found:
  Task /build/zynq/yocto/tiny/sources/core/../meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_assemble_fitimage_initramfs (dependent Tasks ['device-tree.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image_complete', 'linux-xlnx_2018.3.bb:do_bundle_initramfs'])
  Task /build/zynq/yocto/tiny/sources/core/../meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_deploy (dependent Tasks ['linux-xlnx_2018.3.bb:do_assemble_fitimage_initramfs', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-xlnx_2018.3.bb:do_packagedata', 'linux-xlnx_2018.3.bb:do_populate_sysroot', 'linux-xlnx_2018.3.bb:do_bundle_initramfs'])
  Task /build/zynq/yocto/tiny/sources/core/meta/recipes-core/images/core-image-minimal.bb:do_image_wic (dependent Tasks ['fsbl_git.bb:do_deploy', 'mtools_4.0.18.bb:do_populate_sysroot', 'bitstream-extraction_git.bb:do_deploy', 'gptfdisk_1.0.3.bb:do_populate_sysroot', 'device-tree.bb:do_deploy', 'u-boot-zynq-uenv.bb:do_deploy', 'core-image-minimal.bb:do_image', 'core-image-minimal.bb:do_rootfs_wicenv', 'u-boot-xlnx_2018.3.bb:do_deploy', 'external-hdf.bb:do_deploy', 'linux-xlnx_2018.3.bb:do_deploy', 'dosfstools_4.1.bb:do_populate_sysroot', 'parted_3.2.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_deploy'])
  Task /build/zynq/yocto/tiny/sources/core/meta/recipes-core/images/core-image-minimal.bb:do_image_complete (dependent Tasks ['u-boot-xlnx_2018.3.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image_cpio', 'core-image-minimal.bb:do_image_wic', 'u-boot-zynq-uenv.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image'])
  Task /build/zynq/yocto/tiny/sources/core/../meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_bundle_initramfs (dependent Tasks ['linux-xlnx_2018.3.bb:do_install', 'core-image-minimal.bb:do_image_complete'])

Dependency loop #3 found:
  Task /build/zynq/yocto/tiny/sources/core/../meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_bundle_initramfs (dependent Tasks ['linux-xlnx_2018.3.bb:do_install', 'core-image-minimal.bb:do_image_complete'])
  Task /build/zynq/yocto/tiny/sources/core/../meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_deploy (dependent Tasks ['linux-xlnx_2018.3.bb:do_assemble_fitimage_initramfs', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-xlnx_2018.3.bb:do_packagedata', 'linux-xlnx_2018.3.bb:do_populate_sysroot', 'linux-xlnx_2018.3.bb:do_bundle_initramfs'])
  Task /build/zynq/yocto/tiny/sources/core/meta/recipes-core/images/core-image-minimal.bb:do_image_wic (dependent Tasks ['fsbl_git.bb:do_deploy', 'mtools_4.0.18.bb:do_populate_sysroot', 'bitstream-extraction_git.bb:do_deploy', 'gptfdisk_1.0.3.bb:do_populate_sysroot', 'device-tree.bb:do_deploy', 'u-boot-zynq-uenv.bb:do_deploy', 'core-image-minimal.bb:do_image', 'core-image-minimal.bb:do_rootfs_wicenv', 'u-boot-xlnx_2018.3.bb:do_deploy', 'external-hdf.bb:do_deploy', 'linux-xlnx_2018.3.bb:do_deploy', 'dosfstools_4.1.bb:do_populate_sysroot', 'parted_3.2.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_deploy'])
  Task /build/zynq/yocto/tiny/sources/core/meta/recipes-core/images/core-image-minimal.bb:do_image_complete (dependent Tasks ['u-boot-xlnx_2018.3.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image_cpio', 'core-image-minimal.bb:do_image_wic', 'u-boot-zynq-uenv.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image'])

在initramfs图像配方(在
initramfs\u image
中指定的配方)中,将
wic
作为
image\u FSTYPE
删除。这应该只为initramfs映像删除它,并允许主映像仍然构建wic映像

IMAGE_FSTYPES_remove = " wic wic.gz"

我使用自定义映像类型bbclass来处理这种配置,我没有为此使用内核fitimage。这是一种方法,但我更喜欢使用尽可能多的标准yocto特性。