imx8mmevk,core-image-minimal-1.0-r0 do_image_sdcard failed

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

imx8mmevk,core-image-minimal-1.0-r0 do_image_sdcard failed

1,599 Views
tangyuan
Contributor III

HI,

    I try to compile uboot separately! 

    I run the command as follows:

    bitbake -c compile -f u-boot-imx

     bitbake -c deploy -f u-boot-imx

    At last ,i run the command as follows:

     bitbake core-image-minimal

   It report the error as follows:

   

Summary: There were 2 WARNING messages shown.
android@ubuntu:~/imx-yocto-bsp/imx-yocto-bsp/build-xwayland$ bitbake core-image-minimal
Loading cache: 100% |##################################################################################################################################################| Time: 0:00:00
Loaded 3483 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.38.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mmevk"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "4.14-sumo"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta
meta-poky = "HEAD:c9bd4984f8f471ca2c43052714f4413ba99cf171"
meta-oe
meta-multimedia = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-freescale = "HEAD:27ca94f8a4336790ba117b4298566f6820e7e74c"
meta-freescale-3rdparty = "HEAD:82037216280a39957fb4272581637abec734ad50"
meta-freescale-distro = "HEAD:f7e2216e93aff14ac32728a13637a48df436b7f4"
meta-bsp
meta-sdk = "HEAD:8eeb420fad668b733ab95b460895e1c337c66b25"
meta-browser = "HEAD:75640e14e325479c076b6272b646be7a239c18aa"
meta-gnome
meta-networking
meta-python
meta-filesystems = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-qt5 = "HEAD:d4e7f73d04e8448d326b6f89908701e304e37d65"

