imx6qsabresd/zImage': No such file or directory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6qsabresd/zImage': No such file or directory

842 Views
Kampi
Contributor I

Hello,

I try to build a new image for my i.MX SABRE board by using Yocto. I followed the documentation from the NXP Yocto guide, but the process fails with the error 

$ bitbake core-image-full-cmdline

Initialising tasks: 100% |##################################################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 5 Local 0 Mirrors 0 Missed 5 Current 1260 (0% match, 99% complete)
Removing 1 stale sstate objects for arch imx6qsabresd: 100% |###############################################################################################################| Time: 0:00:00
NOTE: Executing Tasks
ERROR: core-image-minimal-1.0-r0 do_image_wic: ExecutionError('...build/tmp/work/imx6qsabresd-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_wic.4100865', 1, None, None)
ERROR: Logfile of failure stored in: ...build/tmp/work/imx6qsabresd-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_wic.4100865
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['...sources/meta-imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2023.04.bb:do_populate_sysroot', '...sources/meta-imx/meta-bsp/recipes-security/optee/optee-os_3.21.0.imx.bb:do_populate_sysroot', '...sources/poky/meta/recipes-core/glibc/cross-localedef-native_2.37.bb:do_populate_sysroot', '...sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '...sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '...sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/apt/apt_2.4.5.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.2.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/dpkg/dpkg_1.21.21.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.9.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/mtools/mtools_4.0.42.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-extended/parted/parted_3.5.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-extended/pigz/pigz_2.7.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-extended/zstd/zstd_1.5.4.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-support/bmap-tools/bmap-tools_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['u-boot-imx', 'optee-os', 'cross-localedef-native', 'ldconfig-native', 'qemuwrapper-cross', 'depmodwrapper-cross', 'update-rc.d-native', 'apt-native', 'dosfstools-native', 'dpkg-native', 'e2fsprogs-native', 'gptfdisk-native', 'makedevs-native', 'mtools-native', 'opkg-utils-native', 'pseudo-native', 'parted-native', 'pigz-native', 'zstd-native', 'bmap-tools-native', 'perl-native', 'systemd-systemctl-native', 'qemu-native', 'glibc', 'gcc-runtime', 'util-linux-native', 'gettext-minimal-native', 'libtool-native', 'ncurses-native', 'xz-native', 'readline-native', 'texinfo-dummy-native', 'shared-mime-info-native', 'shadow-native', 'popt-native', 'attr-native', 'kmod-native', 'lz4-native', 'zlib-native', 'db-native', 'cmake-native', 'libgcrypt-native', 'xxhash-native', 'gnutls-native', 'python3-installer-native', 'python3-native', 'python3-build-native', 'python3-setuptools-native', 'coreutils-native', 'python3-wheel-native', 'python3-six-native', 'bzip2-native', 'gettext-native', 'libmd-native', 'openssl-native', 'debianutils-native', 'gdbm-native', 'make-native', 'glib-2.0-native', 'linux-libc-headers', 'libgcc', 'libpcre2-native', 'libcap-ng-native', 'util-linux-libuuid-native', 'itstool-native', 'libxml2-native', 'libgpg-error-native', 'libcap-native', 'nettle-native', 'gmp-native', 'p11-kit-native', 'libidn2-native', 'libunistring-native', 'python3-flit-core-native', 'libnsl2-native', 'sqlite3-native', 'libtirpc-native', 'libffi-native', 'python3-pyproject-hooks-native', 'python3-packaging-native', 'libtasn1-native', 'unzip-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function set_image_size
| DEBUG: 196955.200000 = 151504 * 1.300000
| DEBUG: 196955.200000 = max(196955.200000, 65536)[196955.200000] + 0
| DEBUG: 196956.000000 = int(196955.200000)
| DEBUG: 196956 = aligned(196956)
| DEBUG: returning 196956
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_wic
| INFO: Creating image(s)...
|
| ERROR: _exec_cmd: install -m 0644 -D ...build/tmp/deploy/images/imx6qsabresd/zImage ...build/tmp/work/imx6qsabresd-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/tmp-wic/boot.2/zImage returned '1' instead of 0
| output: install: cannot stat '...build/tmp/deploy/images/imx6qsabresd/zImage': No such file or directory
|
| WARNING: ...build/tmp/work/imx6qsabresd-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/temp/run.do_image_wic.4081496:161 exit 1 from 'BUILDDIR="...build" PSEUDO_UNLOAD=1 wic create "$wks" --vars "...build/tmp/sysroots/imx6qsabresd/imgdata/" -e "core-image-full-cmdline" -o "$build_wic/" -w "$tmp_wic" --no-fstab-update'
| WARNING: Backtrace (BB generated script):
| #1: do_image_wic, ...build/tmp/work/imx6qsabresd-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/temp/run.do_image_wic.4081496, line 161
| #2: main, ...build/tmp/work/imx6qsabresd-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/temp/run.do_image_wic.4081496, line 180
ERROR: Task (...sources/poky/meta/recipes-extended/images/core-image-full-cmdline.bb:do_image_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3691 tasks of which 3663 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
...sources/poky/meta/recipes-extended/images/core-image-full-cmdline.bb:do_image_wic
Summary: There was 1 ERROR message, returning a non-zero exit code.

How can I solve this issue?

0 Kudos
Reply
6 Replies

820 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Kampi!


The image that are you compiling is not supported by NXP.

I recommend checking the Yocto Project Users Guide in the chapter "5.2 Choosing an i.MX Yocto project image".

Chavira_0-1695924152859.png


Best Regards!
Chavira

 

0 Kudos
Reply

810 Views
Kampi
Contributor I

Hi,

thank you. That was my first thought too, so I tried different images from the documentation, but the error still existed.

$ bitbake fsl-image-machine-test
Loading cache: 100% |#######################################################################################################################################################| Time: 0:00:00
Loaded 5306 entries from dependency cache.
Parsing recipes: 100% |#####################################################################################################################################################| Time: 0:00:00
Parsing of 3444 .bb files complete (3443 cached, 1 parsed). 5307 targets, 660 skipped, 17 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.4.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6qsabresd"
DISTRO = "fsl-imx-wayland"
DISTRO_VERSION = "6.1-mickledore"
TUNE_FEATURES = "arm vfp cortexa9 neon thumb callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:ddb298ce894482467d82699d223c5555baad6591"
meta-oe
meta-multimedia
meta-python = "HEAD:54b177f4acb3048d21a68f180fc183d0fdf47a94"
meta-freescale = "HEAD:39d8f0d5ee44aae9932923e9fe95b7f2838563af"
meta-freescale-3rdparty = "HEAD:48cc5dd42007d09295677bc8bc0377fe96b5b270"
meta-freescale-distro = "HEAD:a4efa17a9f6b25d8d9290dfee8275059d40b83df"
meta-bsp
meta-sdk
meta-ml
meta-v2x = "HEAD:64a864ab77de06a557afcb01e6dd4d21606e6948"
meta-nxp-demo-experience = "HEAD:ec9d5592dc6369622dc027ad456cadb844451226"
meta-arm
meta-arm-toolchain = "HEAD:0b5724266a8e559cac1724350c1ff2f9e6580326"
meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"
meta-clang = "HEAD:1e0af2f5bb797d7bb639c2ac03c1248cc8d00bc9"
meta-gnome
meta-networking
meta-filesystems = "HEAD:54b177f4acb3048d21a68f180fc183d0fdf47a94"
meta-qt6 = "HEAD:1406d0a85525a71fe5d7892d7f915404290a78ad"
meta-parsec
meta-tpm = "HEAD:d7db0a3bd1a8639df7570483f003ce00cbe274a2"
meta-virtualization = "HEAD:2bb4071ad372d4b5a092c872c0d42b261f757681"

Initialising tasks: 100% |##################################################################################################################################################| Time: 0:00:02
Sstate summary: Wanted 7 Local 0 Mirrors 0 Missed 7 Current 2893 (0% match, 99% complete)
NOTE: Executing Tasks
ERROR: fsl-image-machine-test-1.0-r0 do_image_wic: ExecutionError('...build/tmp/work/imx6qsabresd-poky-linux-gnueabi/fsl-image-machine-test/1.0-r0/temp/run.do_image_wic.4133797', 1, None, None)
ERROR: Logfile of failure stored in: ...build/tmp/work/imx6qsabresd-poky-linux-gnueabi/fsl-image-machine-test/1.0-r0/temp/log.do_image_wic.4133797
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['...sources/meta-imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2023.04.bb:do_populate_sysroot', '...sources/meta-imx/meta-bsp/recipes-security/optee/optee-os_3.21.0.imx.bb:do_populate_sysroot', '...sources/poky/meta/recipes-core/glibc/cross-localedef-native_2.37.bb:do_populate_sysroot', '...sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '...sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '...sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/apt/apt_2.4.5.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.2.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/dpkg/dpkg_1.21.21.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.9.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/mtools/mtools_4.0.42.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-extended/parted/parted_3.5.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-extended/pigz/pigz_2.7.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-extended/zstd/zstd_1.5.4.bb:do_populate_sysroot', 'virtual:native:...sources/poky/meta/recipes-support/bmap-tools/bmap-tools_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['dosfstools-native', 'gptfdisk-native', 'mtools-native', 'parted-native', 'popt-native']
| NOTE: Skipping as already exists in sysroot: ['u-boot-imx', 'optee-os', 'cross-localedef-native', 'ldconfig-native', 'qemuwrapper-cross', 'depmodwrapper-cross', 'update-rc.d-native', 'apt-native', 'dpkg-native', 'e2fsprogs-native', 'makedevs-native', 'opkg-utils-native', 'pseudo-native', 'pigz-native', 'zstd-native', 'bmap-tools-native', 'qemu-native', 'systemd-systemctl-native', 'shadow-native', 'gcc-runtime', 'glibc', 'ncurses-native', 'util-linux-native', 'kmod-native', 'debianutils-native', 'openssl-native', 'glib-2.0-native', 'gdk-pixbuf-native', 'texinfo-dummy-native', 'libtool-native', 'gettext-native', 'xz-native', 'libmd-native', 'bzip2-native', 'gettext-minimal-native', 'zlib-native', 'perl-native', 'attr-native', 'python3-installer-native', 'python3-six-native', 'python3-native', 'python3-setuptools-native', 'coreutils-native', 'python3-build-native', 'python3-wheel-native', 'lz4-native', 'db-native', 'cmake-native', 'gnutls-native', 'xxhash-native', 'libgcrypt-native', 'shared-mime-info-native', 'readline-native', 'gtk+3-native', 'libgcc', 'linux-libc-headers', 'util-linux-libuuid-native', 'libpcre2-native', 'libcap-ng-native', 'libffi-native', 'libpng-native', 'libjpeg-turbo-native', 'gobject-introspection-native', 'make-native', 'gdbm-native', 'python3-flit-core-native', 'libtirpc-native', 'sqlite3-native', 'libnsl2-native', 'python3-pyproject-hooks-native', 'python3-packaging-native', 'gmp-native', 'libunistring-native', 'p11-kit-native', 'nettle-native', 'libidn2-native', 'libcap-native', 'libgpg-error-native', 'libxml2-native', 'itstool-native', 'libxrandr-native', 'libxcursor-native', 'libx11-native', 'libxi-native', 'at-spi2-core-native', 'libxext-native', 'libxfixes-native', 'pango-native', 'libxcomposite-native', 'libxrender-native', 'fontconfig-native', 'libxdamage-native', 'cairo-native', 'flex-native', 'unzip-native', 'libtasn1-native', 'util-macros-native', 'xorgproto-native', 'libxcb-native', 'xtrans-native', 'dbus-native', 'libxtst-native', 'freetype-native', 'harfbuzz-native', 'fribidi-native', 'libxft-native', 'expat-native', 'libsm-native', 'pixman-native', 'm4-native', 'libpthread-stubs-native', 'libxau-native', 'xcb-proto-native', 'libxdmcp-native', 'icu-native', 'libice-native', 'gnu-config-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function set_image_size
| DEBUG: 1657390.800000 = 1274916 * 1.300000
| DEBUG: 1657390.800000 = max(1657390.800000, 65536)[1657390.800000] + 0
| DEBUG: 1657391.000000 = int(1657390.800000)
| DEBUG: 1657391 = aligned(1657391)
| DEBUG: returning 1657391
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_wic
| INFO: Creating image(s)...
|
| ERROR: _exec_cmd: install -m 0644 -D ...build/tmp/deploy/images/imx6qsabresd/zImage ...build/tmp/work/imx6qsabresd-poky-linux-gnueabi/fsl-image-machine-test/1.0-r0/tmp-wic/boot.2/zImage returned '1' instead of 0
| output: install: cannot stat '...build/tmp/deploy/images/imx6qsabresd/zImage': No such file or directory
|
| WARNING: ...build/tmp/work/imx6qsabresd-poky-linux-gnueabi/fsl-image-machine-test/1.0-r0/temp/run.do_image_wic.4133797:161 exit 1 from 'BUILDDIR="...build" PSEUDO_UNLOAD=1 wic create "$wks" --vars "...build/tmp/sysroots/imx6qsabresd/imgdata/" -e "fsl-image-machine-test" -o "$build_wic/" -w "$tmp_wic" --no-fstab-update'
| WARNING: Backtrace (BB generated script):
| #1: do_image_wic, ...build/tmp/work/imx6qsabresd-poky-linux-gnueabi/fsl-image-machine-test/1.0-r0/temp/run.do_image_wic.4133797, line 161
| #2: main, ...build/tmp/work/imx6qsabresd-poky-linux-gnueabi/fsl-image-machine-test/1.0-r0/temp/run.do_image_wic.4133797, line 180
ERROR: Task (...sources/meta-freescale-distro/recipes-fsl/images/fsl-image-machine-test.bb:do_image_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6951 tasks of which 6941 didn't need to be rerun and 1 failed.

0 Kudos
Reply

793 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Kampi!


The image that are you compiling is not supported by NXP.

I recommend checking the Yocto Project Users Guide in the chapter "5.2 Choosing an i.MX Yocto project image".

https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf


Best Regards!
Chavira

0 Kudos
Reply

785 Views
Kampi
Contributor I

Hi @Chavira 

sorry I didn´t understand it...

Table 1 is listing the fsl-image-machine-test image. So why isn´t it supported?

Kampi_0-1695992772458.png

 

0 Kudos
Reply

778 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Kampi !
That image was created by the community not directly by NXP.

For that case, I recommend deleting your actual Yocto project and compiling the "imx-image-core" image if you want only the terminal in your board

Best Regards!
Chavira

0 Kudos
Reply

742 Views
Kampi
Contributor I

Hi,

I found a solution by removing the complete directory and rebuilding everything again.

0 Kudos
Reply