@alexgg, see below for the logs from api_fetch_supervisor_image
. The issue is that we have our own custom hardware / device type, and if I try to override MACHINE
to raspberrypi4-64
(our device is CM4-based) in a bbappend
for the balena-supervisor
recipe, it completes the install
step of balena-supervisor
but fails at the package
step (also see below). If we can get through this I’ll help troubleshoot the on-device supervisor upgrade process as well.
Output of set -x
on api_fetch_supervisor_image
(without MACHINE
override)
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['virtual:native:/yocto/host/build/../layers/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/yocto/host/build/../layers/meta-openembedded/meta->
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['pseudo-native', 'jq-native', 'patch-native', 'glibc', 'gcc-cross-aarch64', 'gcc-runtime', 'curl-native', 'systemd-systemctl-native', 'quilt-native', 'autoconf-native>
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_install
+ _version=v12.11.36
+ jq --raw-output .slug /yocto/host/build/../harmoni-h1-pilot.json
+ _slug=harmoni-h1-pilot
+ _api_env=balena-cloud.com
+ _token=
+ [ -z ]
+ [ -f ~/.balena/token ]
+ true
+ jq -r .d[].image_name
+ curl -X GET --silent -k https://api.balena-cloud.com/v6/supervisor_release?$select=image_name&$filter=(is_for__device_type/slug%20eq%20%27harmoni-h1-pilot%27)%20and%20(supervisor_version%20eq%20%27v12.11.36%27)>
ERROR: Could not retrieve supervisor image for version v12.11.36
WARNING: exit code 1 from a shell command.
Package fail with MACHINE
override to raspberrypi4-64
:
DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/yocto/host/build/../layers/poky/meta/recipes-core/glibc/glibc_2.34.bb:do_populate_sysroot', 'virtual:native:/yocto/host/build/../layers/poky/meta/recipes-devtools/rpm/rpm_4.16.1.3>
NOTE: Installed into sysroot: ['rpm-native', 'dwarfsrcfiles-native', 'popt-native', 'db-native', 'python3-native', 'bzip2-native', 'elfutils-native', 'file-native', 'libgcrypt-native', 'sqlite3-native', 'libffi-n>
NOTE: Skipping as already exists in sysroot: ['glibc', 'patch-native', 'curl-native', 'gcc-cross-aarch64', 'gcc-runtime', 'pseudo-native', 'jq-native', 'quilt-native', 'systemd-systemctl-native', 'autoconf-native>
DEBUG: sed -e 's:^[^/]*/:/yocto/host/build/tmp/work/cortexa72-poky-linux/balena-supervisor/1.0-r0/recipe-sysroot-native/:g' /yocto/host/build/tmp/sysroots-components/x86_64/rpm-native/fixmepath /yocto/host/build/>
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing python function do_package
DEBUG: Executing python function package_convert_pr_autoinc
DEBUG: Python function package_convert_pr_autoinc finished
DEBUG: Executing python function package_prepare_pkgdata
ERROR: Manifest /yocto/host/build/tmp/sstate-control/manifest-x86_64_x86_64-nativesdk-glibc.packagedata not found in raspberrypi4_64 cortexa72 armv8a-crc-crypto armv8a-crypto armv8a-crc armv8a aarch64 allarch x86>
DEBUG: Python function package_prepare_pkgdata finished
DEBUG: Python function do_package finished