WARNING: /home/android/imx-yocto-bsp/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2018.03.bb.do_compile is tainted from a forced run 0:00:00
WARNING: /home/android/imx-yocto-bsp/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2018.03.bb.do_deploy is tainted from a forced run
Initialising tasks: 100% |#############################################################################################################################################| Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: core-image-minimal-1.0-r0 do_image_sdcard: Function failed: do_image_sdcard (log file is located at /home/android/imx-yocto-bsp/imx-yocto-bsp/build-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_sdcard.42119)
ERROR: Logfile of failure stored in: /home/android/imx-yocto-bsp/imx-yocto-bsp/build-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_sdcard.42119
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: 49608.000000 = 38160 * 1.300000
| DEBUG: 53704.000000 = max(49608.000000, 8192)[49608.000000] + 1
| DEBUG: 53704.000000 = int(53704.000000)
| DEBUG: 57344 = aligned(53704)
| DEBUG: returning 57344
| DEBUG: Python function set_image_size finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/swig/swig_3.0.12.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-core/glibc/glibc_2.27.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/createrepo-c/createrepo-c_git.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-core/zlib/zlib_1.2.11.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2018.03.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.14.98.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/firmware-imx/firmware-imx_8.1.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/bison/bison_3.0.4.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-kernel/dtc/dtc_1.4.5.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/python/python_2.7.15.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/rpm/rpm_4.14.1.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-connectivity/openssl/openssl_1.0.2p.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.30.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/dnf/dnf_2.7.5.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/imx-atf/imx-atf_2.0.bb:do_populate_sysroot', 'virtual:native:/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/opkg/opkg_0.3.6.bb:do_populate_sysroot', '/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-devtools/python/python-native_2.7.15.bb:do_populate_sysroot']
| NOTE: u-boot-imx exists in sysroot, but is stale (u-boot-imx.cdf78a7742a50dd6aa4ed13e1fbb2cfd vs. u-boot-imx.666df69b347e2e9a334c2ad7f745b675), removing.
| DEBUG: Removing manifest: /home/android/imx-yocto-bsp/imx-yocto-bsp/build-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot/sysroot-providers/u-boot
| DEBUG: Removing manifest: /home/android/imx-yocto-bsp/imx-yocto-bsp/build-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot/sysroot-providers/virtual_bootloader
| DEBUG: Removing manifest: /home/android/imx-yocto-bsp/imx-yocto-bsp/build-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot/sysroot-providers/u-boot-imx
| DEBUG: Removing manifest: /home/android/imx-yocto-bsp/imx-yocto-bsp/build-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot/sysroot-providers/
| NOTE: Installed into sysroot: ['u-boot-imx']
| NOTE: Skipping as already exists in sysroot: ['swig-native', 'prelink-native', 'pkgconfig-native', 'glibc', 'createrepo-c-native', 'zlib-native', 'makedevs-native', 'depmodwrapper-cross', 'kmod-native', 'gcc-cross-aarch64', 'parted-native', 'dosfstools-native', 'linux-imx', 'opkg-utils-native', 'firmware-imx', 'ldconfig-native', 'pigz-native', 'bison-native', 'dtc-native', 'python', 'lzop-native', 'bc-native', 'rpm-native', 'mklibs-native', 'e2fsprogs-native', 'pbzip2-native', 'pseudo-native', 'qemuwrapper-cross', 'openssl-native', 'quilt-native', 'gcc-runtime', 'update-rc.d-native', 'binutils-cross-aarch64', 'dnf-native', 'mtools-native', 'imx-atf', 'opkg-native', 'python-native', 'automake-native', 'gnu-config-native', 'binutils-native', 'elfutils-native', 'libtool-native', 'autoconf-native', 'linux-libc-headers', 'systemd-systemctl-native', 'xz-native', 'shadow-native', 'qemu-native', 'gtk-doc-native', 'python3-native', 'flex-native', 'gmp-native', 'libmpc-native', 'texinfo-dummy-native', 'mpfr-native', 'gettext-minimal-native', 'attr-native', 'util-linux-native', 'bzip2-native', 'libgcc', 'libarchive-native', 'libsolv-native', 'db-native', 'expat-native', 'readline-native', 'sqlite3-native', 'gdbm-native', 'libpcre-native', 'file-native', 'curl-native', 'ninja-native', 'glib-2.0-native', 'cmake-native', 'libxml2-native', 'ncurses-native', 'zlib', 'readline', 'gdbm', 'libffi', 'openssl', 'db', 'sqlite3', 'bzip2', 'lzo-native', 'nss-native', 'dbus-native', 'popt-native', 'python3-iniparse-native', 'libdnf-native', 'librepo-native', 'libcomps-native', 'm4-native', 'libsdl-native', 'pixman-native', 'alsa-lib-native', 're2c-native', 'libffi-native', 'ncurses', 'cryptodev-linux', 'opkg-utils', 'nspr-native', 'autoconf-archive-native', 'python3-six-native', 'gobject-introspection-native', 'libcheck-native', 'gpgme-native', 'libxrandr-native', 'libxrender-native', 'libxext-native', 'libx11-native', 'libpng-native', 'util-macros-native', 'python3-setuptools-native', 'libgpg-error-native', 'libassuan-native', 'randrproto-native', 'xproto-native', 'renderproto-native', 'xextproto-native', 'inputproto-native', 'libxcb-native', 'xtrans-native', 'kbproto-native', 'unzip-native', 'libxdmcp-native', 'libpthread-stubs-native', 'libxau-native', 'xcb-proto-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_sdcard
| 0+0 records in
| 0+0 records out
| 0 bytes copied, 0.000157129 s, 0.0 kB/s
| Model: (file)
| Disk /home/android/imx-yocto-bsp/imx-yocto-bsp/build-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/core-image-minimal-imx8mmevk-20200520132039.rootfs.sdcard: 143MB
| Sector size (logical/physical): 512B/512B
| Partition Table: msdos
| Disk Flags:
|
| Number Start End Size Type File system Flags
| 1 8389kB 75.5MB 67.1MB primary lba
| 2 75.5MB 134MB 58.7MB primary
|
| 1059+1 records in
| 1059+1 records out
| 1084800 bytes (1.1 MB, 1.0 MiB) copied, 0.00758174 s, 143 MB/s
| mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
| mkfs.fat 4.1 (2017-01-24)
| 8+0 records in
| 8+0 records out
| 67108864 bytes (67 MB, 64 MiB) copied, 0.863929 s, 77.7 MB/s
| dd: failed to open '/home/android/imx-yocto-bsp/imx-yocto-bsp/build-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/core-image-minimal-imx8mmevk-20200520132039.rootfs.ext4': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_sdcard (log file is located at /home/android/imx-yocto-bsp/imx-yocto-bsp/build-xwayland/tmp/work/imx8mmevk-poky-linux/core-image-minimal/1.0-r0/temp/log.do_image_sdcard.42119)
ERROR: Task (/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_sdcard) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2736 tasks of which 2718 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/android/imx-yocto-bsp/imx-yocto-bsp/sources/poky/meta/recipes-core/images/core-image-minimal.bb:do_image_sdcard
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Please anyone help me!

Labels (1)
0 Kudos
3 Replies

1,436 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Tang Yuan,

Your host OS is correct, Ubuntu 16.04, I would recommend double checking that you have all the required packages referred on the i.MX Yocto User’s Guide installed.

Also, I’m a bit curious as why you are running the “bitbake -c deploy -f u-boot-imx” command. Are you changing anything on the bootloader files before baking the image? If that’s the case that may be causing the problem.

If you are not changing the configuration from the default BSP, try cleaning and just baking the core-image-minimal recipe directly:

  $ bitbake -c cleanall core-image-minimal

  $ bitbake core-image-minimal

I hope this helps!

Regards,

0 Kudos

1,436 Views
tangyuan
Contributor III

HI,

      I have already changed something on the bootloader files indeed before baking the images .

      

      If I want to compile uboot alone,what shall i do?

0 Kudos

1,436 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Tang Yuan,

If you have made changes it could be that these are causing problems. If you just want to build the bootloader you may do so with the following command:

$  bitbake u-boot-imx

However, Yocto is meant as a means of distribution of customized Linux images rather than for development. If you are making changes and would like to debug, I would recommend building outside of Yocto. You can find the souce repository for uboot on the following link:

https://source.codeaurora.org/external/imx/uboot-imx/

And you may extract the toolchain from the BSP. There is more information on how to do this on the BSP documentation.

I hope this helps!

Regards,

0 Kudos