Jetson Xavier Build 32.7.3 missing bootlogo

Hi,
We are attempting to build BalenaOS image from balena-os/balena-jetson for jetson-xavier and getting the following error:

cp: cannot stat '/home/sean/balena-jetson/build/tmp/deploy/images/jetson-xavier/bootlogo-jetson-xavier.blob': No such file or directory

We are using a Ubuntu 18.04 vm with 400GB of space as my build environment and following this procedure:

  1. git clone --recursive https://github.com/balena-os/balena-jetson.git
  2. cd balena-jetson
  3. balena-yocto-scripts/build/barys -d -m jetson-xavier

console log:

Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "jetson-xavier"
DISTRO = "balena-os"
DISTRO_VERSION = "2.115.17"
TUNE_FEATURES = "aarch64 armv8a crc"
TARGET_FPU = ""
meta-balena-rust
meta-balena-common
meta-balena-kirkstone = "HEAD:2df4a2410980aa482ebc6355e329a055917fa09d"
meta-tegra = "HEAD:583f839ccf2c7b8e90dbf74975399c92551747b2"
meta-balena-jetson = "master:0c957a74ca4a5f4e10fce83ef1aeeb43438f7642"
meta
meta-poky = "HEAD:d64bef1c7d713b92a51228e5ade945835e5a94a4"
meta-oe
meta-filesystems
meta-networking
meta-python
meta-perl = "HEAD:bd2d8fba766f912bd1bc5cde7d6f0e72152f1547"


