Freescale / meta-freescale-3rdparty

OpenEmbedded/Yocto BSP layer for Freescale's ARM based platforms
http://freescale.github.io
91 stars 502 forks source link

Building lx2160acex7 leads to missing recipes and dependency loop #260

Open florianscholznat opened 1 year ago

florianscholznat commented 1 year ago

Hello, I'm trying to build the fsl-image-networking package for lx2160acex7. With kirkstone or langdale, I'm facing two issues.

meta-perl = "kirkstone-next:9e539aaed608a03b1128a7361426703d8f9ba705" meta-virtualization = "kirkstone:dde0ff9eaa301ec5bd3daf667c7966cf55404d26" meta-cloud-services = "kirkstone:64243dfa700653faecb68b75459503ccf566bbd7" meta-security = "kirkstone:cc20e2af2ae1c74e306f6c039c4963457c4cbd0f" meta-freescale = "kirkstone:adff7626fdbcf789a3ce5781cab0385c1e831717" meta-freescale-3rdparty = "kirkstone:bf12dc09d88a53d7345377de277fbcc20ed87235" meta-freescale-distro = "kirkstone:d5bbb487b2816dfc74984a78b67f7361ce404253" meta-qoriq = "kirkstone:afaef5e29b0d5cb8a0f59c62bf9cbd44140b041e"

Missing package cst-native ERROR: Nothing PROVIDES 'cst-native' (but /home/fscholz/yocto-sdk2/sources/meta-freescale-3rdparty/recipes-bsp/atf/qoriq-atf_1.5.bb DEPENDS on or otherwise requires it). Close matches: rust-native xtst-native zstd-native ERROR: Required build target 'fsl-image-networking' has no buildable providers. Missing or unbuildable dependency chain was: ['fsl-image-networking', 'qoriq-atf', 'cst-native']

