Hi Folks!
I’m trying to bitbake a core-image-full-cmdline.biosimg. In my local.conf I set INHERIT += "mender-full-bios"
and it throws the error Function failed: do_image_biosimg
.
This is the log:
ERROR: core-image-minimal-initramfs-1.0-r0 do_image_biosimg: Function failed: do_image_biosimg (log file is located at /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/temp/log.do_image_biosimg.24914)
ERROR: Logfile of failure stored in: /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/temp/log.do_image_biosimg.24914
Log data follows:
| DEBUG: Executing python function prepare_excluded_directories
| DEBUG: 'IMAGE_ROOTFS_EXCLUDE_PATH' is set but 'respect_exclude_path' variable flag is 0 for this image type, so ignoring it
| DEBUG: Python function prepare_excluded_directories finished
| DEBUG: Executing python function set_image_size
| DEBUG: 36420.800000 = 28016 * 1.300000
| DEBUG: 36420.800000 = max(36420.800000, 8192)[36420.800000] + 1
| DEBUG: 36421.000000 = int(36420.800000)
| DEBUG: 36421 = aligned(36421)
| DEBUG: returning 36421
| DEBUG: Python function set_image_size finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/autoconf/autoconf_2.69.bb:do_populate_sysroot', '/home/yocto/poky/openembedded-core/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', '/home/yocto/poky/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_8.2.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/gnu-config/gnu-config_git.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', '/home/yocto/poky/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', '/home/yocto/poky/openembedded-core/meta/recipes-core/glibc/glibc_2.28.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-core/gettext/gettext_0.19.8.1.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-core/coreutils/coreutils_8.30.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/fdisk/gptfdisk_1.0.4.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-bsp/grub/grub-efi_2.02.bb:do_populate_sysroot', '/home/yocto/poky/openembedded-core/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/home/yocto/poky/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_8.2.bb:do_populate_sysroot', '/home/yocto/poky/openembedded-core/meta/recipes-core/meta/wic-tools.bb:do_populate_sysroot', '/home/yocto/poky/openembedded-core/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', '/home/yocto/poky/openembedded-core/meta/recipes-core/glibc/cross-localedef-native_2.28.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/opkg/opkg_0.3.6.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/dnf/dnf_2.7.5.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/rpm/rpm_4.14.2.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/automake/automake_1.16.1.bb:do_populate_sysroot', '/home/yocto/poky/openembedded-core/meta/recipes-devtools/libtool/libtool-native_2.4.6.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', '/home/yocto/poky/openembedded-core/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/bison/bison_3.0.4.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/createrepo-c/createrepo-c_git.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-support/bmap-tools/bmap-tools_3.4.bb:do_populate_sysroot', 'virtual:native:/home/yocto/poky/openembedded-core/meta/recipes-devtools/flex/flex_2.6.0.bb:do_populate_sysroot', '/home/yocto/poky/openembedded-core/meta/recipes-devtools/libtool/libtool-cross_2.4.6.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['autoconf-native', 'depmodwrapper-cross', 'gcc-cross-x86_64', 'gnu-config-native', 'pbzip2-native', 'quilt-native', 'glibc', 'parted-native', 'pigz-native', 'gettext-native', 'coreutils-native', 'pseudo-native', 'gptfdisk-native', 'grub-efi-native', 'qemuwrapper-cross', 'gcc-runtime', 'wic-tools', 'mklibs-native', 'cross-localedef-native', 'opkg-native', 'dnf-native', 'rpm-native', 'makedevs-native', 'mtools-native', 'automake-native', 'libtool-native', 'dosfstools-native', 'ldconfig-native', 'prelink-native', 'update-rc.d-native', 'opkg-utils-native', 'bison-native', 'createrepo-c-native', 'bmap-tools-native', 'flex-native', 'libtool-cross', 'm4-native', 'texinfo-dummy-native', 'kmod-native', 'xz-native', 'libmpc-native', 'mpfr-native', 'zlib-native', 'linux-libc-headers', 'gmp-native', 'binutils-cross-x86_64', 'systemd-systemctl-native', 'bzip2-native', 'readline-native', 'gettext-minimal-native', 'util-linux-native', 'pkgconfig-native', 'ncurses-native', 'attr-native', 'popt-native', 'qemu-native', 'libgcc', 'syslinux', 'grub-efi', 'systemd-boot', 'libarchive-native', 'libsolv-native', 'python3-native', 'libcomps-native', 'python3-iniparse-native', 'libdnf-native', 'ninja-native', 'librepo-native', 'cmake-native', 'file-native', 'db-native', 'dbus-native', 'elfutils-native', 'nss-native', 'shadow-native', 'binutils-native', 'openssl-native', 'debianutils-native', 'glib-2.0-native', 'curl-native', 'libxml2-native', 'expat-native', 'sqlite3-native', 'python3-setuptools-native', 'gtk-doc-native', 'lzo-native', 'alsa-lib-native', 'dtc-native', 'pixman-native', 'e2fsprogs', 'util-linux', 'gnu-efi', 'libcap', 'e2fsprogs-native', 'gdbm-native', 'libcheck-native', 'python3-six-native', 'gobject-introspection-native', 're2c-native', 'gpgme-native', 'nspr-native', 'libpcre-native', 'libffi-native', 'unzip-native', 'libpng-native', 'util-macros-native', 'attr', 'opkg-utils', 'ncurses', 'zlib', 'bash-completion', 'libxcrypt', 'libgpg-error-native', 'swig-native', 'libassuan-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_biosimg
| + mkdir -p /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0
| + false
| + basename /dev/sda
| + ondisk_dev=sda
| + wks=/home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/mender-biosimg.wks
| + rm -f /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/mender-biosimg.wks
| + [ -n grub-core.img ]
| + install -m 0644 /home/yocto/poky/build/tmp/deploy/images/intel-corei7-64/grub-core.img /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/
| + expr 1 % 2
| + [ 1 -ne 0 ]
| + expr 1 + 1
| + bootloader_sector=2
| + bootloader_file=/home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/grub-core.img-partial
| + dd if=/home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/grub-core.img of=/home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/grub-core.img-partial skip=1
| 317+1 records in
| 317+1 records out
| 162787 bytes (163 kB, 159 KiB) copied, 0.00163647 s, 99.5 MB/s
| + expr 2 * 512
| + expr 1024 / 1024
| + bootloader_align_kb=1
| + stat -c %s /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/grub-core.img-partial
| + bootloader_size=162787
| + expr 1 * 1024 + 162787
| + bootloader_end=163811
| + [ 163811 -gt 8388608 ]
| + cat
| + false
| + expr 8388608 % 1024
| + true
| + [ 0 -ne 0 ]
| + expr 8388608 / 1024
| + alignment_kb=8192
| + echo
| + sed -r s/(^\s*)|(\s*$)//g
| + IMAGE_BOOT_FILES_STRIPPED=
| + [ 16 -ne 0 ]
| + mender_merge_bootfs_and_image_boot_files
| + W=/home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/bootfs.image_biosimg
| + rm -rf /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/bootfs.image_biosimg
| + cp -al /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/rootfs//boot/grub /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/bootfs.image_biosimg
| + image_boot_files=
| + cat
| + exclude_path_options=--exclude-path data/ boot/grub/
| + cat
| + echo ### Contents of wks file ###
| ### Contents of wks file ###
| + cat /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/mender-biosimg.wks
| # embed bootloader
| part --source rawcopy --sourceparams="file=/home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/grub-core.img-partial" --ondisk "sda" --align 1 --no-table
| part --source rootfs --rootfs-dir /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/bootfs.image_biosimg --ondisk "sda" --fstype=vfat --label boot --align 8192 --fixed-size 16 --active
| part --source rootfs --ondisk "sda" --fstype=ext4 --label primary --align 8192 --fixed-size 442368k --exclude-path data/ boot/grub/
| part --source rootfs --ondisk "sda" --fstype=ext4 --label secondary --align 8192 --fixed-size 442368k --exclude-path data/ boot/grub/
| part --source rootfs --rootfs-dir /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/rootfs/data --ondisk "sda" --fstype=ext4 --label data --align 8192 --fixed-size 128
| bootloader --ptable msdos
| + echo ### End of contents of wks file ###
| ### End of contents of wks file ###
| + outimgname=/home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/deploy-core-image-minimal-initramfs-image-complete/core-image-minimal-initramfs-intel-corei7-64--20190827095413.biosimg
| + wicout=/home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/deploy-core-image-minimal-initramfs-image-complete/core-image-minimal-initramfs-intel-corei7-64--20190827095413-biosimg
| + BUILDDIR=/home/yocto/poky/build wic create /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/mender-biosimg.wks --vars /home/yocto/poky/build/tmp/sysroots/intel-corei7-64/imgdata/ -e core-image-minimal-initramfs -o /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/deploy-core-image-minimal-initramfs-image-complete/core-image-minimal-initramfs-intel-corei7-64--20190827095413-biosimg/
| INFO: Creating image(s)...
|
| WARNING: overhead-factor was specified, but size was not, so bitbake variables will be used for the size. In this case both IMAGE_OVERHEAD_FACTOR and --overhead-factor will be applied
| ERROR: _exec_cmd: export PATH=/home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/recipe-sysroot-native/sbin:/home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/recipe-sysroot-native/usr/sbin:/home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/recipe-sysroot-native/usr/bin:$PATH;mcopy -i /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/deploy-core-image-minimal-initramfs-image-complete/core-image-minimal-initramfs-intel-corei7-64--20190827095413-biosimg/tmp.wic.x39w9ahn/rootfs_boot.2.vfat -s /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/bootfs.image_biosimg/* ::/ returned '1' instead of 0
| output: /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/bootfs.image_biosimg/*: No such file or directory
|
| + bb_exit_handler
| + ret=1
| + echo WARNING: exit code 1 from a shell command.
| WARNING: exit code 1 from a shell command.
| + exit 1
| ERROR: Function failed: do_image_biosimg (log file is located at /home/yocto/poky/build/tmp/work/intel_corei7_64-poky-linux/core-image-minimal-initramfs/1.0-r0/temp/log.do_image_biosimg.24914)
ERROR: Task (/home/yocto/poky/openembedded-core/meta/recipes-core/images/core-image-minimal-initramfs.bb:do_image_biosimg) failed with exit code '1'
I’m running thud 2.6.2 at the moment.
Can you tell me what’s the problem?
Thanks!