Hi @TheYoctoJester,
When I do a clean Yocto build. Meaning: I pull the GitHub - TechNexion/meta-tn-imx-bsp at kirkstone_5.15.71-2.2.0-stable, sync the repo, and build the imx-image-core
. This image works just fine. It has nothing as to be expected, but I can login and execute some commands.
Following your suggestions, When I add the mender layers:
BBLAYERS += " ${BSPDIR}/sources/meta-mender/meta-mender-core "
BBLAYERS += " ${BSPDIR}/sources/meta-mender-community/meta-mender-nxp "
I appended the content from the meta-mender-community/templates/local.conf.append
to my local.conf
. After that I tried to build the image. It reaches to 99% but then it fails.
$ bitbake imx-image-core
WARNING: Layer nxp-nfc should set LAYERSERIES_COMPAT_nxp-nfc in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
WARNING: /home/reach/edm_yocto_kirkstone/sources/meta-tn-imx-bsp/recipes-core/images/tn-image-docker-os.bb: distro_features_check.bbclass is deprecated, please use features_check.bbclass instead | ETA: 0:00:41
WARNING: /home/reach/edm_yocto_kirkstone/sources/meta-tn-imx-bsp/recipes-core/images/tn-image-docker-os.bb: Recipe inherits features_check but doesn't use it
Parsing recipes: 100% |#########################################################################################################################################################################################| Time: 0:00:47
Parsing of 3320 .bb files complete (0 cached, 3320 parsed). 4918 targets, 301 skipped, 5 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime linux-mfgtool-base (linux-fslc-lts-mfgtool, linux-fslc-mfgtool, linux-imx-mfgtool)
Consider defining a PREFERRED_RPROVIDER entry to match linux-mfgtool-base
NOTE: Multiple providers are available for runtime linux-mfgtool-image (linux-fslc-lts-mfgtool, linux-fslc-mfgtool, linux-imx-mfgtool)
Consider defining a PREFERRED_RPROVIDER entry to match linux-mfgtool-image
NOTE: Multiple providers are available for runtime linux-mfgtool-image-image (linux-fslc-lts-mfgtool, linux-fslc-mfgtool, linux-imx-mfgtool)
Consider defining a PREFERRED_RPROVIDER entry to match linux-mfgtool-image-image
Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-22.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "axon-imx8mp"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "5.15-kirkstone"
TUNE_FEATURES = "aarch64 armv8a crc crypto"
TARGET_FPU = ""
meta
meta-poky = "HEAD:65dafea22018052fe7b2e17e6e4d7eb754224d38"
meta-oe
meta-multimedia
meta-python = "HEAD:7da6cb848bc42b3e6bd5d2b37b52ba75510a6ca0"
meta-freescale = "HEAD:c82d4634e7aba8bc0de73ce1dfc997b630051571"
meta-freescale-3rdparty = "HEAD:5977197340c7a7db17fe3e02a4e014ad997565ae"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-bsp
meta-sdk
meta-ml
meta-v2x = "HEAD:ca68ab5d25322b51f54564275c84ab8de3c74ea6"
meta-nxp-demo-experience = "HEAD:52eaf8bf42f8eda2917a1c8c046003c8c2c8f629"
meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"
meta-clang = "HEAD:c728c3f9168c8a4ed05163a51dd48ca1ad8ac21d"
meta-gnome
meta-networking
meta-filesystems = "HEAD:7da6cb848bc42b3e6bd5d2b37b52ba75510a6ca0"
meta-qt6 = "HEAD:ed785a25d12e365d1054700d4fc94a053176eb14"
meta-virtualization = "HEAD:9482648daf0bb42ff3475e7892542cf99f3b8d48"
meta-tn-imx-bsp = "HEAD:1ae9d78e6dabeabf9cb914274a79347a608c141b"
meta-tn-wifi = "HEAD:84f80aeeb629331777582da41e207ced62e97a81"
meta-tn-vizionsdk = "HEAD:e57d6deda5c27d9fafce394d7caacaf7a2ae6ec0"
meta-nxp-nfc = "HEAD:5e0e59f5b86f9cb63f5d369dbb514d644d3e76de"
meta-mender-core = "kirkstone:60db3bb689c956f7b148480b2c7a02351cbe4dbc"
meta-mender-nxp = "kirkstone:4dce73360532fe9b65db7759fc984b839efb37ca"
WARNING: The BB_DISKMON_DIRS "ABORT" action has been renamed to "HALT", update configuration
Initialising tasks: 100% |######################################################################################################################################################################################| Time: 0:00:16
Sstate summary: Wanted 3881 Local 3871 Mirrors 0 Missed 10 Current 0 (99% match, 0% complete)
NOTE: Executing Tasks
ERROR: imx-image-core-1.0-r0 do_image_bootimg: ExecutionError('/home/reach/edm_yocto_kirkstone/build-axon-wizard/tmp/work/axon_imx8mp-poky-linux/imx-image-core/1.0-r0/temp/run.do_image_bootimg.2787062', 1, None, None)
ERROR: Logfile of failure stored in: /home/reach/edm_yocto_kirkstone/build-axon-wizard/tmp/work/axon_imx8mp-poky-linux/imx-image-core/1.0-r0/temp/log.do_image_bootimg.2787062
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/reach/edm_yocto_kirkstone/sources/meta-imx/meta-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb:do_populate_sysroot', '/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-core/glibc
/cross-localedef-native_2.35.bb:do_populate_sysroot', '/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '/home/reach/edm_yocto_kirkstone/sources/poky/meta/
recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yo
cto_kirkstone/sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-devtools/apt/apt_2.4.5.bb:do_populate_sysroot', 'vi
rtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.2.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-devtools/dpkg/dpkg
_1.21.4.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/po
ky/meta/recipes-devtools/mtools/mtools_4.0.38.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb:do_populate_sysroot', 'virtual:native:
/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_pop
ulate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-extended/pigz/pigz_2.7.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-extended/xz
/xz_5.2.6.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/meta/recipes-extended/zstd/zstd_1.5.2.bb:do_populate_sysroot', 'virtual:native:/home/reach/edm_yocto_kirkstone/sources/poky/met
a/recipes-support/bmap-tools/bmap-tools_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['dosfstools-native', 'mtools-native']
| NOTE: Skipping as already exists in sysroot: ['imx-boot', 'cross-localedef-native', 'ldconfig-native', 'qemuwrapper-cross', 'depmodwrapper-cross', 'update-rc.d-native', 'apt-native', 'dpkg-native', 'makedevs-native', 'opk
g-utils-native', 'pseudo-native', 'pbzip2-native', 'pigz-native', 'xz-native', 'zstd-native', 'bmap-tools-native', 'systemd-systemctl-native', 'gettext-minimal-native', 'perl-native', 'libtool-native', 'gettext-native', 'zl
ib-native', 'bzip2-native', 'kmod-native', 'debianutils-native', 'openssl-native', 'shadow-native', 'qemu-native', 'glib-2.0-native', 'u-boot-tn-imx', 'imx-atf', 'gcc-runtime', 'glibc', 'firmware-imx-8m', 'gdk-pixbuf-native
', 'gtk+3-native', 'desktop-file-utils-native', 'texinfo-dummy-native', 'mkfontscale-native', 'db-native', 'xxhash-native', 'gnutls-native', 'libgcrypt-native', 'lz4-native', 'cmake-native', 'nss-native', 'shared-mime-info-
native', 'python3-native', 'coreutils-native', 'python3-six-native', 'python3-installer-native', 'python3-setuptools-native', 'python3-wheel-native', 'gdbm-native', 'make-native', 'libffi-native', 'libpcre-native', 'util-li
nux-native', 'linux-libc-headers', 'libgcc', 'libjpeg-turbo-native', 'gobject-introspection-native', 'libpng-native', 'libxfixes-native', 'libxi-native', 'cairo-native', 'fontconfig-native', 'libxrender-native', 'libxrandr-
native', 'libxdamage-native', 'atk-native', 'libxcursor-native', 'libxext-native', 'libxcomposite-native', 'at-spi2-atk-native', 'libx11-native', 'pango-native', 'xorgproto-native', 'util-macros-native', 'freetype-native',
'libfontenc-native', 'p11-kit-native', 'libunistring-native', 'nettle-native', 'gmp-native', 'libidn2-native', 'libgpg-error-native', 'libcap-native', 'curl-native', 'ncurses-native', 'sqlite3-native', 'nspr-native', 'itsto
ol-native', 'libxml2-native', 'libtirpc-native', 'libnsl2-native', 'util-linux-libuuid-native', 'readline-native', 'attr-native', 'unzip-native', 'python3-flit-core-native', 'libcap-ng-native', 'libpcre2-native', 'flex-nati
ve', 'libxcb-native', 'libsm-native', 'pixman-native', 'expat-native', 'at-spi2-core-native', 'dbus-native', 'xtrans-native', 'fribidi-native', 'harfbuzz-native', 'libxft-native', 'font-util-native', 'libtasn1-native', 'm4-
native', 'libpthread-stubs-native', 'xcb-proto-native', 'libxdmcp-native', 'libxau-native', 'libice-native', 'libxtst-native', 'icu-native', 'gnu-config-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function set_image_size
| DEBUG: 1645758.400000 = 1265968 * 1.300000
| DEBUG: 1645758.400000 = max(1645758.400000, 507904)[1645758.400000] + 0
| DEBUG: 1645759.000000 = int(1645758.400000)
| DEBUG: 1645759 = aligned(1645759)
| DEBUG: returning 1645759
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_bootimg
| 0+0 records in
| 0+0 records out
| 0 bytes copied, 2.0377e-05 s, 0.0 kB/s
| mkfs.fat: Warning: lowercase labels might not work properly on some systems
| mkfs.fat 4.2 (2021-01-31)
| Disk full
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/reach/edm_yocto_kirkstone/sources/meta-imx/meta-sdk/recipes-fsl/images/imx-image-core.bb:do_image_bootimg) failed with exit code '1'
NOTE: Tasks Summary: Attempted 9464 tasks of which 8767 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/reach/edm_yocto_kirkstone/sources/meta-imx/meta-sdk/recipes-fsl/images/imx-image-core.bb:do_image_bootimg
Summary: There were 3 WARNING messages.
Summary: There was 1 ERROR message, returning a non-zero exit code.
It is unclear to me what’s missing and/or miss-configured.