Hi, seems to be caused by empty IMAGE_BOOT_FILES. When added to machine.conf everything works as expected. Sorry for noise.
On Thu, Jan 11, 2018 at 8:45 PM, Belisko Marek <marek.beli...@gmail.com> wrote: > Hi, > > below error is from wic when creating SD image. I have no clue where > error can be. I'm portin mender to orangepi and already asked for > support but seems nobody really understand what is going on. Any help > appreciated. > > error log: > > DEBUG: Executing python function set_image_size > DEBUG: Python function set_image_size finished > DEBUG: Executing python function extend_recipe_sysroot > NOTE: Direct dependencies are > ['virtual:native:/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', > 'virtual:native:/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot', > 'virtual:native:/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-devtools/rsync/rsync_3.1.2.bb:do_populate_sysroot', > '/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', > 'virtual:native:/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', > 'virtual:native:/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.3.bb:do_populate_sysroot', > '/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', > '/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-core/meta/wic-tools.bb:do_populate_sysroot', > 'virtual:native:/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', > 'virtual:native:/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb:do_populate_sysroot', > '/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', > 'virtual:native:/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', > 'virtual:native:/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.5.bb:do_populate_sysroot', > 'virtual:native:/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-devtools/opkg/opkg_0.3.5.bb:do_populate_sysroot', > 'virtual:native:/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', > '/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', > 'virtual:native:/home/marek/projects/orangepi_plus/orange-pi-distro/poky/meta/recipes-extended/pigz/pigz_2.3.4.bb:do_populate_sysroot'] > NOTE: Installed into sysroot: ['dosfstools-native', 'parted-native', > 'rsync-native', 'gptfdisk-native', 'wic-tools', 'mtools-native', > 'acl-native'] > NOTE: Skipping as already exists in sysroot: ['depmodwrapper-cross', > 'prelink-native', 'mklibs-native', 'pseudo-native', > 'update-rc.d-native', 'qemuwrapper-cross', 'opkg-utils-native', > 'opkg-native', 'makedevs-native', 'ldconfig-native', 'pigz-native', > 'gnu-config-native', 'pkgconfig-native', 'quilt-native', > 'autoconf-native', 'xz-native', 'automake-native', 'libtool-native', > 'systemd-systemctl-native', 'readline-native', 'util-linux-native', > 'texinfo-dummy-native', 'gettext-minimal-native', 'ncurses-native', > 'shadow-native', 'popt-native', 'attr-native', 'nss-native', > 'elfutils-native', 'binutils-native', 'zlib-native', 'openssl-native', > 'debianutils-native', 'qemu-native', 'kmod-native', > 'libarchive-native', 'libsolv-native', 'm4-native', 'lzo-native', > 'sqlite3-native', 'nspr-native', 'flex-native', 'bison-native', > 'cryptodev-linux-native', 'makedepend-native', 'pixman-native', > 'libsdl-native', 'glib-2.0-native', 'alsa-lib-native', 'dtc-native', > 'gtk-doc-native', 'bzip2-native', 'e2fsprogs-native', 'cmake-native', > 'expat-native', 'rpm-native', 'util-macros-native', 'xproto-native', > 'libpng-native', 'libx11-native', 'libxext-native', > 'libxrandr-native', 'libxrender-native', 'libffi-native', > 'gettext-native', 'libpcre-native', 'python3-native', 'curl-native', > 'db-native', 'dbus-native', 'file-native', 'xtrans-native', > 'inputproto-native', 'xextproto-native', 'kbproto-native', > 'libxcb-native', 'randrproto-native', 'renderproto-native', > 'libxdmcp-native', 'xcb-proto-native', 'libpthread-stubs-native', > 'libxau-native'] > DEBUG: Python function extend_recipe_sysroot finished > DEBUG: Executing shell function do_image_sdimg > + mkdir -p > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0 > + mkdir -p > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/rootfs > + rm -rf > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/data > + mkdir -p > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/data > + '[' -n '' ']' > + '[' -f > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/deploy/images/orange-pi-pc-plus/data.tar > ']' > + cd > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0 > + tar xf > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/deploy/images/orange-pi-pc-plus/data.tar > + mkdir -p > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/data/mender > + echo device_type=orange-pi-pc-plus > + chmod 0444 > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/data/mender/device_type > + dd if=/dev/zero > of=/home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/data.ext4 > count=0 bs=1M seek=128 > 0+0 records in > 0+0 records out > 0 bytes copied, 8.1218e-05 s, 0.0 kB/s > + mkfs.ext4 -F > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/data.ext4 > -d > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/data > -L data > mke2fs 1.43.5 (04-Aug-2017) > Discarding device blocks: done > Creating filesystem with 131072 1k blocks and 32768 inodes > Filesystem UUID: a622b529-a817-44f1-9754-f119e6939f64 > Superblock backups stored on blocks: > 8193, 24577, 40961, 57345, 73729 > > Allocating group tables: done > Writing inode tables: done > Creating journal (4096 blocks): done > Copying files into the device: done > Writing superblocks and filesystem accounting information: done > > + > wks=/home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/mender-sdimg.wks > + rm -f > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/mender-sdimg.wks > + '[' -n '' ']' > + true > + '[' -n 8388608 ']' > ++ expr 8388608 / 1024 > + boot_env_align_kb=8192 > + cat > + cat > + echo '### Contents of wks file ###' > ### Contents of wks file ### > + cat > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/mender-sdimg.wks > part --source rawcopy > --sourceparams="file=/home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/deploy/images/orange-pi-pc-plus/uboot.env" > --ondisk mmcblk0 --align 8192 --no-table > part --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label > boot --align 8192 --active --fixed-size 16 > part --source rootfs --ondisk mmcblk0 --fstype=ext4 --label primary > --align 8192 --fixed-size 425984k > part --source rootfs --ondisk mmcblk0 --fstype=ext4 --label secondary > --align 8192 --fixed-size 425984k > part --source rawcopy > --sourceparams=file="/home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/data.ext4" > --ondisk mmcblk0 --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/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/deploy-opipcplus-minimal-image-complete/opipcplus-minimal-orange-pi-pc-plus-20180104184416.sdimg > + > wicout=/home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/deploy-opipcplus-minimal-image-complete/opipcplus-minimal-orange-pi-pc-plus-20180104184416-sdimg > + BUILDDIR=/home/marek/projects/orangepi_plus/orange-pi-distro/build > + wic create > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/mender-sdimg.wks > --vars > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/sysroots/orange-pi-pc-plus/imgdata/ > -e opipcplus-minimal -o > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/deploy-opipcplus-minimal-image-complete/opipcplus-minimal-orange-pi-pc-plus-20180104184416-sdimg/ > 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/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/recipe-sysroot-native/sbin:/home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/recipe-sysroot-native/usr/sbin:/home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/recipe-sysroot-native/usr/bin:$PATH;mcopy > -i > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/deploy-opipcplus-minimal-image-complete/opipcplus-minimal-orange-pi-pc-plus-20180104184416-sdimg/tmp.wic.kkfh96cr/rootfs_boot.2.vfat > -s > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/deploy-opipcplus-minimal-image-complete/opipcplus-minimal-orange-pi-pc-plus-20180104184416-sdimg/tmp.wic.kkfh96cr/boot.2/* > ::/ returned '1' instead of 0 > output: > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/deploy-opipcplus-minimal-image-complete/opipcplus-minimal-orange-pi-pc-plus-20180104184416-sdimg/tmp.wic.kkfh96cr/boot.2/*: > No such file or directory > > + bb_exit_handler > + ret=1 > + case $ret in > + case $BASH_VERSION in > + echo 'WARNING: > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/temp/run.do_image_sdimg.31516:1 > exit 1 from > '\''BUILDDIR="/home/marek/projects/orangepi_plus/orange-pi-distro/build" > wic create "$wks" --vars > "/home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/sysroots/orange-pi-pc-plus/imgdata/" > -e "opipcplus-minimal" -o "$wicout/"'\''' > WARNING: > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/temp/run.do_image_sdimg.31516:1 > exit 1 from > 'BUILDDIR="/home/marek/projects/orangepi_plus/orange-pi-distro/build" > wic create "$wks" --vars > "/home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/sysroots/orange-pi-pc-plus/imgdata/" > -e "opipcplus-minimal" -o "$wicout/"' > + exit 1 > ERROR: Function failed: do_image_sdimg (log file is located at > /home/marek/projects/orangepi_plus/orange-pi-distro/build/tmp-glibc/work/orange_pi_pc_plus-oe-linux-gnueabi/opipcplus-minimal/1.0-r0/temp/log.do_image_sdimg.31516) > > BR, > > marek > -- > as simple and primitive as possible > ------------------------------------------------- > Marek Belisko - OPEN-NANDRA > Freelance Developer > > Ruska Nova Ves 219 | Presov, 08005 Slovak Republic > Tel: +421 915 052 184 > skype: marekwhite > twitter: #opennandra > web: http://open-nandra.com -- as simple and primitive as possible ------------------------------------------------- Marek Belisko - OPEN-NANDRA Freelance Developer Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto