Hi,
I’m new to Yocto/Mender and I’m working with the imx8mnevk board. I’ve followed the guide (for Zeus), but attempting to get it to work with Kirkstone. I’ve added mender-setup-imx.bbclass, from the Zeus branch, and updated it to the newer syntax. It built without error, but didn’t have any images of use (that I was aware of). Using the Pi before, I added the following:
MENDER_FEATURES_ENABLE:append = "mender-uboot mender-image-sd"
MENDER_FEATURES_DISABLE:append = "mender-grub mender-image-uefi"
I get the following error:
ERROR: core-image-base-1.0-r0 do_image_sdimg: ExecutionError('/home/chance/mender-imx/build/tmp/work/imx8mnevk-poky-linux/core-image-base/1.0-r0/temp/run.do_image_sdimg.1887472', 1, None, None)
ERROR: Logfile of failure stored in: /home/chance/mender-imx/build/tmp/work/imx8mnevk-poky-linux/core-image-base/1.0-r0/temp/log.do_image_sdimg.1887472
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-extended/pigz/pigz_2.7.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.5.bb:do_populate_sysroot', '/home/chance/mender-imx/sources/meta-imx/meta-bsp/recipes-fsl/mcore-demos/imx-m7-demos_2.11.1.bb:do_populate_sysroot', '/home/chance/mender-imx/sources/meta-freescale/recipes-bsp/imx-mkimage/imx-boot_1.0.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.8.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-devtools/mtools/mtools_4.0.38.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-devtools/dpkg/dpkg_1.21.4.bb:do_populate_sysroot', '/home/chance/mender-imx/sources/poky/meta/recipes-core/glibc/cross-localedef-native_2.35.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', '/home/chance/mender-imx/sources/poky/meta/recipes-core/meta/wic-tools.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-devtools/apt/apt_2.4.4.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-core/coreutils/coreutils_9.0.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', '/home/chance/mender-imx/sources/meta-imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2022.04.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.2.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-support/bmap-tools/bmap-tools_git.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb:do_populate_sysroot', '/home/chance/mender-imx/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', '/home/chance/mender-imx/sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/home/chance/mender-imx/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/poky/meta/recipes-extended/parted/parted_3.4.bb:do_populate_sysroot', 'virtual:native:/home/chance/mender-imx/sources/meta-mender/meta-mender-core/recipes-mender/mender-artifact/mender-artifact_3.9.0.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['pigz-native', 'makedevs-native', 'e2fsprogs-native', 'imx-m7-demos', 'imx-boot', 'gptfdisk-native', 'mtools-native', 'dpkg-native', 'cross-localedef-native', 'pbzip2-native', 'wic-tools', 'apt-native', 'coreutils-native', 'update-rc.d-native', 'pseudo-native', 'u-boot-imx', 'dosfstools-native', 'bmap-tools-native', 'opkg-utils-native', 'depmodwrapper-cross', 'qemuwrapper-cross', 'ldconfig-native', 'parted-native', 'mender-artifact-native', 'zlib-native', 'shadow-native', 'systemd-systemctl-native', 'attr-native', 'texinfo-dummy-native', 'gettext-minimal-native', 'libtool-native', 'util-linux-native', 'glibc', 'gcc-runtime', 'shared-mime-info-native', 'ncurses-native', 'popt-native', 'xz-native', 'gettext-native', 'perl-native', 'bzip2-native', 'kmod-native', 'qemu-native', 'grub-efi', 'systemd-boot', 'xxhash-native', 'lz4-native', 'gnutls-native', 'db-native', 'libgcrypt-native', 'cmake-native', 'python3-six-native', 'python3-native', 'python3-wheel-native', 'python3-installer-native', 'python3-setuptools-native', 'openssl-native', 'debianutils-native', 'readline-native', 'go-binary-native', 'util-linux-libuuid-native', 'libpcre2-native', 'libcap-ng-native', 'linux-libc-headers', 'libgcc', 'libxml2-native', 'glib-2.0-native', 'itstool-native', 'gdbm-native', 'libcap', 'gnu-efi', 'util-linux', 'nettle-native', 'libidn2-native', 'gmp-native', 'libunistring-native', 'p11-kit-native', 'libcap-native', 'libgpg-error-native', 'curl-native', 'zstd-native', 'libffi-native', 'sqlite3-native', 'libtirpc-native', 'libnsl2-native', 'python3-flit-core-native', 'unzip-native', 'libpcre-native', 'libpam', 'zlib', 'ncurses', 'util-linux-libuuid', 'bash-completion', 'libcap-ng', 'libxcrypt', 'opkg-utils', 'libtasn1-native', 'cracklib', 'flex']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function prepare_excluded_directories
| DEBUG: 'IMAGE_ROOTFS_EXCLUDE_PATH' is set but 'respect_exclude_path' variable flag is 0 for this image type, so ignoring it
| DEBUG: Python function prepare_excluded_directories finished
| DEBUG: Executing python function set_image_size
| DEBUG: 272532.000000 = 272532 * 1.000000
| DEBUG: 1982464.000000 = max(272532.000000, 1982464)[1982464.000000] + 0
| DEBUG: 1982464.000000 = int(1982464.000000)
| DEBUG: 1982464 = aligned(1982464)
| DEBUG: returning 1982464
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_sdimg
| + mkdir -p /home/chance/mender-imx/build/tmp/work/imx8mnevk-poky-linux/core-image-base/1.0-r0
| + true
| + install -m 0644 /home/chance/mender-imx/build/tmp/deploy/images/imx8mnevk/uboot.env /home/chance/mender-imx/build/tmp/work/imx8mnevk-poky-linux/core-image-base/1.0-r0/
| install: cannot stat '/home/chance/mender-imx/build/tmp/deploy/images/imx8mnevk/uboot.env': No such file or directory
| + bb_sh_exit_handler
| + ret=1
| + [ 1 != 0 ]
| + echo WARNING: exit code 1 from a shell command.
| + exit 1
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/chance/mender-imx/sources/poky/meta/recipes-core/images/core-image-base.bb:do_image_sdimg) failed with exit code '1'
I just wanted to see if someone with more experience had any thoughts/ideas on where I am going wrong. Thanks!