Hi, I tried to build embedded linux with the help of Yocto for the imx8mplus evaluation board but when bitbake wants to deploy image file I received the error that shows the imx-boot file doesn't find.
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 4736 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:02
Parsing of 3190 .bb files complete (3188 cached, 2 parsed). 4738 targets, 527 skipped, 3 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mp-lpddr4-evk"
DISTRO = "fsl-imx-wayland"
DISTRO_VERSION = "5.15-kirkstone"
TUNE_FEATURES = "aarch64 armv8a crc crypto"
TARGET_FPU = ""
meta
meta-poky = "HEAD:24a3f7b3648185e33133f5d96b184a6cb6524f3d"
meta-oe
meta-multimedia
meta-python = "HEAD:744a4b6eda88b9a9ca1cf0df6e18be384d9054e3"
meta-freescale = "HEAD:c82d4634e7aba8bc0de73ce1dfc997b630051571"
meta-freescale-3rdparty = "HEAD:5977197340c7a7db17fe3e02a4e014ad997565ae"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-bsp
meta-sdk
meta-ml
meta-v2x = "HEAD:01df9917808c12ac561b417d2b1f3652a64cdab9"
meta-nxp-demo-experience = "HEAD:52eaf8bf42f8eda2917a1c8c046003c8c2c8f629"
meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"
meta-clang = "HEAD:c728c3f9168c8a4ed05163a51dd48ca1ad8ac21d"
meta-gnome
meta-networking
meta-filesystems = "HEAD:744a4b6eda88b9a9ca1cf0df6e18be384d9054e3"
meta-qt6 = "HEAD:ed785a25d12e365d1054700d4fc94a053176eb14"
meta-virtualization = "HEAD:9482648daf0bb42ff3475e7892542cf99f3b8d48"
WARNING: /home/arash/Desktop/imx-yocto-bsp/sources/meta-imx/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite-vx-delegate_2.9.1.bb:do_compile is tainted from a forced run
Initialising tasks: 100% |#######################################| Time: 0:00:06
Sstate summary: Wanted 21 Local 19 Mirrors 0 Missed 2 Current 4260 (90% match, 99% complete)
NOTE: Executing Tasks
ERROR: imx-image-full-1.0-r0 do_image_wic: ExecutionError('/home/arash/Desktop/imx-yocto-bsp/build-wayland/tmp/work/imx8mp_lpddr4_evk-poky-linux/imx-image-full/1.0-r0/temp/run.do_image_wic.4068', 1, None, None)
ERROR: Logfile of failure stored in: /home/arash/Desktop/imx-yocto-bsp/build-wayland/tmp/work/imx8mp_lpddr4_evk-poky-linux/imx-image-full/1.0-r0/temp/log.do_image_wic.4068
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/arash/Desktop/imx-yocto-bsp/sources/meta-imx/meta-bsp/recipes-bsp/imx-mkimage/imx-boot_1.0.bb:do_populate_sysroot', '/home/arash/Desktop/imx-yocto-bsp/sources/meta-imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2022.04.bb:do_populate_sysroot', '/home/arash/Desktop/imx-yocto-bsp/sources/meta-imx/meta-bsp/recipes-fsl/mcore-demos/imx-m7-demos_2.12.1.bb:do_populate_sysroot', '/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-core/glibc/cross-localedef-native_2.35.bb:do_populate_sysroot', '/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-devtools/apt/apt_2.4.5.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.2.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-devtools/dpkg/dpkg_1.21.4.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.5.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.8.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-devtools/mtools/mtools_4.0.38.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-extended/parted/parted_3.4.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-extended/pigz/pigz_2.7.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/sources/poky/meta/recipes-extended/zstd/zstd_1.5.2.bb:do_populate_sysroot', 'virtual:native:/home/arash/Desktop/imx-yocto-bsp/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: ['imx-boot', 'u-boot-imx', 'imx-m7-demos', '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', 'qemu-native', 'desktop-file-utils-native', 'gdk-pixbuf-native', 'systemd-systemctl-native', 'gtk+3-native', 'shadow-native', 'optee-os', 'firmware-imx-8m', 'gcc-runtime', 'imx-atf', 'glibc', 'nss-native', 'kmod-native', 'perl-native', 'libtool-native', 'readline-native', 'xz-native', 'util-linux-native', 'texinfo-dummy-native', 'gettext-minimal-native', 'ncurses-native', 'lz4-native', 'zlib-native', 'libgcrypt-native', 'cmake-native', 'gnutls-native', 'xxhash-native', 'db-native', 'glib-2.0-native', 'popt-native', 'python3-installer-native', 'python3-wheel-native', 'python3-six-native', 'python3-setuptools-native', 'python3-native', 'coreutils-native', 'debianutils-native', 'openssl-native', 'bzip2-native', 'gettext-native', 'attr-native', 'shared-mime-info-native', 'libjpeg-turbo-native', 'libpng-native', 'gobject-introspection-native', 'libx11-native', 'atk-native', 'libxrandr-native', 'pango-native', 'cairo-native', 'libxcomposite-native', 'at-spi2-atk-native', 'fontconfig-native', 'libxext-native', 'libxcursor-native', 'libxfixes-native', 'libxrender-native', 'libxdamage-native', 'libxi-native', 'libgcc', 'linux-libc-headers', 'sqlite3-native', 'nspr-native', 'gdbm-native', 'make-native', 'util-linux-libuuid-native', 'libcap-ng-native', 'libpcre2-native', 'libgpg-error-native', 'libcap-native', 'curl-native', 'libunistring-native', 'p11-kit-native', 'nettle-native', 'gmp-native', 'libidn2-native', 'libffi-native', 'libpcre-native', 'python3-flit-core-native', 'unzip-native', 'libnsl2-native', 'libtirpc-native', 'libxml2-native', 'itstool-native', 'flex-native', 'xorgproto-native', 'libxcb-native', 'util-macros-native', 'xtrans-native', 'fribidi-native', 'freetype-native', 'harfbuzz-native', 'libxft-native', 'pixman-native', 'libsm-native', 'dbus-native', 'at-spi2-core-native', 'expat-native', 'libtasn1-native', 'm4-native', 'libxau-native', 'libxdmcp-native', 'xcb-proto-native', 'libpthread-stubs-native', 'icu-native', 'libice-native', 'libxtst-native', 'gnu-config-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function set_image_size
| DEBUG: 6201384.800000 = 4770296 * 1.300000
| DEBUG: 56201384.800000 = max(6201384.800000, 65536)[6201384.800000] + 50000000
| DEBUG: 56201385.000000 = int(56201384.800000)
| DEBUG: 56201385 = aligned(56201385)
| DEBUG: returning 56201385
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_wic
| INFO: Creating image(s)...
|
| Traceback (most recent call last):
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/lib/wic/filemap.py", line 129, in _open_image_file
| self._f_image = open(self._image_path, 'rb')
| FileNotFoundError: [Errno 2] No such file or directory: '/home/arash/Desktop/imx-yocto-bsp/build-wayland/tmp/deploy/images/imx8mp-lpddr4-evk/imx-boot'
|
| During handling of the above exception, another exception occurred:
|
| Traceback (most recent call last):
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/wic", line 547, in <module>
| sys.exit(main(sys.argv[1:]))
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/wic", line 542, in main
| return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/lib/wic/help.py", line 83, in invoke_subcommand
| subcmd[0](args, usage)
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/wic", line 222, in wic_create_subcommand
| engine.wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/lib/wic/engine.py", line 190, in wic_create
| plugin.do_create()
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 98, in do_create
| self.create()
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 182, in create
| self._image.prepare(self)
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 360, in prepare
| part.prepare(imager, imager.workdir, imager.oe_builddir,
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/lib/wic/partition.py", line 183, in prepare
| plugin.do_prepare_partition(self, srcparams_dict, creator,
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/lib/wic/plugins/source/rawcopy.py", line 95, in do_prepare_partition
| sparse_copy(src, dst)
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/lib/wic/filemap.py", line 527, in sparse_copy
| fmap = api(src_fname)
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/lib/wic/filemap.py", line 506, in filemap
| return FilemapFiemap(image, log)
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/lib/wic/filemap.py", line 323, in __init__
| _FilemapBase.__init__(self, image, log)
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/lib/wic/filemap.py", line 88, in __init__
| self._open_image_file()
| File "/home/arash/Desktop/imx-yocto-bsp/sources/poky/scripts/lib/wic/filemap.py", line 131, in _open_image_file
| raise Error("cannot open image file '%s': %s"
| wic.filemap.Error: cannot open image file '/home/arash/Desktop/imx-yocto-bsp/build-wayland/tmp/deploy/images/imx8mp-lpddr4-evk/imx-boot': [Errno 2] No such file or directory: '/home/arash/Desktop/imx-yocto-bsp/build-wayland/tmp/deploy/images/imx8mp-lpddr4-evk/imx-boot'
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/arash/Desktop/imx-yocto-bsp/sources/meta-imx/meta-sdk/dynamic-layers/qt6-layer/recipes-fsl/images/imx-image-full.bb:do_image_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 9991 tasks of which 9990 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/arash/Desktop/imx-yocto-bsp/sources/meta-imx/meta-sdk/dynamic-layers/qt6-layer/recipes-fsl/images/imx-image-full.bb:do_image_wic
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.
could you help me for correct this error. thanks alot.
Hello,
Please check the minimum Ubuntu version is required 20.04 or later.
And please check the following host packages are updated.
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev
pylint3 xterm rsync curl zstd pzstd lz4c lz4 libssl-dev
hello again,
my host ubuntu version is 22.04.2, and the libraries were updated.
some of the libraries are not unable for my ubuntu like pylint3 pzstd lz4c but I don't think the problem accrued for them. if you have more details, I will be grateful for more explanation.