Error: The recipe linux-libc-headers is trying to install files into a shared area when those files already exist

Hi all,
When building my project I am getting the error described below. When a searched about, I funded that the solution is to delete the Deploy files, but if I do this, my build gets broken because missing files error.

Someone could please help us?
Best regards,
Adriano Munin

ERROR: linux-libc-headers-4.12-r0 do_package_write_ipk: The recipe linux-libc-headers is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7at2hf-neon/linux-libc-headers-dev_4.12-r0_armv7at2hf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7at2hf-neon/linux-libc-headers-dbg_4.12-r0_armv7at2hf-neon.ipk
(not matched to any task)
Please verify which recipe should provide the above files.
The build has stopped, as continuing in this scenario WILL break things - if not now, possibly in the future (we’ve seen builds fail several months later). If the system knew how to recover from this automatically it would, however there are several different scenarios which can result in this and we don’t know which one this is. It may be you have switched providers of something like virtual/kernel (e.g. from linux-yocto to linux-yocto-dev), in that case you need to execute the clean task for both recipes and it will resolve this error. It may be you changed DISTRO_FEATURES from systemd to udev or vice versa. Cleaning those recipes should again resolve this error, however switching DISTRO_FEATURES on an existing build directory is not supported - you should really clean out tmp and rebuild (reusing sstate should be safe). It could be the overlapping files detected are harmless in which case adding them to SSTATE_DUPWHITELIST may be the correct solution. It could also be your build is including two different conflicting versions of things (e.g. bluez 4 and bluez 5 and the correct solution for that would be to resolve the conflict. If in doubt, please ask on the mailing list, sharing the error and filelist above.
ERROR: linux-libc-headers-4.12-r0 do_package_write_ipk: If the above message is too much, the simpler version is you’re advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.
ERROR: linux-libc-headers-4.12-r0 do_package_write_ipk: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/linux-libc-headers/4.12-r0/temp/log.do_package_write_ipk.22145
ERROR: Task (/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_4.12.bb:do_package_write_ipk) failed with exit code ‘1’
ERROR: glibc-2.26-r0 do_package_write_ipk: The recipe glibc is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libsotruss_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libc6-pic_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/ldd_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libc6-pcprofile_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/catchsegv_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libc6-staticdev_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libc6-doc_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libmemusage_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libc6-dbg_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libsegfault_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/tzcode_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libc6_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libc6-extra-nss_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libc6-utils_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libc6-dev_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/sln_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libcidn1_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/libc6-thread-db_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/deploy/ipk/armv7ahf-neon/nscd_2.26-r0_armv7ahf-neon.ipk
(not matched to any task)
Please verify which recipe should provide the above files.
The build has stopped, as continuing in this scenario WILL break things - if not now, possibly in the future (we’ve seen builds fail several months later). If the system knew how to recover from this automatically it would, however there are several different scenarios which can result in this and we don’t know which one this is. It may be you have switched providers of something like virtual/kernel (e.g. from linux-yocto to linux-yocto-dev), in that case you need to execute the clean task for both recipes and it will resolve this error. It may be you changed DISTRO_FEATURES from systemd to udev or vice versa. Cleaning those recipes should again resolve this error, however switching DISTRO_FEATURES on an existing build directory is not supported - you should really clean out tmp and rebuild (reusing sstate should be safe). It could be the overlapping files detected are harmless in which case adding them to SSTATE_DUPWHITELIST may be the correct solution. It could also be your build is including two different conflicting versions of things (e.g. bluez 4 and bluez 5 and the correct solution for that would be to resolve the conflict. If in doubt, please ask on the mailing list, sharing the error and filelist above.
ERROR: glibc-2.26-r0 do_package_write_ipk: If the above message is too much, the simpler version is you’re advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.
ERROR: glibc-2.26-r0 do_package_write_ipk: Function failed: sstate_task_postfunc
ERROR: Logfile of failure stored in: /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/armv7ahf-neon-angstrom-linux-gnueabi/glibc/2.26-r0/temp/log.do_package_write_ipk.22146
ERROR: Task (/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-core/glibc/glibc_2.26.bb:do_package_write_ipk) failed with exit code ‘1’

Hi @adrianomunin.eld ,

Normally this issue happens when deleting the build/tmp folder without deleting the deploy folder.

What happens is that the build is trying to generate the files again, but those files were already deployed by another build before. To solve this issue, you will need to delete the files available in the deploy folder directly, and Yocto will build and deploy these files again.

If you want to start a clean build, the suggestion is to delete build/tmp and build/deploy and restart the bitbake.

Best regards,
Daniel Morais

Hi Daniel,
now I excluded the tmp and deploy content but and I am getting the error described below:

DEBUG: Executing python function set_image_size
DEBUG: Python function set_image_size finished
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are [‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/opkg/opkg_0.3.5.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-extended/pigz/pigz_2.3.4.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.5.bb:do_populate_sysroot’, ‘/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot’, ‘/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot’, ‘/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/fdisk/gptfdisk_1.0.3.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot’, ‘/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot’, ‘/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/meta-angstrom/recipes-tweaks/xz/xz_5.2.0.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.09.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.5.bb:do_populate_sysroot’, ‘/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-toradex_2016.11.bb:do_populate_sysroot’, ‘/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot’, ‘/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot’, ‘virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb:do_populate_sysroot’, ‘/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot’, ‘/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/meta-toradex-nxp/recipes-kernel/linux/linux-toradex_4.9-2.3.x.bb:do_populate_sysroot’, ‘/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot’, ‘/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/layers/openembedded-core/meta/recipes-devtools/binutils/binutils-cross_2.29.1.bb:do_populate_sysroot’]
NOTE: Installed into sysroot: [‘dosfstools-native’, ‘gptfdisk-native’, ‘gcc-cross-arm’, ‘parted-native’, ‘bc-native’, ‘lzop-native’, ‘u-boot-mkimage-native’, ‘mtools-native’, ‘linux-toradex’, ‘binutils-cross-arm’, ‘mpfr-native’, ‘gmp-native’, ‘libmpc-native’]
NOTE: Skipping as already exists in sysroot: [‘opkg-native’, ‘pseudo-native’, ‘update-rc.d-native’, ‘pigz-native’, ‘opkg-utils-native’, ‘glibc’, ‘dtc-native’, ‘depmodwrapper-cross’, ‘prelink-native’, ‘qemuwrapper-cross’, ‘makedevs-native’, ‘kmod-native’, ‘xz-native’, ‘e2fsprogs-native’, ‘u-boot-toradex’, ‘ldconfig-native’, ‘pbzip2-native’, ‘quilt-native’, ‘bmap-tools-native’, ‘openssl-native’, ‘mklibs-native’, ‘gcc-runtime’, ‘libarchive-native’, ‘pkgconfig-native’, ‘automake-native’, ‘gnu-config-native’, ‘libtool-native’, ‘libsolv-native’, ‘autoconf-native’, ‘linux-libc-headers’, ‘binutils-native’, ‘elfutils-native’, ‘shadow-native’, ‘texinfo-dummy-native’, ‘zlib-native’, ‘util-linux-native’, ‘gettext-minimal-native’, ‘readline-native’, ‘ncurses-native’, ‘lzo-native’, ‘attr-native’, ‘systemd-systemctl-native’, ‘cryptodev-linux-native’, ‘makedepend-native’, ‘bison-native’, ‘flex-native’, ‘qemu-native’, ‘popt-native’, ‘gtk-doc-native’, ‘bzip2-native’, ‘debianutils-native’, ‘nss-native’, ‘python3-setuptools-native’, ‘python3-native’, ‘libgcc’, ‘expat-native’, ‘rpm-native’, ‘cmake-native’, ‘m4-native’, ‘xproto-native’, ‘util-macros-native’, ‘glib-2.0-native’, ‘alsa-lib-native’, ‘pixman-native’, ‘sqlite3-native’, ‘nspr-native’, ‘unzip-native’, ‘db-native’, ‘file-native’, ‘dbus-native’, ‘curl-native’, ‘gettext-native’, ‘libpcre-native’, ‘libffi-native’, ‘libpng-native’]
DEBUG: sed -e ‘s:[1]*/:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/:g’ /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/sysroots-components/x86_64/gcc-cross-arm/fixmepath /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/sysroots-components/x86_64/gmp-native/fixmepath | xargs sed -i -e ‘s:FIXMESTAGINGDIRTARGET:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native:g’ -e ‘s:FIXME_COMPONENTS_DIR:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/sysroots-components:g’ -e ‘s:FIXME_HOSTTOOLS_DIR:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/hosttools:g’ -e ‘s:FIXME_PKGDATA_DIR:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/pkgdata/apalis-imx6:g’ -e ‘s:FIXME_PSEUDO_LOCALSTATEDIR:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/pseudo/:g’ -e ‘s:FIXME_LOGFIFO:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/temp/fifo.10149:g’
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_image_wic
INFO: Creating image(s)…

WARNING: bootloader config not specified, using defaults

ERROR: _exec_cmd: install -m 0644 -D /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/deploy/images/apalis-imx6/zImage-imx6q-apalis-eval.dtb /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/Angstrom-core-image-minimal-glibc-ipk-v2017.12-apalis-imx6/tmp.wic.aquzrx3d/boot.1/imx6q-apalis-eval.dtb returned ‘1’ instead of 0
output: install: cannot stat ‘/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/…/deploy/images/apalis-imx6/zImage-imx6q-apalis-eval.dtb’: No such file or directory

WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_image_wic (log file is located at /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_wic.10149)

Do you know what can be?

Best regards,
Adriano Munin


  1. ^/ ↩︎

Hi @adrianomunin.eld ,

Please try to execute a clean and build it again as below:

bitbake <image-recipe> -c cleanall && bitbake <image-recipe>

Best regards,
Daniel Morais

Hi Daniel,

thanks for the quick response, but I get the same error.
I deleted the tmp and deploy content, and then execute “bitbake core-image-minimal -c cleanall && bitbake core-image-minimal”, as suggested.

DEBUG: Executing python function set_image_size
DEBUG: Python function set_image_size finished
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-nxp/recipes-kernel/linux/linux-toradex_4.9-2.3.x.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-toradex_2016.11.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-angstrom/recipes-tweaks/xz/xz_5.2.0.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.09.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/binutils/binutils-cross_2.29.1.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/pigz/pigz_2.3.4.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.5.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/fdisk/gptfdisk_1.0.3.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/opkg/opkg_0.3.5.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.5.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot']
NOTE: Installed into sysroot: ['linux-toradex', 'gcc-cross-arm', 'bc-native', 'dosfstools-native', 'mtools-native', 'parted-native', 'u-boot-mkimage-native', 'lzop-native', 'binutils-cross-arm', 'gptfdisk-native', 'gmp-native', 'mpfr-native', 'libmpc-native']
NOTE: Skipping as already exists in sysroot: ['u-boot-toradex', 'glibc', 'pbzip2-native', 'qemuwrapper-cross', 'xz-native', 'prelink-native', 'pseudo-native', 'dtc-native', 'ldconfig-native', 'openssl-native', 'quilt-native', 'gcc-runtime', 'update-rc.d-native', 'makedevs-native', 'pigz-native', 'opkg-utils-native', 'mklibs-native', 'opkg-native', 'bmap-tools-native', 'depmodwrapper-cross', 'e2fsprogs-native', 'kmod-native', 'systemd-systemctl-native', 'bzip2-native', 'qemu-native', 'makedepend-native', 'cryptodev-linux-native', 'pkgconfig-native', 'libgcc', 'linux-libc-headers', 'automake-native', 'libtool-native', 'texinfo-dummy-native', 'autoconf-native', 'gnu-config-native', 'gettext-minimal-native', 'ncurses-native', 'util-linux-native', 'readline-native', 'bison-native', 'zlib-native', 'flex-native', 'popt-native', 'libarchive-native', 'libsolv-native', 'python3-native', 'python3-setuptools-native', 'attr-native', 'nss-native', 'binutils-native', 'elfutils-native', 'shadow-native', 'lzo-native', 'debianutils-native', 'gtk-doc-native', 'pixman-native', 'glib-2.0-native', 'alsa-lib-native', 'xproto-native', 'util-macros-native', 'm4-native', 'expat-native', 'rpm-native', 'cmake-native', 'sqlite3-native', 'unzip-native', 'nspr-native', 'libpng-native', 'gettext-native', 'libpcre-native', 'libffi-native', 'file-native', 'dbus-native', 'db-native', 'curl-native']
DEBUG: sed -e 's:^[^/]*/:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/:g' /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/sysroots-components/x86_64/gcc-cross-arm/fixmepath /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/sysroots-components/x86_64/gmp-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native:g' -e 's:FIXME_COMPONENTS_DIR:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/sysroots-components:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/pkgdata/apalis-imx6:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/temp/fifo.31741:g'
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_image_wic
INFO: Creating image(s)...

WARNING: bootloader config not specified, using defaults

ERROR: _exec_cmd: install -m 0644 -D /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../deploy/images/apalis-imx6/zImage-imx6q-apalis-eval.dtb /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/Angstrom-core-image-minimal-glibc-ipk-v2017.12-apalis-imx6/tmp.wic.c649h0k5/boot.1/imx6q-apalis-eval.dtb returned '1' instead of 0
output: install: cannot stat '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../deploy/images/apalis-imx6/zImage-imx6q-apalis-eval.dtb': No such file or directory

WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_image_wic (log file is located at /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_wic.31741)

Best regards,
Adriano Munin

Hi @adrianomunin.eld ,

It’s strange since it’s not finding the imx6q-apalis-eval.dtb file, it seems that something messed your Yocto system.

Since you are using BSP 2.8, which is quite old, can you please try deleting the folders deploy, build/buildhistory, build/cache, build/sstate-cache and build/tmp-glibc and try to rebuild it again?

Best regards,
Daniel Morais

Hi Daniel,
this time the build process took much more time, but it brokes at the same point:

DEBUG: Executing python function set_image_size
DEBUG: Python function set_image_size finished
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-toradex_2016.11.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/fdisk/gptfdisk_1.0.3.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/pigz/pigz_2.3.4.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-nxp/recipes-kernel/linux/linux-toradex_4.9-2.3.x.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.5.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.09.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/opkg/opkg_0.3.5.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.5.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-angstrom/recipes-tweaks/xz/xz_5.2.0.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/binutils/binutils-cross_2.29.1.bb:do_populate_sysroot']
NOTE: Installed into sysroot: ['dosfstools-native', 'gptfdisk-native', 'mtools-native', 'linux-toradex', 'lzop-native', 'u-boot-mkimage-native', 'bc-native', 'gcc-cross-arm', 'parted-native', 'binutils-cross-arm', 'mpfr-native', 'gmp-native', 'libmpc-native']
NOTE: Skipping as already exists in sysroot: ['u-boot-toradex', 'makedevs-native', 'pigz-native', 'bmap-tools-native', 'gcc-runtime', 'update-rc.d-native', 'opkg-utils-native', 'pseudo-native', 'kmod-native', 'openssl-native', 'mklibs-native', 'dtc-native', 'ldconfig-native', 'opkg-native', 'depmodwrapper-cross', 'pbzip2-native', 'glibc', 'e2fsprogs-native', 'quilt-native', 'xz-native', 'qemuwrapper-cross', 'prelink-native', 'systemd-systemctl-native', 'automake-native', 'gnu-config-native', 'libtool-native', 'pkgconfig-native', 'autoconf-native', 'ncurses-native', 'popt-native', 'util-linux-native', 'zlib-native', 'python3-setuptools-native', 'python3-native', 'debianutils-native', 'gettext-minimal-native', 'shadow-native', 'qemu-native', 'flex-native', 'texinfo-dummy-native', 'nss-native', 'bison-native', 'libgcc', 'linux-libc-headers', 'lzo-native', 'gtk-doc-native', 'cryptodev-linux-native', 'makedepend-native', 'libarchive-native', 'libsolv-native', 'bzip2-native', 'attr-native', 'readline-native', 'binutils-native', 'elfutils-native', 'm4-native', 'unzip-native', 'sqlite3-native', 'glib-2.0-native', 'alsa-lib-native', 'pixman-native', 'nspr-native', 'xproto-native', 'util-macros-native', 'expat-native', 'rpm-native', 'cmake-native', 'libffi-native', 'libpcre-native', 'gettext-native', 'libpng-native', 'db-native', 'file-native', 'dbus-native', 'curl-native']
DEBUG: sed -e 's:^[^/]*/:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/:g' /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/sysroots-components/x86_64/gcc-cross-arm/fixmepath /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/sysroots-components/x86_64/gmp-native/fixmepath | xargs sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native:g' -e 's:FIXME_COMPONENTS_DIR:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/sysroots-components:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/pkgdata/apalis-imx6:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/temp/fifo.15807:g'
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_image_wic
INFO: Creating image(s)...

WARNING: bootloader config not specified, using defaults

ERROR: _exec_cmd: install -m 0644 -D /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../deploy/images/apalis-imx6/zImage-imx6q-apalis-eval.dtb /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/Angstrom-core-image-minimal-glibc-ipk-v2017.12-apalis-imx6/tmp.wic.c95g9m5e/boot.1/imx6q-apalis-eval.dtb returned '1' instead of 0
output: install: cannot stat '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../deploy/images/apalis-imx6/zImage-imx6q-apalis-eval.dtb': No such file or directory

WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_image_wic (log file is located at /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_wic.15807)

Thanks in advance and best regards,
Adriano Munin

Hi @adrianomunin.eld ,

Can you please try to execute the following?

bitbake linux-toradex -c cleanall && bitbake <image-name>

Best regards,
Daniel Morais

Hi Daniel,

Unfortunately bitbake linux-toradex -c cleanall && bitbake core-image-minimal not works :

Terminal execution:

oxigena@oxigena-VirtualBox:~/Desktop/oe-core-linoOLD14.Abril.2023/build$ bitbake linux-toradex -c cleanall && bitbake core-image-minimal
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:02
Loaded 3904 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:20
Parsing of 3035 .bb files complete (3034 cached, 1 parsed). 3905 targets, 495 skipped, 1 masked, 0 errors.
WARNING: No recipes available for:
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bbappend
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium_52.0.2743.76.bbappend
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-tegra/recipes-graphics/wayland/weston_1.%.bbappend
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-tegra/jetson-tk1/recipes-graphics/xorg-xserver/xserver-xorg_1.17.2.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-16.04"
TARGET_SYS           = "arm-angstrom-linux-gnueabi"
MACHINE              = "apalis-imx6"
DISTRO               = "angstrom"
DISTRO_VERSION       = "v2017.12"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-angstrom        
meta-toradex-nxp     
meta-freescale       
meta-freescale-3rdparty 
meta-toradex-tegra   
meta-jetson-tk1      
meta-toradex-bsp-common 
meta-oe              
meta-filesystems     
meta-gnome           
meta-xfce            
meta-initramfs       
meta-networking      
meta-multimedia      
meta-python          
meta-lxde            
meta-browser         
meta-qt4             
meta-qt5             
meta-qt5-extra       
meta-freescale-distro 
meta-toradex-demos   = "<unknown>:<unknown>"
meta-vertex-hdmi     = "master:f6f17260dee30e88cb8248d027e4707e7527e6ba"
meta                 = "<unknown>:<unknown>"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:00
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory

Summary: There was 1 WARNING message shown.
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:01
Loaded 3904 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:19
Parsing of 3035 .bb files complete (3034 cached, 1 parsed). 3905 targets, 495 skipped, 1 masked, 0 errors.
WARNING: No recipes available for:
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bbappend
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium_52.0.2743.76.bbappend
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-tegra/recipes-graphics/wayland/weston_1.%.bbappend
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-tegra/jetson-tk1/recipes-graphics/xorg-xserver/xserver-xorg_1.17.2.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-16.04"
TARGET_SYS           = "arm-angstrom-linux-gnueabi"
MACHINE              = "apalis-imx6"
DISTRO               = "angstrom"
DISTRO_VERSION       = "v2017.12"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-angstrom        
meta-toradex-nxp     
meta-freescale       
meta-freescale-3rdparty 
meta-toradex-tegra   
meta-jetson-tk1      
meta-toradex-bsp-common 
meta-oe              
meta-filesystems     
meta-gnome           
meta-xfce            
meta-initramfs       
meta-networking      
meta-multimedia      
meta-python          
meta-lxde            
meta-browser         
meta-qt4             
meta-qt5             
meta-qt5-extra       
meta-freescale-distro 
meta-toradex-demos   = "<unknown>:<unknown>"
meta-vertex-hdmi     = "master:f6f17260dee30e88cb8248d027e4707e7527e6ba"
meta                 = "<unknown>:<unknown>"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:04
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: core-image-minimal-1.0-r0 do_image_teziimg: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:rootfs_tezi_json(d)
     0003:
File: '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-bsp-common/classes/image_type_tezi.bbclass', lineno: 202, function: rootfs_tezi_json
     0198:
     0199:    if bb.utils.contains("TORADEX_FLASH_TYPE", "rawnand", True, False, d):
     0200:        data["mtddevs"] = rootfs_tezi_rawnand(d)
     0201:    else:
 *** 0202:        data["blockdevs"] = rootfs_tezi_emmc(d)
     0203:
     0204:    deploy_dir = d.getVar('DEPLOY_DIR_IMAGE', True)
     0205:    with open(os.path.join(deploy_dir, 'image.json'), 'w') as outfile:
     0206:        json.dump(data, outfile, indent=4)
File: '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-bsp-common/classes/image_type_tezi.bbclass', lineno: 44, function: rootfs_tezi_emmc
     0040:            bootfiles.append(os.path.join(deploydir, kernel + "-" + dtb))
     0041:
     0042:    args = ['du', '-kLc']
     0043:    args.extend(bootfiles)
 *** 0044:    output = subprocess.check_output(args)
     0045:    bootfssize_kb = int(output.splitlines()[-1].split()[0])
     0046:
     0047:    bootpart_rawfiles = []
     0048:
File: '/usr/lib/python3.5/subprocess.py', lineno: 626, function: check_output
     0622:        # empty string. That is maintained here for backwards compatibility.
     0623:        kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
     0624:
     0625:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
 *** 0626:               **kwargs).stdout
     0627:
     0628:
     0629:class CompletedProcess(object):
     0630:    """A process that has finished running.
File: '/usr/lib/python3.5/subprocess.py', lineno: 708, function: run
     0704:            raise
     0705:        retcode = process.poll()
     0706:        if check and retcode:
     0707:            raise CalledProcessError(retcode, process.args,
 *** 0708:                                     output=stdout, stderr=stderr)
     0709:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0710:
     0711:
     0712:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command '['du', '-kLc', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../deploy/images/apalis-imx6/zImage', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../deploy/images/apalis-imx6/zImage-imx6q-apalis-eval.dtb', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../deploy/images/apalis-imx6/zImage-imx6q-apalis-ixora.dtb', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../deploy/images/apalis-imx6/zImage-imx6q-apalis-ixora-v1.1.dtb']' returned non-zero exit status 1

Subprocess output:
5240	/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../deploy/images/apalis-imx6/zImage
5240	total

ERROR: core-image-minimal-1.0-r0 do_image_teziimg: Function failed: rootfs_tezi_json
ERROR: Logfile of failure stored in: /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_teziimg.25928
ERROR: Task (/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/images/core-image-minimal.bb:do_image_teziimg) failed with exit code '1'
ERROR: core-image-minimal-1.0-r0 do_image_wic: Function failed: do_image_wic (log file is located at /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_wic.25925)
ERROR: Logfile of failure stored in: /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_wic.25925
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-toradex_2016.11.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.5.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-nxp/recipes-kernel/linux/linux-toradex_4.9-2.3.x.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/fdisk/gptfdisk_1.0.3.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/binutils/binutils-cross_2.29.1.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/opkg/opkg_0.3.5.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/pigz/pigz_2.3.4.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.5.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.09.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-angstrom/recipes-tweaks/xz/xz_5.2.0.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['bc-native', 'glibc', 'u-boot-toradex', 'quilt-native', 'pseudo-native', 'qemuwrapper-cross', 'opkg-utils-native', 'ldconfig-native', 'gcc-runtime', 'lzop-native', 'pbzip2-native', 'dosfstools-native', 'makedevs-native', 'linux-toradex', 'mklibs-native', 'gptfdisk-native', 'parted-native', 'depmodwrapper-cross', 'binutils-cross-arm', 'mtools-native', 'kmod-native', 'opkg-native', 'pigz-native', 'e2fsprogs-native', 'dtc-native', 'openssl-native', 'u-boot-mkimage-native', 'bmap-tools-native', 'gcc-cross-arm', 'update-rc.d-native', 'xz-native', 'prelink-native', 'automake-native', 'flex-native', 'texinfo-dummy-native', 'gnu-config-native', 'autoconf-native', 'libtool-native', 'linux-libc-headers', 'systemd-systemctl-native', 'qemu-native', 'libgcc', 'shadow-native', 'lzo-native', 'bzip2-native', 'pkgconfig-native', 'gettext-minimal-native', 'debianutils-native', 'util-linux-native', 'popt-native', 'ncurses-native', 'readline-native', 'zlib-native', 'bison-native', 'gtk-doc-native', 'nss-native', 'libsolv-native', 'libarchive-native', 'attr-native', 'cryptodev-linux-native', 'makedepend-native', 'python3-setuptools-native', 'python3-native', 'libmpc-native', 'mpfr-native', 'gmp-native', 'binutils-native', 'elfutils-native', 'm4-native', 'pixman-native', 'alsa-lib-native', 'glib-2.0-native', 'sqlite3-native', 'nspr-native', 'rpm-native', 'expat-native', 'cmake-native', 'xproto-native', 'util-macros-native', 'unzip-native', 'libpng-native', 'gettext-native', 'libffi-native', 'libpcre-native', 'db-native', 'dbus-native', 'file-native', 'curl-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_wic
| INFO: Creating image(s)...
| 
| WARNING: bootloader config not specified, using defaults
| 
| ERROR: _exec_cmd: install -m 0644 -D /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../deploy/images/apalis-imx6/zImage-imx6q-apalis-eval.dtb /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/Angstrom-core-image-minimal-glibc-ipk-v2017.12-apalis-imx6/tmp.wic.ow7tlnl8/boot.1/imx6q-apalis-eval.dtb returned '1' instead of 0
| output: install: cannot stat '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../deploy/images/apalis-imx6/zImage-imx6q-apalis-eval.dtb': No such file or directory
| 
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_wic (log file is located at /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_wic.25925)
ERROR: Task (/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/images/core-image-minimal.bb:do_image_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2117 tasks of which 2094 didn't need to be rerun and 2 failed.
NOTE: Writing buildhistory

Summary: 2 tasks failed:
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/images/core-image-minimal.bb:do_image_teziimg
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/images/core-image-minimal.bb:do_image_wic
Summary: There was 1 WARNING message shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.

log.do_image_wic.25925:

DEBUG: Executing python function set_image_size
DEBUG: Python function set_image_size finished
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-toradex_2016.11.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.5.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-nxp/recipes-kernel/linux/linux-toradex_4.9-2.3.x.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/fdisk/gptfdisk_1.0.3.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/binutils/binutils-cross_2.29.1.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/opkg/opkg_0.3.5.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-extended/pigz/pigz_2.3.4.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.5.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-kernel/dtc/dtc_1.4.4.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-connectivity/openssl/openssl_1.0.2o.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-bsp/u-boot/u-boot-mkimage_2017.09.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb:do_populate_sysroot', '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-angstrom/recipes-tweaks/xz/xz_5.2.0.bb:do_populate_sysroot', 'virtual:native:/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/openembedded-core/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['bc-native', 'glibc', 'u-boot-toradex', 'quilt-native', 'pseudo-native', 'qemuwrapper-cross', 'opkg-utils-native', 'ldconfig-native', 'gcc-runtime', 'lzop-native', 'pbzip2-native', 'dosfstools-native', 'makedevs-native', 'linux-toradex', 'mklibs-native', 'gptfdisk-native', 'parted-native', 'depmodwrapper-cross', 'binutils-cross-arm', 'mtools-native', 'kmod-native', 'opkg-native', 'pigz-native', 'e2fsprogs-native', 'dtc-native', 'openssl-native', 'u-boot-mkimage-native', 'bmap-tools-native', 'gcc-cross-arm', 'update-rc.d-native', 'xz-native', 'prelink-native', 'automake-native', 'flex-native', 'texinfo-dummy-native', 'gnu-config-native', 'autoconf-native', 'libtool-native', 'linux-libc-headers', 'systemd-systemctl-native', 'qemu-native', 'libgcc', 'shadow-native', 'lzo-native', 'bzip2-native', 'pkgconfig-native', 'gettext-minimal-native', 'debianutils-native', 'util-linux-native', 'popt-native', 'ncurses-native', 'readline-native', 'zlib-native', 'bison-native', 'gtk-doc-native', 'nss-native', 'libsolv-native', 'libarchive-native', 'attr-native', 'cryptodev-linux-native', 'makedepend-native', 'python3-setuptools-native', 'python3-native', 'libmpc-native', 'mpfr-native', 'gmp-native', 'binutils-native', 'elfutils-native', 'm4-native', 'pixman-native', 'alsa-lib-native', 'glib-2.0-native', 'sqlite3-native', 'nspr-native', 'rpm-native', 'expat-native', 'cmake-native', 'xproto-native', 'util-macros-native', 'unzip-native', 'libpng-native', 'gettext-native', 'libffi-native', 'libpcre-native', 'db-native', 'dbus-native', 'file-native', 'curl-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_image_wic
INFO: Creating image(s)...

WARNING: bootloader config not specified, using defaults

ERROR: _exec_cmd: install -m 0644 -D /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../deploy/images/apalis-imx6/zImage-imx6q-apalis-eval.dtb /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/Angstrom-core-image-minimal-glibc-ipk-v2017.12-apalis-imx6/tmp.wic.ow7tlnl8/boot.1/imx6q-apalis-eval.dtb returned '1' instead of 0
output: install: cannot stat '/home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../deploy/images/apalis-imx6/zImage-imx6q-apalis-eval.dtb': No such file or directory

WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_image_wic (log file is located at /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/tmp-glibc/work/apalis_imx6-angstrom-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_wic.25925)

Best Regards,
Adriano Munin

Hi @adrianomunin.eld ,

This is really strange, the kernel files aren’t being deployed to the deploy folder.

Please try to execute bitbake linux-toradex -c cleanall && bitbake linux-toradex and verify if the file imx6q-apalis-eval.dtb exists on the deploy directory, this will clean the kernel build and build it again, generating the zImage and .dtb files. If the file doesn’t exist and you have another layer included, please try to remove this layer and do the same test again to verify if with this change the files begin to be deployed correctly.

Best regards,
Daniel Morais

Hi Daniel,

the linux-toradex build works, but it does not generate imx6q-apalis-eval.dtb.
I don know how many extra layers added I have. How could I know it and remove it?

In the Layers folder I have:

oxigena@oxigena-VirtualBox:~/Desktop/oe-core-linoOLD14.Abril.2023/layers$ ls
meta-angstrom            meta-qt4                 meta-toradex-tegra
meta-browser             meta-qt5                 meta-vertex-agt
meta-freescale           meta-qt5-extra           meta-vertex-hdmi
meta-freescale-3rdparty  meta-svb19-agt           meta-vertex-hdmiV1
meta-freescale-distro    meta-svb19-hdmi          meta-vertex-lvds
meta-jetson-tk1          meta-toradex-bsp-common  openembedded-core
meta-lxde                meta-toradex-demos
meta-openembedded        meta-toradex-nxp

Build success logs:

oxigena@oxigena-VirtualBox:~/Desktop/oe-core-linoOLD14.Abril.2023/build$ bitbake linux-toradex -c cleanall && bitbake linux-toradex 
WARNING: /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-demos/recipes-images/images/console-tdx-image.bb: Variable key IMAGE_NAME_${MACHINE} (${MACHINE}_vertex-10.1-HDMI_${IHM_SOFTWARE_VERSION}) replaces original key IMAGE_NAME_apalis-imx6 (Apalis-iMX6_${IMAGE_BASENAME}).
Parsing recipes: 100% |#########################################################################################################| Time: 0:03:55
Parsing of 3035 .bb files complete (0 cached, 3035 parsed). 3905 targets, 495 skipped, 1 masked, 0 errors.
WARNING: No recipes available for:
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bbappend
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium_52.0.2743.76.bbappend
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-tegra/recipes-graphics/wayland/weston_1.%.bbappend
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-tegra/jetson-tk1/recipes-graphics/xorg-xserver/xserver-xorg_1.17.2.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-16.04"
TARGET_SYS           = "arm-angstrom-linux-gnueabi"
MACHINE              = "apalis-imx6"
DISTRO               = "angstrom"
DISTRO_VERSION       = "v2017.12"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-angstrom        
meta-toradex-nxp     
meta-freescale       
meta-freescale-3rdparty 
meta-toradex-tegra   
meta-jetson-tk1      
meta-toradex-bsp-common 
meta-oe              
meta-filesystems     
meta-gnome           
meta-xfce            
meta-initramfs       
meta-networking      
meta-multimedia      
meta-python          
meta-lxde            
meta-browser         
meta-qt4             
meta-qt5             
meta-qt5-extra       
meta-freescale-distro 
meta-toradex-demos   = "<unknown>:<unknown>"
meta-vertex-hdmi     = "master:f6f17260dee30e88cb8248d027e4707e7527e6ba"
meta                 = "<unknown>:<unknown>"

Initialising tasks: 100% |######################################################################################################| Time: 0:00:00
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory

Summary: There were 2 WARNING messages shown.
Loading cache: 100% |###########################################################################################################| Time: 0:00:01
Loaded 3904 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################| Time: 0:00:19
Parsing of 3035 .bb files complete (3034 cached, 1 parsed). 3905 targets, 495 skipped, 1 masked, 0 errors.
WARNING: No recipes available for:
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bbappend
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium_52.0.2743.76.bbappend
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-tegra/recipes-graphics/wayland/weston_1.%.bbappend
  /home/oxigena/Desktop/oe-core-linoOLD14.Abril.2023/build/../layers/meta-toradex-tegra/jetson-tk1/recipes-graphics/xorg-xserver/xserver-xorg_1.17.2.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-16.04"
TARGET_SYS           = "arm-angstrom-linux-gnueabi"
MACHINE              = "apalis-imx6"
DISTRO               = "angstrom"
DISTRO_VERSION       = "v2017.12"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta-angstrom        
meta-toradex-nxp     
meta-freescale       
meta-freescale-3rdparty 
meta-toradex-tegra   
meta-jetson-tk1      
meta-toradex-bsp-common 
meta-oe              
meta-filesystems     
meta-gnome           
meta-xfce            
meta-initramfs       
meta-networking      
meta-multimedia      
meta-python          
meta-lxde            
meta-browser         
meta-qt4             
meta-qt5             
meta-qt5-extra       
meta-freescale-distro 
meta-toradex-demos   = "<unknown>:<unknown>"
meta-vertex-hdmi     = "master:f6f17260dee30e88cb8248d027e4707e7527e6ba"
meta                 = "<unknown>:<unknown>"

Initialising tasks: 100% |######################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 506 tasks of which 0 didn't need to be rerun and all succeeded.
NOTE: Writing buildhistory

Summary: There was 1 WARNING message shown.

Thanks and Best Regards,
Adriano Munin

Hi @adrianomunin.eld ,

You added the layer meta-vertex-hdmi that is not default on our project. Can you please try to remove it and check if the file is generated?

You can do this by changing the content of the build/conf/bblayers.conf file.

Best regards,
Daniel Morais

Hi @daniel_m.tx !

Removing the meta-vertex-hdmi layer it has builded with success!
Now I will investigate why this layer is broken.

Thanks!