Hello,
I want to build Petalinux 2020.2 for the minized with an INITRAMFS as rootfs (ideally it should be stored into the u-boot fitImage which i believe is called image.ub by petalinux).
I downloaded the 2020.2 bsp from Avnet website and started a new project.
After changing the "Root filesystem type" to INITRAMFS in "Image Packaging Confiugration" using the petalinux-configure command, i get the following dependency loops when building:
$ petalinux-build -c avnet-image-minimal
INFO: Sourcing build tools
[INFO] Building avnet-image-minimal
[INFO] Sourcing build environment
[INFO] Generating workspace directory
INFO: bitbake avnet-image-minimal
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 4296 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:03
Parsing of 3027 .bb files complete (3026 cached, 1 parsed). 4297 targets, 214 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: 2803 unbuildable tasks were found.# | ETA: 0:00:01
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/user/build/embedded/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_complete (dependent Tasks ['python3-cython_0.29.13.bb:do_populate_sysroot', 'fsbl_git.bb:do_populate_sysroot', 'python3-pyyaml_5.1.2.bb:do_populate_sysroot', 'libyaml_0.2.2.bb:do_populate_sysroot', 'avnet-boot-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image', 'petalinux-image-minimal.bb:do_image_wic', 'petalinux-image-minimal.bb:do_image_ext4', 'petalinux-image-minimal.bb:do_image_cpio', 'petalinux-image-minimal.bb:do_image_jffs2', 'u-boot-zynq-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_tar', 'u-boot-xlnx_2020.2.bb:do_populate_sysroot'])
Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_assemble_fitimage_initramfs (dependent Tasks ['device-tree.bb:do_populate_sysroot', 'linux-xlnx_2020.2.bb:do_bundle_initramfs', 'petalinux-image-minimal.bb:do_image_complete'])
Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_deploy (dependent Tasks ['linux-xlnx_2020.2.bb:do_packagedata', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-xlnx_2020.2.bb:do_assemble_fitimage_initramfs', 'linux-xlnx_2020.2.bb:do_bundle_initramfs', 'linux-xlnx_2020.2.bb:do_populate_sysroot'])
Task /home/user/build/embedded/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_wic (dependent Tasks ['external-hdf.bb:do_deploy', 'dosfstools_4.1.bb:do_populate_sysroot', 'parted_3.2.bb:do_populate_sysroot', 'device-tree.bb:do_deploy', 'fsbl_git.bb:do_deploy', 'mtools_4.0.23.bb:do_populate_sysroot', 'bitstream-extraction_git.bb:do_deploy', 'u-boot-xlnx_2020.2.bb:do_deploy', 'petalinux-image-minimal.bb:do_image', 'gptfdisk_1.0.4.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_deploy', 'linux-xlnx_2020.2.bb:do_deploy', 'petalinux-image-minimal.bb:do_rootfs_wicenv'])
Dependency loop #2 found:
Task /home/user/build/embedded/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_complete (dependent Tasks ['python3-cython_0.29.13.bb:do_populate_sysroot', 'fsbl_git.bb:do_populate_sysroot', 'python3-pyyaml_5.1.2.bb:do_populate_sysroot', 'libyaml_0.2.2.bb:do_populate_sysroot', 'avnet-boot-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image', 'petalinux-image-minimal.bb:do_image_wic', 'petalinux-image-minimal.bb:do_image_ext4', 'petalinux-image-minimal.bb:do_image_cpio', 'petalinux-image-minimal.bb:do_image_jffs2', 'u-boot-zynq-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_tar', 'u-boot-xlnx_2020.2.bb:do_populate_sysroot'])
Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_bundle_initramfs (dependent Tasks ['petalinux-image-minimal.bb:do_image_complete', 'linux-xlnx_2020.2.bb:do_install'])
Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_assemble_fitimage_initramfs (dependent Tasks ['device-tree.bb:do_populate_sysroot', 'linux-xlnx_2020.2.bb:do_bundle_initramfs', 'petalinux-image-minimal.bb:do_image_complete'])
Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_deploy (dependent Tasks ['linux-xlnx_2020.2.bb:do_packagedata', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-xlnx_2020.2.bb:do_assemble_fitimage_initramfs', 'linux-xlnx_2020.2.bb:do_bundle_initramfs', 'linux-xlnx_2020.2.bb:do_populate_sysroot'])
Task /home/user/build/embedded/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_wic (dependent Tasks ['external-hdf.bb:do_deploy', 'dosfstools_4.1.bb:do_populate_sysroot', 'parted_3.2.bb:do_populate_sysroot', 'device-tree.bb:do_deploy', 'fsbl_git.bb:do_deploy', 'mtools_4.0.23.bb:do_populate_sysroot', 'bitstream-extraction_git.bb:do_deploy', 'u-boot-xlnx_2020.2.bb:do_deploy', 'petalinux-image-minimal.bb:do_image', 'gptfdisk_1.0.4.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_deploy', 'linux-xlnx_2020.2.bb:do_deploy', 'petalinux-image-minimal.bb:do_rootfs_wicenv'])
Dependency loop #3 found:
Task /home/user/build/embedded/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_complete (dependent Tasks ['python3-cython_0.29.13.bb:do_populate_sysroot', 'fsbl_git.bb:do_populate_sysroot', 'python3-pyyaml_5.1.2.bb:do_populate_sysroot', 'libyaml_0.2.2.bb:do_populate_sysroot', 'avnet-boot-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image', 'petalinux-image-minimal.bb:do_image_wic', 'petalinux-image-minimal.bb:do_image_ext4', 'petalinux-image-minimal.bb:do_image_cpio', 'petalinux-image-minimal.bb:do_image_jffs2', 'u-boot-zynq-scr.bb:do_populate_sysroot', 'petalinux-image-minimal.bb:do_image_tar', 'u-boot-xlnx_2020.2.bb:do_populate_sysroot'])
Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_bundle_initramfs (dependent Tasks ['petalinux-image-minimal.bb:do_image_complete', 'linux-xlnx_2020.2.bb:do_install'])
Task /home/user/build/embedded/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2020.2.bb:do_deploy (dependent Tasks ['linux-xlnx_2020.2.bb:do_packagedata', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-xlnx_2020.2.bb:do_assemble_fitimage_initramfs', 'linux-xlnx_2020.2.bb:do_bundle_initramfs', 'linux-xlnx_2020.2.bb:do_populate_sysroot'])
Task /home/user/build/embedded/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_wic (dependent Tasks ['external-hdf.bb:do_deploy', 'dosfstools_4.1.bb:do_populate_sysroot', 'parted_3.2.bb:do_populate_sysroot', 'device-tree.bb:do_deploy', 'fsbl_git.bb:do_deploy', 'mtools_4.0.23.bb:do_populate_sysroot', 'bitstream-extraction_git.bb:do_deploy', 'u-boot-xlnx_2020.2.bb:do_deploy', 'petalinux-image-minimal.bb:do_image', 'gptfdisk_1.0.4.bb:do_populate_sysroot', 'xilinx-bootbin_1.0.bb:do_deploy', 'linux-xlnx_2020.2.bb:do_deploy', 'petalinux-image-minimal.bb:do_rootfs_wicenv'])
ERROR: Command execution failed: 1
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build avnet-image-minimal
Building for an EXT4 rootfs yields no such error.
Is there something else to do for the "Root filesystem type" option to work ? Maybe what i want to achieve must be configured somewhere else ?
Thank you