Hello, i am using petalinux 2022.1 and bsp 2022.1 mz 7020.
I am trying to build a project but getting errors. whenever i choose INITRAMFS in the root file system type in the configuration (petalinux-config) and making the build (petalinux-build -c avnet-image-minimal) i am getting dependency loop (i put the log down here). if I change to ext4 it works fine but i need the INITRAMFS to work. please help me fix this.
this is the build.log file, it is the default config (i only changed the root file system type to INITRAMFS):
[INFO] Sourcing buildtools
[INFO] Building avnet-image-minimal
[INFO] Sourcing build environment
SDK environment now set up; additionally you may now run devtool to perform development tasks.
Run devtool --help for further details.
[INFO] Sourcing buildtools
[INFO] Sourcing buildtools
### Shell environment set up for builds. ###
You can now run 'bitbake <target>'
Common targets are:
core-image-minimal
core-image-full-cmdline
core-image-sato
core-image-weston
meta-toolchain
meta-ide-support
You can also run generated qemu images with a command like 'runqemu qemux86-64'.
Other commonly useful commands are:
- 'devtool' and 'recipetool' handle common recipe tasks
- 'bitbake-layers' handles common layer tasks
- 'oe-pkgdata-util' handles common target package tasks
[INFO] Generating workspace directory
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: /home/roman/petalinux_v2/build/cache/prserv.sqlite3, Address: 127.0.0.1:38689, PID: 166651
INFO: Specified workspace already set up, leaving as-is
NOTE: Started PRServer with DBfile: /home/roman/petalinux_v2/build/cache/prserv.sqlite3, Address: 127.0.0.1:44691, PID: 166747
WARNING: No recipes in default available for:
/home/roman/petalinux_v2/project-spec/meta-avnet/recipes-core/packagegroups/packagegroup-petalinux-vitisai.bbappend
NOTE: Resolving any missing task queue dependencies
NOTE: Fetching uninative binary shim file:///home/roman/petalinux_v2/components/yocto/downloads/uninative/126f4f7f6f21084ee140dac3eb4c536b963837826b7c38599db0b512c3377ba2/x86_64-nativesdk-libc-3.4.tar.xz;sha256sum=126f4f7f6f21084ee140dac3eb4c536b963837826b7c38599db0b512c3377ba2 (will check PREMIRRORS first)
ERROR: 3965 unbuildable tasks were found.
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 /home/roman/petalinux_v2/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_complete (dependent Tasks ['u-boot-xlnx_2022.1.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_tar', 'petalinux-image-minimal.bb:do_image_jffs2', 'petalinux-image-minimal.bb:do_image_cpio', 'python3-cython_0.29.24.bb:do_populate_sysroot', 'python3-pyyaml_5.4.1.bb:do_populate_sysroot', 'avnet-boot-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image', 'u-boot-zynq-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_ext4', 'fsbl.bb:do_populate_sysroot', 'libyaml_0.2.5.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_wic'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2022.1.bb:do_bundle_initramfs (dependent Tasks ['linux-xlnx_2022.1.bb:do_install', 'petalinux-image-minimal.bb:do_image_complete'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2022.1.bb:do_deploy (dependent Tasks ['linux-xlnx_2022.1.bb:do_bundle_initramfs', 'linux-xlnx_2022.1.bb:do_uboot_assemble_fitimage', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-xlnx_2022.1.bb:do_populate_sysroot', 'linux-xlnx_2022.1.bb:do_assemble_fitimage_initramfs', 'linux-xlnx_2022.1.bb:do_packagedata', 'pigz_2.6.bb:do_populate_sysroot'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_wic (dependent Tasks ['linux-xlnx_2022.1.bb:do_deploy', 'gptfdisk_1.0.8.bb:do_populate_sysroot', 'mtools_4.0.35.bb:do_populate_sysroot', 'bitstream-extraction_git.bb:do_deploy', 'dosfstools_4.2.bb:do_populate_sysroot', 'fsbl-firmware_2022.1.bb:do_deploy', 'u-boot-xlnx_2022.1.bb:do_deploy', 'petalinux-image-minimal.bb:do_rootfs_wicenv', 'petalinux-image-minimal.bb:do_image', 'parted_3.4.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_deploy', 'fsbl.bb:do_deploy', 'u-boot-zynq-scr.bb:do_deploy', 'external-hdf.bb:do_deploy', 'device-tree.bb:do_deploy'])
Dependency loop #2 found:
Task /home/roman/petalinux_v2/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_complete (dependent Tasks ['u-boot-xlnx_2022.1.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_tar', 'petalinux-image-minimal.bb:do_image_jffs2', 'petalinux-image-minimal.bb:do_image_cpio', 'python3-cython_0.29.24.bb:do_populate_sysroot', 'python3-pyyaml_5.4.1.bb:do_populate_sysroot', 'avnet-boot-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image', 'u-boot-zynq-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_ext4', 'fsbl.bb:do_populate_sysroot', 'libyaml_0.2.5.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_wic'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2022.1.bb:do_bundle_initramfs (dependent Tasks ['linux-xlnx_2022.1.bb:do_install', 'petalinux-image-minimal.bb:do_image_complete'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2022.1.bb:do_kernel_generate_rsa_keys (dependent Tasks ['linux-xlnx_2022.1.bb:do_bundle_initramfs'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2022.1.bb:do_assemble_fitimage_initramfs (dependent Tasks ['linux-xlnx_2022.1.bb:do_bundle_initramfs', 'linux-xlnx_2022.1.bb:do_kernel_generate_rsa_keys', 'device-tree.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_complete'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2022.1.bb:do_deploy (dependent Tasks ['linux-xlnx_2022.1.bb:do_bundle_initramfs', 'linux-xlnx_2022.1.bb:do_uboot_assemble_fitimage', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-xlnx_2022.1.bb:do_populate_sysroot', 'linux-xlnx_2022.1.bb:do_assemble_fitimage_initramfs', 'linux-xlnx_2022.1.bb:do_packagedata', 'pigz_2.6.bb:do_populate_sysroot'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_wic (dependent Tasks ['linux-xlnx_2022.1.bb:do_deploy', 'gptfdisk_1.0.8.bb:do_populate_sysroot', 'mtools_4.0.35.bb:do_populate_sysroot', 'bitstream-extraction_git.bb:do_deploy', 'dosfstools_4.2.bb:do_populate_sysroot', 'fsbl-firmware_2022.1.bb:do_deploy', 'u-boot-xlnx_2022.1.bb:do_deploy', 'petalinux-image-minimal.bb:do_rootfs_wicenv', 'petalinux-image-minimal.bb:do_image', 'parted_3.4.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_deploy', 'fsbl.bb:do_deploy', 'u-boot-zynq-scr.bb:do_deploy', 'external-hdf.bb:do_deploy', 'device-tree.bb:do_deploy'])
Dependency loop #3 found:
Task /home/roman/petalinux_v2/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_complete (dependent Tasks ['u-boot-xlnx_2022.1.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_tar', 'petalinux-image-minimal.bb:do_image_jffs2', 'petalinux-image-minimal.bb:do_image_cpio', 'python3-cython_0.29.24.bb:do_populate_sysroot', 'python3-pyyaml_5.4.1.bb:do_populate_sysroot', 'avnet-boot-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image', 'u-boot-zynq-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_ext4', 'fsbl.bb:do_populate_sysroot', 'libyaml_0.2.5.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_wic'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2022.1.bb:do_bundle_initramfs (dependent Tasks ['linux-xlnx_2022.1.bb:do_install', 'petalinux-image-minimal.bb:do_image_complete'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2022.1.bb:do_assemble_fitimage_initramfs (dependent Tasks ['linux-xlnx_2022.1.bb:do_bundle_initramfs', 'linux-xlnx_2022.1.bb:do_kernel_generate_rsa_keys', 'device-tree.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_complete'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2022.1.bb:do_deploy (dependent Tasks ['linux-xlnx_2022.1.bb:do_bundle_initramfs', 'linux-xlnx_2022.1.bb:do_uboot_assemble_fitimage', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-xlnx_2022.1.bb:do_populate_sysroot', 'linux-xlnx_2022.1.bb:do_assemble_fitimage_initramfs', 'linux-xlnx_2022.1.bb:do_packagedata', 'pigz_2.6.bb:do_populate_sysroot'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_wic (dependent Tasks ['linux-xlnx_2022.1.bb:do_deploy', 'gptfdisk_1.0.8.bb:do_populate_sysroot', 'mtools_4.0.35.bb:do_populate_sysroot', 'bitstream-extraction_git.bb:do_deploy', 'dosfstools_4.2.bb:do_populate_sysroot', 'fsbl-firmware_2022.1.bb:do_deploy', 'u-boot-xlnx_2022.1.bb:do_deploy', 'petalinux-image-minimal.bb:do_rootfs_wicenv', 'petalinux-image-minimal.bb:do_image', 'parted_3.4.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_deploy', 'fsbl.bb:do_deploy', 'u-boot-zynq-scr.bb:do_deploy', 'external-hdf.bb:do_deploy', 'device-tree.bb:do_deploy'])
Dependency loop #4 found:
Task /home/roman/petalinux_v2/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_complete (dependent Tasks ['u-boot-xlnx_2022.1.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_tar', 'petalinux-image-minimal.bb:do_image_jffs2', 'petalinux-image-minimal.bb:do_image_cpio', 'python3-cython_0.29.24.bb:do_populate_sysroot', 'python3-pyyaml_5.4.1.bb:do_populate_sysroot', 'avnet-boot-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image', 'u-boot-zynq-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_ext4', 'fsbl.bb:do_populate_sysroot', 'libyaml_0.2.5.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_wic'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2022.1.bb:do_assemble_fitimage_initramfs (dependent Tasks ['linux-xlnx_2022.1.bb:do_bundle_initramfs', 'linux-xlnx_2022.1.bb:do_kernel_generate_rsa_keys', 'device-tree.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_complete'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-kernel/linux/linux-xlnx_2022.1.bb:do_deploy (dependent Tasks ['linux-xlnx_2022.1.bb:do_bundle_initramfs', 'linux-xlnx_2022.1.bb:do_uboot_assemble_fitimage', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-xlnx_2022.1.bb:do_populate_sysroot', 'linux-xlnx_2022.1.bb:do_assemble_fitimage_initramfs', 'linux-xlnx_2022.1.bb:do_packagedata', 'pigz_2.6.bb:do_populate_sysroot'])
Task /home/roman/petalinux_v2/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_wic (dependent Tasks ['linux-xlnx_2022.1.bb:do_deploy', 'gptfdisk_1.0.8.bb:do_populate_sysroot', 'mtools_4.0.35.bb:do_populate_sysroot', 'bitstream-extraction_git.bb:do_deploy', 'dosfstools_4.2.bb:do_populate_sysroot', 'fsbl-firmware_2022.1.bb:do_deploy', 'u-boot-xlnx_2022.1.bb:do_deploy', 'petalinux-image-minimal.bb:do_rootfs_wicenv', 'petalinux-image-minimal.bb:do_image', 'parted_3.4.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_deploy', 'fsbl.bb:do_deploy', 'u-boot-zynq-scr.bb:do_deploy', 'external-hdf.bb:do_deploy', 'device-tree.bb:do_deploy'])
ERROR: Command execution failed: 1
ERROR: Failed to build avnet-image-minimal. Check the /home/roman/petalinux_v2/build/build.log file for more details...