If I change the name to qoriq-cst-native or remove the dependency Dependency Loop: `ERROR: 2365 unbuildable tasks were found.################################################################################################################################## | ETA: 0:00:00 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/fscholz/yocto-sdk2/sources/meta-freescale-3rdparty/recipes-kernel/linux/linux-qoriq_5.4.bb:do_assemble_fitimage_initramfs (dependent Tasks ['linux-qoriq_5.4.bb:do_bundle_initramfs', 'core-image-minimal.bb:do_image_complete']) Task /home/fscholz/yocto-sdk2/sources/meta-freescale-3rdparty/recipes-kernel/linux/linux-qoriq_5.4.bb:do_deploy (dependent Tasks ['depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-qoriq_5.4.bb:do_assemble_fitimage_initramfs', 'linux-qoriq_5.4.bb:do_packagedata', 'pigz_2.7.bb:do_populate_sysroot', 'linux-qoriq_5.4.bb:do_bundle_initramfs', 'linux-qoriq_5.4.bb:do_populate_sysroot', 'linux-qoriq_5.4.bb:do_uboot_assemble_fitimage']) Task /home/fscholz/yocto-sdk2/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_wic (dependent Tasks ['management-complex_10.35.0.bb:do_deploy', 'qoriq-atf_1.5.bb:do_deploy', 'parted_3.4.bb:do_populate_sysroot', 'linux-qoriq_5.4.bb:do_deploy', 'core-image-minimal.bb:do_rootfs_wicenv', 'mc-utils_git.bb:do_deploy', 'ddr-phy_git.bb:do_deploy', 'ls2-phy_git.bb:do_deploy', 'core-image-minimal.bb:do_image', 'inphi_git.bb:do_deploy', 'rcw_git.bb:do_deploy', 'dosfstools_4.2.bb:do_populate_sysroot', 'mtools_4.0.38.bb:do_populate_sysroot', 'u-boot-script-qoriq_2019.10.bb:do_deploy', 'core-image-minimal.bb:do_write_wks_template', 'gptfdisk_1.0.8.bb:do_populate_sysroot', 'uefi_git.bb:do_deploy', 'u-boot-qoriq_2019.10.bb:do_deploy']) Task /home/fscholz/yocto-sdk2/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_complete (dependent Tasks ['core-image-minimal.bb:do_image_cpio', 'management-complex_10.35.0.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image', 'qoriq-atf_1.5.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image_tar', 'ddr-phy_git.bb:do_populate_sysroot', 'inphi_git.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image_wic', 'rcw_git.bb:do_populate_sysroot', 'u-boot-qoriq_2019.10.bb:do_populate_sysroot', 'mc-utils_git.bb:do_populate_sysroot', 'ls2-phy_git.bb:do_populate_sysroot', 'qoriq-cst_git.bb:do_populate_sysroot']) Task /home/fscholz/yocto-sdk2/sources/meta-freescale-3rdparty/recipes-kernel/linux/linux-qoriq_5.4.bb:do_bundle_initramfs (dependent Tasks ['linux-qoriq_5.4.bb:do_install', 'core-image-minimal.bb:do_image_complete'])

Dependency loop #2 found: Task /home/fscholz/yocto-sdk2/sources/meta-freescale-3rdparty/recipes-kernel/linux/linux-qoriq_5.4.bb:do_bundle_initramfs (dependent Tasks ['linux-qoriq_5.4.bb:do_install', 'core-image-minimal.bb:do_image_complete']) Task /home/fscholz/yocto-sdk2/sources/meta-freescale-3rdparty/recipes-kernel/linux/linux-qoriq_5.4.bb:do_deploy (dependent Tasks ['depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-qoriq_5.4.bb:do_assemble_fitimage_initramfs', 'linux-qoriq_5.4.bb:do_packagedata', 'pigz_2.7.bb:do_populate_sysroot', 'linux-qoriq_5.4.bb:do_bundle_initramfs', 'linux-qoriq_5.4.bb:do_populate_sysroot', 'linux-qoriq_5.4.bb:do_uboot_assemble_fitimage']) Task /home/fscholz/yocto-sdk2/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_wic (dependent Tasks ['management-complex_10.35.0.bb:do_deploy', 'qoriq-atf_1.5.bb:do_deploy', 'parted_3.4.bb:do_populate_sysroot', 'linux-qoriq_5.4.bb:do_deploy', 'core-image-minimal.bb:do_rootfs_wicenv', 'mc-utils_git.bb:do_deploy', 'ddr-phy_git.bb:do_deploy', 'ls2-phy_git.bb:do_deploy', 'core-image-minimal.bb:do_image', 'inphi_git.bb:do_deploy', 'rcw_git.bb:do_deploy', 'dosfstools_4.2.bb:do_populate_sysroot', 'mtools_4.0.38.bb:do_populate_sysroot', 'u-boot-script-qoriq_2019.10.bb:do_deploy', 'core-image-minimal.bb:do_write_wks_template', 'gptfdisk_1.0.8.bb:do_populate_sysroot', 'uefi_git.bb:do_deploy', 'u-boot-qoriq_2019.10.bb:do_deploy']) Task /home/fscholz/yocto-sdk2/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_complete (dependent Tasks ['core-image-minimal.bb:do_image_cpio', 'management-complex_10.35.0.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image', 'qoriq-atf_1.5.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image_tar', 'ddr-phy_git.bb:do_populate_sysroot', 'inphi_git.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image_wic', 'rcw_git.bb:do_populate_sysroot', 'u-boot-qoriq_2019.10.bb:do_populate_sysroot', 'mc-utils_git.bb:do_populate_sysroot', 'ls2-phy_git.bb:do_populate_sysroot', 'qoriq-cst_git.bb:do_populate_sysroot'])

Dependency loop #3 found: Task /home/fscholz/yocto-sdk2/sources/meta-freescale-3rdparty/recipes-kernel/linux/linux-qoriq_5.4.bb:do_assemble_fitimage_initramfs (dependent Tasks ['linux-qoriq_5.4.bb:do_bundle_initramfs', 'core-image-minimal.bb:do_image_complete']) Task /home/fscholz/yocto-sdk2/sources/meta-freescale-3rdparty/recipes-kernel/linux/linux-qoriq_5.4.bb:do_deploy (dependent Tasks ['depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-qoriq_5.4.bb:do_assemble_fitimage_initramfs', 'linux-qoriq_5.4.bb:do_packagedata', 'pigz_2.7.bb:do_populate_sysroot', 'linux-qoriq_5.4.bb:do_bundle_initramfs', 'linux-qoriq_5.4.bb:do_populate_sysroot', 'linux-qoriq_5.4.bb:do_uboot_assemble_fitimage']) Task /home/fscholz/yocto-sdk2/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_wic (dependent Tasks ['management-complex_10.35.0.bb:do_deploy', 'qoriq-atf_1.5.bb:do_deploy', 'parted_3.4.bb:do_populate_sysroot', 'linux-qoriq_5.4.bb:do_deploy', 'core-image-minimal.bb:do_rootfs_wicenv', 'mc-utils_git.bb:do_deploy', 'ddr-phy_git.bb:do_deploy', 'ls2-phy_git.bb:do_deploy', 'core-image-minimal.bb:do_image', 'inphi_git.bb:do_deploy', 'rcw_git.bb:do_deploy', 'dosfstools_4.2.bb:do_populate_sysroot', 'mtools_4.0.38.bb:do_populate_sysroot', 'u-boot-script-qoriq_2019.10.bb:do_deploy', 'core-image-minimal.bb:do_write_wks_template', 'gptfdisk_1.0.8.bb:do_populate_sysroot', 'uefi_git.bb:do_deploy', 'u-boot-qoriq_2019.10.bb:do_deploy']) Task /home/fscholz/yocto-sdk2/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_complete (dependent Tasks ['core-image-minimal.bb:do_image_cpio', 'management-complex_10.35.0.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image', 'qoriq-atf_1.5.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image_tar', 'ddr-phy_git.bb:do_populate_sysroot', 'inphi_git.bb:do_populate_sysroot', 'core-image-minimal.bb:do_image_wic', 'rcw_git.bb:do_populate_sysroot', 'u-boot-qoriq_2019.10.bb:do_populate_sysroot', 'mc-utils_git.bb:do_populate_sysroot', 'ls2-phy_git.bb:do_populate_sysroot', 'qoriq-cst_git.bb:do_populate_sysroot']) `

otavio commented 1 year ago

It appears that this machine has been neglected and requires someone to take responsibility for its upkeep. Would you be willing to lend a hand?

florianscholznat commented 1 year ago

Hi otavio, this board is actually owned by my employer so I can‘t promise you long time Support.

Can you estimate the next steps for fixing these issues? I dont understand the reason of the circular dependency yet.

--

Update: I invested a bit more time and fixed the issues partially.. but there is much more broken. Dependency loop can be fixed by removing the image type "wic". Quiet deprecated bootloader, wrong git link to no-more existing codeaurora platform (qoriq-atf & u-boot) optee-os-qoriq uses no-more existing compilation flags.