AnsweredAssumed Answered

about yocto build error

Question asked by Kevin Li on Apr 19, 2020
Latest reply on Apr 20, 2020 by Radhika Somaiya

HI,   All:

   编译yocto项目到最后出现生成sdcard出错,请问这可能什么原因导致的?

ERROR: core-image-minimal-1.0-r0 do_image_sdcard: Function failed: do_image_sdcard (log file is located at /media/kevin/disk2/imx-yocto-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_sdcard.27325)

   谢谢!

 

具体log:

VirtualBox:/media/kevin/disk2/imx-yocto-bsp/build$ bitbake core-image-minimal
WARNING: You have included the meta-gnome layer, but 'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-gnome README for details on enabling meta-gnome support.
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
Loaded 3484 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.38.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-fslc-linux-gnueabi"
MACHINE = "imx6qdlsabresd"
DISTRO = "fslc-framebuffer"
DISTRO_VERSION = "2.5"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
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"

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 /media/kevin/disk2/imx-yocto-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_sdcard.27325)
ERROR: Logfile of failure stored in: /media/kevin/disk2/imx-yocto-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_sdcard.27325
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: 8158.800000 = 6276 * 1.300000
| DEBUG: 8192.000000 = max(8158.800000, 8192)[8192.000000] + 1
| DEBUG: 8192.000000 = int(8192.000000)
| DEBUG: 8192 = aligned(8192)
| DEBUG: returning 8192
| DEBUG: Python function set_image_size finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/opkg/opkg_0.3.6.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-kernel/dtc/dtc_1.4.5.bb:do_populate_sysroot', '/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/python/python-native_2.7.15.bb:do_populate_sysroot', '/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.30.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', '/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/dnf/dnf_2.7.5.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-connectivity/openssl/openssl_1.0.2p.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/swig/swig_3.0.12.bb:do_populate_sysroot', '/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', '/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb:do_populate_sysroot', '/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', '/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/media/kevin/disk2/imx-yocto-bsp/sources/meta-freescale/recipes-kernel/linux/linux-fslc-imx_4.9-1.0.x.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/createrepo-c/createrepo-c_git.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/rpm/rpm_4.14.1.bb:do_populate_sysroot', '/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-core/glibc/glibc_2.27.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot', '/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', 'virtual:native:/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/bison/bison_3.0.4.bb:do_populate_sysroot', '/media/kevin/disk2/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['opkg-native', 'e2fsprogs-native', 'dtc-native', 'python-native', 'binutils-cross-arm', 'pigz-native', 'ldconfig-native', 'kmod-native', 'dnf-native', 'mtools-native', 'openssl-native', 'swig-native', 'mklibs-native', 'prelink-native', 'depmodwrapper-cross', 'bc-native', 'update-rc.d-native', 'qemuwrapper-cross', 'lzop-native', 'gcc-runtime', 'makedevs-native', 'linux-fslc-imx', 'createrepo-c-native', 'rpm-native', 'glibc', 'parted-native', 'quilt-native', 'pseudo-native', 'opkg-utils-native', 'dosfstools-native', 'bison-native', 'gcc-cross-arm', 'autoconf-native', 'pkgconfig-native', 'libsolv-native', 'libarchive-native', 'libtool-native', 'gnu-config-native', 'automake-native', 'util-linux-native', 'texinfo-dummy-native', 'gettext-minimal-native', 'attr-native', 'flex-native', 'zlib-native', 'python3-native', 'gtk-doc-native', 'xz-native', 'elfutils-native', 'binutils-native', 'qemu-native', 'shadow-native', 'linux-libc-headers', 'libgcc', 'libxml2-native', 'sqlite3-native', 'glib-2.0-native', 'file-native', 'expat-native', 'ninja-native', 'cmake-native', 'curl-native', 'popt-native', 'bzip2-native', 'db-native', 'dbus-native', 'nss-native', 'ncurses-native', 'readline-native', 'gdbm-native', 'python3-iniparse-native', 'libdnf-native', 'libcomps-native', 'librepo-native', 'libpcre-native', 'lzo-native', 'libmpc-native', 'mpfr-native', 'gmp-native', 'm4-native', 'pixman-native', 'alsa-lib-native', 'libffi-native', 're2c-native', 'autoconf-archive-native', 'nspr-native', 'python3-six-native', 'libcheck-native', 'gobject-introspection-native', 'gpgme-native', 'util-macros-native', 'libpng-native', 'python3-setuptools-native', 'libassuan-native', 'libgpg-error-native', 'unzip-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, 9.4333e-05 s, 0.0 kB/s
| Model: (file)
| Disk /media/kevin/disk2/imx-yocto-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/core-image-minimal/1.0-r0/deploy-core-image-minimal-image-complete/core-image-minimal-imx6qdlsabresd-20200420030605.rootfs.sdcard: 25.2MB
| Sector size (logical/physical): 512B/512B
| Partition Table: msdos
| Disk Flags:
|
| Number Start End Size Type File system Flags
| 1 4194kB 12.6MB 8389kB primary lba
| 2 12.6MB 21.0MB 8389kB primary
|
| 110+0 records in
| 110+0 records out
| 56320 bytes (56 kB, 55 KiB) copied, 0.000238358 s, 236 MB/s
| 418+1 records in
| 418+1 records out
| 428680 bytes (429 kB, 419 KiB) copied, 0.000759174 s, 565 MB/s
| mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
| mkfs.fat 4.1 (2017-01-24)
| Disk full
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_sdcard (log file is located at /media/kevin/disk2/imx-yocto-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_sdcard.27325)
ERROR: Task (/media/kevin/disk2/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 2150 tasks of which 2149 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

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

Outcomes