WARNING: The BB_DISKMON_DIRS "ABORT" action has been renamed to "HALT", update configuration
Sstate summary: Wanted 772 Local 0 Mirrors 0 Missed 772 Current 1192 (0% match, 60% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
NOTE: Running task 2949 of 4669 (/home/sean/balena-jetson/build/../layers/meta-tegra/recipes-kernel/linux/linux-tegra_4.9.bb:do_deploy)
NOTE: Running task 3277 of 4669 (virtual:native:/home/sean/balena-jetson/build/../layers/meta-openembedded/meta-oe/recipes-support/nspr/nspr_4.29.bb:do_compile)
NOTE: Running task 3291 of 4669 (/home/sean/balena-jetson/build/../layers/meta-balena/meta-balena-common/recipes-connectivity/modemmanager/modemmanager_1.18.4.bb:do_compile)
NOTE: Running task 3292 of 4669 (/home/sean/balena-jetson/build/../layers/poky/meta/recipes-connectivity/ppp/ppp_2.4.9.bb:do_install)
NOTE: recipe linux-tegra-4.9.299+gitAUTOINC+ff65a92ec5-r0: task do_deploy: Started
NOTE: recipe nspr-native-4.29-r0: task do_compile: Started
NOTE: recipe modemmanager-1.18.4-r0: task do_compile: Started
NOTE: Running task 3301 of 4669 (/home/sean/balena-jetson/build/../layers/poky/meta/recipes-support/libevent/libevent_2.1.12.bb:do_compile)
NOTE: Running task 3304 of 4669 (/home/sean/balena-jetson/build/../layers/poky/meta/recipes-connectivity/mobile-broadband-provider-info/mobile-broadband-provider-info_git.bb:do_prepare_recipe_sysroot)
NOTE: recipe libevent-2.1.12-r0: task do_compile: Started
NOTE: recipe ppp-2.4.9-r0: task do_install: Started
NOTE: recipe mobile-broadband-provider-info-1_20220725-r0: task do_prepare_recipe_sysroot: Started
NOTE: recipe mobile-broadband-provider-info-1_20220725-r0: task do_prepare_recipe_sysroot: Succeeded
NOTE: Running task 3305 of 4669 (/home/sean/balena-jetson/build/../layers/meta-openembedded/meta-oe/recipes-connectivity/libndp/libndp_1.8.bb:do_prepare_recipe_sysroot)
NOTE: recipe libndp-1.8-r0: task do_prepare_recipe_sysroot: Started
NOTE: recipe libndp-1.8-r0: task do_prepare_recipe_sysroot: Succeeded
NOTE: Running task 3306 of 4669 (/home/sean/balena-jetson/build/../layers/poky/meta/recipes-extended/newt/libnewt_0.52.21.bb:do_prepare_recipe_sysroot)
NOTE: recipe ppp-2.4.9-r0: task do_install: Succeeded
NOTE: Running task 3307 of 4669 (/home/sean/balena-jetson/build/../layers/poky/meta/recipes-connectivity/mobile-broadband-provider-info/mobile-broadband-provider-info_git.bb:do_configure)
NOTE: recipe libnewt-0.52.21-r0: task do_prepare_recipe_sysroot: Started
NOTE: recipe mobile-broadband-provider-info-1_20220725-r0: task do_configure: Started
NOTE: recipe libnewt-0.52.21-r0: task do_prepare_recipe_sysroot: Succeeded
NOTE: Running task 3308 of 4669 (/home/sean/balena-jetson/build/../layers/meta-openembedded/meta-oe/recipes-connectivity/libndp/libndp_1.8.bb:do_configure)
NOTE: recipe libndp-1.8-r0: task do_configure: Started
NOTE: recipe linux-tegra-4.9.299+gitAUTOINC+ff65a92ec5-r0: task do_deploy: Succeeded
NOTE: Running task 3309 of 4669 (/home/sean/balena-jetson/build/../layers/meta-balena/meta-balena-common/recipes-devtools/kernel-modules-headers/kernel-modules-headers.bb:do_compile)
NOTE: recipe kernel-modules-headers-1.0-r0: task do_compile: Started
NOTE: recipe mobile-broadband-provider-info-1_20220725-r0: task do_configure: Succeeded
NOTE: Running task 3310 of 4669 (/home/sean/balena-jetson/build/../layers/meta-balena-jetson/recipes-bsp/tegra-binaries/tegra194-flash-dry_32.7.3.bb:do_configure)
NOTE: recipe tegra194-flash-dry-32.7.3-r0: task do_configure: Started
NOTE: recipe libevent-2.1.12-r0: task do_compile: Succeeded
NOTE: Running task 3311 of 4669 (/home/sean/balena-jetson/build/../layers/poky/meta/recipes-support/libevent/libevent_2.1.12.bb:do_install)
NOTE: recipe libevent-2.1.12-r0: task do_install: Started
ERROR: tegra194-flash-dry-32.7.3-r0 do_configure: ExecutionError('/home/sean/balena-jetson/build/tmp/work/aarch64-poky-linux/tegra194-flash-dry/32.7.3-r0/temp/run.do_configure.12075', 1, None, None)
ERROR: Logfile of failure stored in: /home/sean/balena-jetson/build/tmp/work/aarch64-poky-linux/tegra194-flash-dry/32.7.3-r0/temp/log.do_configure.12075
NOTE: recipe tegra194-flash-dry-32.7.3-r0: task do_configure: Failed
ERROR: Task (/home/sean/balena-jetson/build/../layers/meta-balena-jetson/recipes-bsp/tegra-binaries/tegra194-flash-dry_32.7.3.bb:do_configure) failed with exit code '1'
NOTE: Running task 3312 of 4669 (/home/sean/balena-jetson/build/../layers/poky/meta/recipes-extended/newt/libnewt_0.52.21.bb:do_configure)
NOTE: recipe libnewt-0.52.21-r0: task do_configure: Started
NOTE: recipe libevent-2.1.12-r0: task do_install: Succeeded
NOTE: recipe libndp-1.8-r0: task do_configure: Succeeded
ERROR: kernel-modules-headers-1.0-r0 do_compile: ExecutionError('/home/sean/balena-jetson/build/tmp/work/jetson_xavier-poky-linux/kernel-modules-headers/1.0-r0/temp/run.do_compile.9778', 2, None, None)
ERROR: Logfile of failure stored in: /home/sean/balena-jetson/build/tmp/work/jetson_xavier-poky-linux/kernel-modules-headers/1.0-r0/temp/log.do_compile.9778
NOTE: recipe kernel-modules-headers-1.0-r0: task do_compile: Failed
ERROR: Task (/home/sean/balena-jetson/build/../layers/meta-balena/meta-balena-common/recipes-devtools/kernel-modules-headers/kernel-modules-headers.bb:do_compile) failed with exit code '1'
NOTE: recipe libnewt-0.52.21-r0: task do_configure: Succeeded
NOTE: recipe nspr-native-4.29-r0: task do_compile: Succeeded
NOTE: recipe modemmanager-1.18.4-r0: task do_compile: Succeeded
NOTE: Tasks Summary: Attempted 3312 tasks of which 3298 didn't need to be rerun and 2 failed.

and the do_configure log:

DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/home/sean/balena-jetson/build/../layers/meta-tegra/recipes-bsp/cboot/cboot-t19x_32.7.3.bb:do_populate_sysroot', '/home/sean/balena-jetson/build/../layers/meta-tegra/recipes-bsp/tegra-binaries/bootlogo-prebuilt_32.7.3.bb:do_populate_sysroot', '/home/sean/balena-jetson/build/../layers/meta-tegra/recipes-bsp/tegra-binaries/tegra-bootfiles_32.7.3.bb:do_populate_sysroot', '/home/sean/balena-jetson/build/../layers/meta-tegra/recipes-bsp/tegra-binaries/tegra186-flashtools-native_32.7.3.bb:do_populate_sysroot', '/home/sean/balena-jetson/build/../layers/meta-tegra/recipes-kernel/linux/linux-tegra_4.9.bb:do_populate_sysroot', '/home/sean/balena-jetson/build/../layers/poky/meta/recipes-core/glibc/glibc_2.35.bb:do_populate_sysroot', '/home/sean/balena-jetson/build/../layers/poky/meta/recipes-devtools/gcc/gcc-cross_11.3.bb:do_populate_sysroot', '/home/sean/balena-jetson/build/../layers/poky/meta/recipes-devtools/gcc/gcc-runtime_11.3.bb:do_populate_sysroot', '/home/sean/balena-jetson/build/../layers/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/home/sean/balena-jetson/build/../layers/poky/meta/recipes-core/coreutils/coreutils_9.0.bb:do_populate_sysroot', 'virtual:native:/home/sean/balena-jetson/build/../layers/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/home/sean/balena-jetson/build/../layers/poky/meta/recipes-devtools/perl/perl_5.34.1.bb:do_populate_sysroot', 'virtual:native:/home/sean/balena-jetson/build/../layers/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/sean/balena-jetson/build/../layers/poky/meta/recipes-devtools/python/python3_3.10.4.bb:do_populate_sysroot', 'virtual:native:/home/sean/balena-jetson/build/../layers/poky/meta/recipes-kernel/dtc/dtc_1.6.1.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['cboot-t19x', 'bootlogo-prebuilt', 'tegra-bootfiles', 'tegra186-flashtools-native', 'linux-tegra', 'glibc', 'gcc-cross-aarch64', 'gcc-runtime', 'quilt-native', 'coreutils-native', 'patch-native', 'perl-native', 'pseudo-native', 'python3-native', 'dtc-native', 'attr-native', 'libtool-native', 'linux-libc-headers', 'gmp-native', 'binutils-cross-aarch64', 'flex-native', 'zlib-native', 'gnu-config-native', 'xz-native', 'zstd-native', 'libmpc-native', 'texinfo-dummy-native', 'mpfr-native', 'tegra-helper-scripts-native', 'libgcc', 'gdbm-native', 'make-native', 'gettext-minimal-native', 'ncurses-native', 'util-linux-libuuid-native', 'readline-native', 'openssl-native', 'bzip2-native', 'libtirpc-native', 'sqlite3-native', 'libffi-native', 'libnsl2-native', 'tegra-flashvars', 'm4-native', 'opkg-utils-native', 'systemd-systemctl-native', 'shared-mime-info-native', 'update-rc.d-native', 'debianutils-native', 'shadow-native', 'depmodwrapper-cross', 'kmod-native', 'qemu-native', 'glib-2.0-native', 'itstool-native', 'libxml2-native', 'util-linux-native', 'libpcre-native', 'gettext-native', 'libcap-ng-native', 'libpcre2-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_configure
cp: cannot stat '/home/sean/balena-jetson/build/tmp/deploy/images/jetson-xavier/bootlogo-jetson-xavier.blob': No such file or directory
WARNING: exit code 1 from a shell command.

The goal is to have a working build environment to start a custom build.

Upon searching I found the error happening when building balena-jetson from in a docker container and was solved by building it from a VM.

Thanks,
Sean.

Hi, this error is not present in our automated builds so it’s possibly a dependency problem or a race at build time. The bootlogo package is provided by meta-tegra/recipes-bsp/tegra-binaries/bootlogo-prebuilt_32.7.3.bb at 583f839ccf2c7b8e90dbf74975399c92551747b2 · OE4T/meta-tegra · GitHub

I assume there’s no bootlogo-* file in DEPLOY_DIR_IMAGE, right? ls /home/sean/balena-jetson/build/tmp/deploy/images/jetson-xavier/bootlogo*

If there isn’t one, you can check if the error still happens if you build the bootlogo package first, eg:

cd build/
source ../layers/poky/oe-init-build-env .
MACHINE=jetson-xavier bitbake bootlogo
MACHINE=jetson-xavier bitbake tegra194-flash-dry
1 Like

Turned out to be a dependency issue. Thank you!

After updating some of my dependency versions to at least the minimum for Yocto I still encountered the error cp: cannot stat '/home/sean/balena-jetson/build/tmp/deploy/images/jetson-xavier/bootlogo-jetson-xavier.blob': No such file or directory

The fix for it was to inherit ‘rm_work’ in ‘local.conf’ by adding the --rm-work option to the build command.

2 Likes