bitbake fsl-image-validation-imx fail to create the .sdcard file

cancel
Showing results for 
Search instead for 
Did you mean: 

bitbake fsl-image-validation-imx fail to create the .sdcard file

451 Views
Contributor III

Hi,

I am trying to build the images for the imx8m mini evk for the following version.

It fails to create the sdcard. please find below the log details which contains the environment details.

I checked the thread : Bitbake error - unable to create .sdcard file 

and tried issuing the below command to see whether it helps.

$ sysctl kern.geom.debugflags=0x10

sysctl: cannot stat /proc/sys/kern/geom/debugflags: No such file or directory"

Log details start:

ubuntu@INSISCSDT-2192:~/sreedhar/stefdemo/imx-yocto-bsp/Build-xwayland-imx8mmevk$ bitbake fsl-image-validation-imx
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
Loaded 3483 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime ptpd (ptpd, ptpd-qoriq)
Consider defining a PREFERRED_RPROVIDER entry to match ptpd
NOTE: Multiple providers are available for runtime ptpd-dev (ptpd, ptpd-qoriq)
Consider defining a PREFERRED_RPROVIDER entry to match ptpd-dev

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"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:06
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: fsl-image-validation-imx-1.0-r0 do_image_sdcard: Function failed: do_image_sdcard (log file is located at /home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/Build-xwayland-imx8mmevk/tmp/work/imx8mmevk-poky-linux/fsl-image-validation-imx/1.0-r0/temp/log.do_image_sdcard.2876)
ERROR: Logfile of failure stored in: /home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/Build-xwayland-imx8mmevk/tmp/work/imx8mmevk-poky-linux/fsl-image-validation-imx/1.0-r0/temp/log.do_image_sdcard.2876
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: 1407926.000000 = 1083020 * 1.300000
| DEBUG: 1407926.000000 = max(1407926.000000, 65536)[1407926.000000] + 1
| DEBUG: 1407926.000000 = int(1407926.000000)
| DEBUG: 1409024 = aligned(1407926)
| DEBUG: returning 1409024
| DEBUG: Python function set_image_size finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-support/lzop/lzop_1.03.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/autoconf/autoconf_2.69.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-kernel/dtc/dtc_1.4.5.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-core/zlib/zlib_1.2.11.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-bsp/u-boot/u-boot-mkimage_2018.01.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-connectivity/openssl/openssl_1.0.2p.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/opkg/opkg_0.3.6.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.14.98.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/libtool/libtool-native_2.4.6.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/createrepo-c/createrepo-c_git.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-extended/bc/bc_1.06.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/python/python_2.7.15.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/automake/automake_1.15.1.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gnu-config/gnu-config_git.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-core/glibc/glibc_2.27.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.43.8.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/bison/bison_3.0.4.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-security/optee-imx/optee-os-imx_git.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/swig/swig_3.0.12.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/dnf/dnf_2.7.5.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-devtools/python/python-pycrypto_2.6.1.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2018.03.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/imx-atf/imx-atf_2.0.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/firmware-imx/firmware-imx_8.1.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.30.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb:do_populate_sysroot', '/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/python/python-native_2.7.15.bb:do_populate_sysroot', 'virtual:native:/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/poky/meta/recipes-devtools/rpm/rpm_4.14.1.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['lzop-native', 'makedevs-native', 'gcc-runtime', 'ldconfig-native', 'autoconf-native', 'prelink-native', 'parted-native', 'dtc-native', 'zlib-native', 'pigz-native', 'u-boot-mkimage-native', 'openssl-native', 'pkgconfig-native', 'opkg-native', 'pseudo-native', 'linux-imx', 'mklibs-native', 'gcc-cross-aarch64', 'depmodwrapper-cross', 'quilt-native', 'libtool-native', 'createrepo-c-native', 'bc-native', 'python', 'automake-native', 'gnu-config-native', 'glibc', 'e2fsprogs-native', 'kmod-native', 'opkg-utils-native', 'dosfstools-native', 'mtools-native', 'libtool-cross', 'bison-native', 'optee-os-imx', 'swig-native', 'dnf-native', 'pbzip2-native', 'python-pycrypto-native', 'u-boot-imx', 'imx-atf', 'firmware-imx', 'qemuwrapper-cross', 'binutils-cross-aarch64', 'update-rc.d-native', 'python-native', 'rpm-native', 'gdk-pixbuf-native', 'gtk-icon-utils-native', 'systemd-systemctl-native', 'linux-libc-headers', 'libgcc', 'binutils-native', 'elfutils-native', 'qemu-native', 'util-linux-native', 'gettext-minimal-native', 'ncurses-native', 'xz-native', 'texinfo-dummy-native', 'readline-native', 'flex-native', 'shadow-native', 'libsolv-native', 'libarchive-native', 'curl-native', 'python3-native', 'sqlite3-native', 'ninja-native', 'cmake-native', 'glib-2.0-native', 'expat-native', 'file-native', 'libxml2-native', 'attr-native', 'libpcre-native', 'bzip2-native', 'gmp-native', 'popt-native', 'db-native', 'dbus-native', 'nss-native', 'lzo-native', 'm4-native', 'mkfontdir-native', 'mkfontscale-native', 'mpfr-native', 'libmpc-native', 'libffi', 'sqlite3', 'zlib', 'gdbm', 'readline', 'bzip2', 'openssl', 'db', 'gtk-doc-native', 'debianutils-native', 'python3-iniparse-native', 'libcomps-native', 'librepo-native', 'libdnf-native', 'gdbm-native', 'shared-mime-info-native', 'gobject-introspection-native', 'libpng-native', 'libjpeg-turbo-native', 'librsvg-native', 'libsdl-native', 'pixman-native', 'alsa-lib-native', 're2c-native', 'libffi-native', 'autoconf-archive-native', 'nspr-native', 'util-macros-native', 'libx11-native', 'freetype-native', 'xproto-native', 'libfontenc-native', 'ncurses', 'opkg-utils', 'cryptodev-linux', 'python3-six-native', 'libcheck-native', 'gpgme-native', 'intltool-native', 'libcroco-native', 'pango-native', 'cairo-native', 'libxrandr-native', 'libxrender-native', 'libxext-native', 'kbproto-native', 'xtrans-native', 'libxcb-native', 'inputproto-native', 'xextproto-native', 'font-util-native', 'python3-setuptools-native', 'libassuan-native', 'libgpg-error-native', 'libxml-parser-perl-native', 'gettext-native', 'harfbuzz-native', 'fontconfig-native', 'libxft-native', 'libsm-native', 'randrproto-native', 'renderproto-native', 'libpthread-stubs-native', 'xcb-proto-native', 'libxau-native', 'libxdmcp-native', 'unzip-native', 'perl-native', 'icu-native', 'gperf-native', 'libice-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.00027645 s, 0.0 kB/s
| Error: Error opening /home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/Build-xwayland-imx8mmevk/tmp/work/imx8mmevk-poky-linux/fsl-image-validation-imx/1.0-r0/deploy-fsl-image-validation-imx-image-complete/fsl-image-validation-imx-imx8mmevk-20191018152852.rootfs.sdcard: Operation not permitted
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_sdcard (log file is located at /home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/Build-xwayland-imx8mmevk/tmp/work/imx8mmevk-poky-linux/fsl-image-validation-imx/1.0-r0/temp/log.do_image_sdcard.2876)
ERROR: Task (/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/images/fsl-image-validation-imx.bb:do_image_sdcard) failed with exit code '1'
NOTE: Tasks Summary: Attempted 7829 tasks of which 7214 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/ubuntu/sreedhar/stefdemo/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/images/fsl-image-validation-imx.bb:do_image_sdcard
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Could you please let us know the solution how .sdcard file can be created. I am attaching the log file as well.

thank you,

sreedhar

0 Kudos
3 Replies

74 Views
NXP TechSupport
NXP TechSupport

Hello Sreedhar A,

Does this error still continue?

There are a couple of possible errors, for once it seems that there is already an .sdcard file but it cannot be edited, perhaps because of problems with access permission. But also, it seems that the image was already created at some point. Is this the case?

If there was a build already available, was it created using the same setup or was it moved from another location? (This sometimes may cause errors). Have you tried running a cleanall and baking to try to remove these permission errors (albeit this process is time consuming).

Regards,

0 Kudos

74 Views
Contributor III

Hi Gusarambula,

Problem we are facing is the first one, with access permission.

Thank you, Sreedhar

0 Kudos

74 Views
NXP TechSupport
NXP TechSupport

Hello Sreedhar A,

I’ve been doing some research but couldn’t find any similar error related to Yocto. This would seem to be a problem with the host setup and permissions to the user. I would recommend granting full access to the user and even trying on a clean build directory. If you are using a virtual machine running on a server, I would recommend contacting the server administrator.

Regards,

0 Kudos