Hello @elena_popa,
I'm already using this branch you've mentioned, it matches the version in my build configuration in the last row.
I've checked variables too:
bitbake -e core-image-minimal | grep "^SPL_BINARY"
SPL_BINARY="spl/u-boot-spl.bin"
SPL_BINARY:mx8qxp-generic-bsp="spl/u-boot-spl.bin"
Error log if I try to build core-image-minimal without modifying virtual/bootloader and adding SPL support:
WARNING: /home/yocto/bitbake-builds/poky-master/layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex_2024.04.bb:do_compile is tainted from a forced run | ETA: 0:00:00
Sstate summary: Wanted 930 Local 905 Mirrors 0 Missed 25 Current 2440 (97% match, 99% complete)################################################################################## | ETA: 0:00:00
Initialising tasks: 100% |#########################################################################################################################################################################| Time: 0:00:02
NOTE: Executing Tasks
ERROR: u-boot-toradex-2024.04-r0 do_install: ExecutionError('/home/yocto/bitbake-builds/poky-master/build/tmp/work/colibri_imx8x-tdx-linux/u-boot-toradex/2024.04/temp/run.do_install.43334', 1, None, None)
ERROR: Logfile of failure stored in: /home/yocto/bitbake-builds/poky-master/build/tmp/work/colibri_imx8x-tdx-linux/u-boot-toradex/2024.04/temp/log.do_install.43334
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-core/glibc/glibc_2.39.bb:do_populate_sysroot', '/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_13.4.bb:do_populate_sysroot', '/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_13.4.bb:do_populate_sysroot', '/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', '/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', 'virtual:native:/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-connectivity/openssl/openssl_3.5.5.bb:do_populate_sysroot', 'virtual:native:/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-devtools/bison/bison_3.8.2.bb:do_populate_sysroot', 'virtual:native:/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-devtools/flex/flex_2.6.4.bb:do_populate_sysroot', 'virtual:native:/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-devtools/python/python3-setuptools_69.1.1.bb:do_populate_sysroot', 'virtual:native:/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-devtools/python/python3_3.12.12.bb:do_populate_sysroot', 'virtual:native:/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-devtools/swig/swig_4.2.1.bb:do_populate_sysroot', 'virtual:native:/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot', 'virtual:native:/home/yocto/bitbake-builds/poky-master/layers/openembedded-core/meta/recipes-kernel/dtc/dtc_1.7.0.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['gettext-minimal-native', 'glibc', 'binutils-cross-aarch64', 'cmake-native', 'gcc-cross-aarch64', 'gcc-runtime', 'libgcc', 'libtool-native', 'm4-native', 'quilt-native', 'texinfo-dummy-native', 'kern-tools-native', 'linux-libc-headers', 'openssl-native', 'expat-native', 'ncurses-native', 'readline-native', 'util-linux-libuuid-native', 'zlib-native', 'bison-native', 'flex-native', 'git-native', 'gnu-config-native', 'libedit-native', 'make-native', 'patch-native', 'perl-native', 'pseudo-native', 'python3-build-native', 'python3-flit-core-native', 'python3-installer-native', 'python3-packaging-native', 'python3-pyproject-hooks-native', 'python3-setuptools-native', 'python3-wheel-native', 'python3-native', 'swig-native', 'bc-native', 'bzip2-native', 'libnsl2-native', 'libtirpc-native', 'unzip-native', 'xz-native', 'zstd-native', 'dtc-native', 'attr-native', 'ca-certificates-native', 'curl-native', 'gdbm-native', 'gmp-native', 'libffi-native', 'libmpc-native', 'libpcre2-native', 'mpfr-native', 'sqlite3-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| install: cannot stat '/home/yocto/bitbake-builds/poky-master/build/tmp/work/colibri_imx8x-tdx-linux/u-boot-toradex/2024.04/build/colibri-imx8x_defconfig/spl/u-boot-spl.bin': No such file or directory
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/yocto/bitbake-builds/poky-master/layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex_2024.04.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3704 tasks of which 3699 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 2 seconds
Summary: 1 task failed:
/home/yocto/bitbake-builds/poky-master/layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex_2024.04.bb:do_install
log: /home/yocto/bitbake-builds/poky-master/build/tmp/work/colibri_imx8x-tdx-linux/u-boot-toradex/2024.04/temp/log.do_install.43334
Summary: There were 2 WARNING messages.
Summary: There was 1 ERROR message, returning a non-zero exit code.
After enabling SPL support in virtual/bootloader the build is stuck in do_compile part and finishes with error 137
WARNING: /home/yocto/bitbake-builds/poky-master/layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex_2024.04.bb:do_compile is tainted from a forced run | ETA: 0:00:00
Sstate summary: Wanted 929 Local 904 Mirrors 0 Missed 25 Current 2441 (97% match, 99% complete)################################################################################## | ETA: 0:00:00
Initialising tasks: 100% |#########################################################################################################################################################################| Time: 0:00:01
NOTE: Executing Tasks
ERROR: Task (/home/yocto/bitbake-builds/poky-master/layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex_2024.04.bb:do_compile) failed with exit code '137'
NOTE: Tasks Summary: Attempted 2992 tasks of which 2991 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 2 seconds
Summary: 1 task failed:
/home/yocto/bitbake-builds/poky-master/layers/meta-toradex-nxp/recipes-bsp/u-boot/u-boot-toradex_2024.04.bb:do_compile
Summary: There were 2 WARNING messages.
Tell me if I need to provide more information.
Thank you in advance,
Arkadij