[rocko][db410c] issue with initramfs-netboot-image and wic
Description
ERROR: initramfs-netboot-image-1.0-r0 do_image_wic:Function failed: do_image_wic (log file is located at /home/scratch/user/git/AGL/build-from-repo/build-dragonboard-410c/tmp/work/dragonbo
ard_410c-agl-linux/initramfs-netboot-image/1.0-r0/temp/log.do_image_wic.15325)ERROR:Logfile of failure stored in:/home/scratch/user/git/AGL/build-from-repo/build-dragonboard-410c/tmp/work/dragonboard_410c-agl-linux/initramfs-netboot-image/1.0-r0/temp/log.do_image_w
ic.15325Log data follows:| 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/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/dnf/dnf_2.6.3.bb:do_populate_sysroot', '/home/scratch/user/git/AGL/bui
ld-from-repo/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', '/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', 'virtual:native:/home/scr
atch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-ex
tended/pigz/pigz_2.3.4.bb:do_populate_sysroot', '/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/h
ome/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.5.bb:do_populate_sysroot', '/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-core/g
libc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '/home/scratch/user/git/AGL/build-from-repo/meta-qcom/recipes-bsp/firmware/firmware-qcom-dragonboard410c-bootloader-sdcard_17.09.bb:do_p
opulate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/rpm/rpm_git.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build
-from-repo/poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.3.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-core/update-rc.d/update-rc.d
_0.7.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', 'virtual:native:/home/scratc
h/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/createrepo-c/createrepo-c_git.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes
-devtools/opkg/opkg_0.3.5.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', 'virtu
al:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot']| NOTE:Installed into sysroot:[]| NOTE:Skipping as already exists in sysroot:['dnf-native','depmodwrapper-cross','dosfstools-native','mklibs-native','makedevs-native','pigz-native','qemuwrapper-cross', 'opkg-utils
-native', 'ldconfig-native', 'firmware-qcom-dragonboard410c-bootloader-sdcard', 'rpm-native', 'gptfdisk-native', 'update-rc.d-native', 'pseudo-native', 'createrepo-c-native', 'opkg-native','mtools-native','parted-native','librepo-native','gettext-minimal-native','quilt-native','libdnf-native','cmake-native','python3-iniparse-native','libcomps-native', 'python3-native', 'systemd-systemctl-native', 'autoconf-native', 'xz-native', 'automake-native', 'libtool-native', 'gnu-config-native', 'ncurses-native', 'util-linux-native', 'popt-native', 'libarchive-na
tive', 'libsolv-native', 'pkgconfig-native', 'texinfo-dummy-native', 'readline-native', 'zlib-native', 'qemu-native', 'kmod-native', 'glibc', 'gcc-runtime', 'dbus-native', 'db-native', 'nss
-native', 'elfutils-native', 'file-native', 'bzip2-native', 'expat-native', 'libxml2-native', 'sqlite3-native', 'curl-native', 'openssl-native', 'glib-2.0-native', 'gpgme-native', 'attr-nat
ive', 'libcheck-native', 'gtk-doc-native', 'gobject-introspection-native', 'python3-six-native', 'm4-native', 'lzo-native', 'e2fsprogs-native', 'alsa-lib-native', 'dtc-native', 'libsdl-nati
ve', 'pixman-native', 'linux-libc-headers', 'libgcc', 'nspr-native', 'makedepend-native', 'cryptodev-linux-native', 'gettext-native', 'libpcre-native', 'libffi-native', 'libassuan-native','swig-native','libgpg-error-native','bison-native','flex-native','python3-setuptools-native','libxrender-native','libx11-native','libxrandr-native','libxext-native','libpng-native','util-macros-native','xproto-native','unzip-native','renderproto-native','kbproto-native','xtrans-native','libxcb-native','xextproto-native','inputproto-native', 'randrproto-nativ
e', 'xcb-proto-native', 'libxdmcp-native', 'libpthread-stubs-native', 'libxau-native']| DEBUG:Python function extend_recipe_sysroot finished
| DEBUG:Executing shell function do_image_wic
| INFO:Creatingimage(s)...||Traceback(most recent call last):|[300/1962]|Traceback(most recent call last):|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/filemap.py", line 120, in _open_image_file
| self._f_image =open(self._image_path,'rb')|FileNotFoundError:[Errno2]No such file or directory:'/home/scratch/user/git/AGL/build-from-repo/build-dragonboard-410c/tmp/deploy/images/dragonboard-410c/boot-sd-dragonboard-410c.img'||During handling of the above exception, another exception occurred:||Traceback(most recent call last):|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/wic", line 525, in <module>| sys.exit(main(sys.argv[1:]))|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/wic", line 520, in main
|return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/help.py", line 98, in invoke_subcommand
| subcmd[0](args, usage)|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/wic", line 227, in wic_create_subcommand
| native_sysroot, options)|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/engine.py", line 202, in wic_create
| plugin.do_create()|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/plugins/imager/direct.py", line 99, in do_create
| self.create()|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/plugins/imager/direct.py", line 194, in create
| self._image.prepare(self)|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/plugins/imager/direct.py", line 352, in prepare
| imager.kernel_dir, imager.native_sysroot)|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/partition.py", line 185, in prepare
| kernel_dir, rootfs_dir, native_sysroot)|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/plugins/source/rawcopy.py", line 59, in do_prepare_partition
|sparse_copy(src, dst)|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/filemap.py", line 543, in sparse_copy
| fmap =api(src_fname)|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/filemap.py", line 525, in filemap
|returnFilemapFiemap(image, log)|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/filemap.py", line 343, in __init__
| _FilemapBase.__init__(self, image, log)|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/filemap.py", line 79, in __init__
| self._open_image_file()|File"/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/filemap.py", line 123, in _open_image_file
|%(self._image_path, err))|wic.filemap.Error: cannot openimage file '/home/scratch/user/git/AGL/build-from-repo/build-dragonboard-410c/tmp/deploy/images/dragonboard-410c/boot-sd-dragonboard-410c.img':[Errno2]No such file or directory:'/home/scratch/user/git/AGL/build-from-repo/build-dragonboard-410c/tmp/deploy/images/dragonboard-410c/boot-sd-dragonboard-410c.img'| WARNING: exit code 1 from a shell command.| ERROR:Function failed: do_image_wic (log file is located at /home/scratch/user/git/AGL/build-from-repo/build-dragonboard-410c/tmp/work/dragonboard_410c-agl-linux/initramfs-netboot-image/1.0-r0/temp/log.do_image_wic.15325)ERROR:Task(/home/scratch/user/git/AGL/build-from-repo/meta-agl/meta-netboot/recipes-core/images/initramfs-netboot-image.bb:do_image_wic) failed withexit code '1'NOTE:TasksSummary:Attempted9731 tasks of which 9697 didn't need tobe rerun and 1 failed.NOTE:Writing buildhistory
Summary:1 task failed:/home/scratch/user/git/AGL/build-from-repo/meta-agl/meta-netboot/recipes-core/images/initramfs-netboot-image.bb:do_image_wic
Summary:There was 1 WARNING message shown.
Environment
None
Activity
Walt Miner
September 10, 2019 at 3:11 PM
Is this still an issue? Can it be closed?
Tom Rini
February 23, 2018 at 4:28 PM
My initial thinking here is that upstream meta-qcom isn't following best practices and by using IMAGE_FSTYPES_append there rather than IMAGE_FSTYPES += ends up conflicting with the := usage in initramfs-netboot-image.bb. But I'd have to do a bit of experimenting to confirm my recollection of operator ordering 🙂
Jan-Simon Moeller
February 22, 2018 at 5:37 AM
isolated to db410c build on current master. agl-netboot needs to be enabled.
not sure what injects this.
@Tom Rini - got an idea ?
Fixed
Details
Assignee
Jan-Simon Moeller
Jan-Simon Moeller
Reporter
Jan-Simon Moeller
Jan-Simon Moeller
Labels
Priority
Major
Created February 22, 2018 at 5:35 AM
Updated October 4, 2019 at 1:42 PM
Resolved September 19, 2019 at 1:14 PM
Flag notifications
Something's gone wrong
Looks like you've been signed out. Try logging in again.
Something's gone wrong
Looks like you've been signed out. Try logging in again.
ERROR: initramfs-netboot-image-1.0-r0 do_image_wic: Function failed: do_image_wic (log file is located at /home/scratch/user/git/AGL/build-from-repo/build-dragonboard-410c/tmp/work/dragonbo ard_410c-agl-linux/initramfs-netboot-image/1.0-r0/temp/log.do_image_wic.15325) ERROR: Logfile of failure stored in: /home/scratch/user/git/AGL/build-from-repo/build-dragonboard-410c/tmp/work/dragonboard_410c-agl-linux/initramfs-netboot-image/1.0-r0/temp/log.do_image_w ic.15325 Log data follows: | 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/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/dnf/dnf_2.6.3.bb:do_populate_sysroot', '/home/scratch/user/git/AGL/bui ld-from-repo/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/dosfstools/ dosfstools_4.1.bb:do_populate_sysroot', '/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', 'virtual:native:/home/scr atch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-ex tended/pigz/pigz_2.3.4.bb:do_populate_sysroot', '/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/h ome/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.5.bb:do_populate_sysroot', '/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-core/g libc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '/home/scratch/user/git/AGL/build-from-repo/meta-qcom/recipes-bsp/firmware/firmware-qcom-dragonboard410c-bootloader-sdcard_17.09.bb:do_p opulate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/rpm/rpm_git.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build -from-repo/poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.3.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-core/update-rc.d/update-rc.d _0.7.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', 'virtual:native:/home/scratc h/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/createrepo-c/createrepo-c_git.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes -devtools/opkg/opkg_0.3.5.bb:do_populate_sysroot', 'virtual:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-devtools/mtools/mtools_4.0.18.bb:do_populate_sysroot', 'virtu al:native:/home/scratch/user/git/AGL/build-from-repo/poky/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot'] | NOTE: Installed into sysroot: [] | NOTE: Skipping as already exists in sysroot: ['dnf-native', 'depmodwrapper-cross', 'dosfstools-native', 'mklibs-native', 'makedevs-native', 'pigz-native', 'qemuwrapper-cross', 'opkg-utils -native', 'ldconfig-native', 'firmware-qcom-dragonboard410c-bootloader-sdcard', 'rpm-native', 'gptfdisk-native', 'update-rc.d-native', 'pseudo-native', 'createrepo-c-native', 'opkg-native', 'mtools-native', 'parted-native', 'librepo-native', 'gettext-minimal-native', 'quilt-native', 'libdnf-native', 'cmake-native', 'python3-iniparse-native', 'libcomps-native', 'python3-native ', 'systemd-systemctl-native', 'autoconf-native', 'xz-native', 'automake-native', 'libtool-native', 'gnu-config-native', 'ncurses-native', 'util-linux-native', 'popt-native', 'libarchive-na tive', 'libsolv-native', 'pkgconfig-native', 'texinfo-dummy-native', 'readline-native', 'zlib-native', 'qemu-native', 'kmod-native', 'glibc', 'gcc-runtime', 'dbus-native', 'db-native', 'nss -native', 'elfutils-native', 'file-native', 'bzip2-native', 'expat-native', 'libxml2-native', 'sqlite3-native', 'curl-native', 'openssl-native', 'glib-2.0-native', 'gpgme-native', 'attr-nat ive', 'libcheck-native', 'gtk-doc-native', 'gobject-introspection-native', 'python3-six-native', 'm4-native', 'lzo-native', 'e2fsprogs-native', 'alsa-lib-native', 'dtc-native', 'libsdl-nati ve', 'pixman-native', 'linux-libc-headers', 'libgcc', 'nspr-native', 'makedepend-native', 'cryptodev-linux-native', 'gettext-native', 'libpcre-native', 'libffi-native', 'libassuan-native', 'swig-native', 'libgpg-error-native', 'bison-native', 'flex-native', 'python3-setuptools-native', 'libxrender-native', 'libx11-native', 'libxrandr-native', 'libxext-native', 'libpng-native' , 'util-macros-native', 'xproto-native', 'unzip-native', 'renderproto-native', 'kbproto-native', 'xtrans-native', 'libxcb-native', 'xextproto-native', 'inputproto-native', 'randrproto-nativ e', 'xcb-proto-native', 'libxdmcp-native', 'libpthread-stubs-native', 'libxau-native'] | DEBUG: Python function extend_recipe_sysroot finished | DEBUG: Executing shell function do_image_wic | INFO: Creating image(s)... | | Traceback (most recent call last): | [300/1962] | Traceback (most recent call last): | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/filemap.py", line 120, in _open_image_file | self._f_image = open(self._image_path, 'rb') | FileNotFoundError: [Errno 2] No such file or directory: '/home/scratch/user/git/AGL/build-from-repo/build-dragonboard-410c/tmp/deploy/images/dragonboard-410c/boot-sd-dragonboard-410c.img' | | During handling of the above exception, another exception occurred: | | Traceback (most recent call last): | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/wic", line 525, in <module> | sys.exit(main(sys.argv[1:])) | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/wic", line 520, in main | return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands) | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/help.py", line 98, in invoke_subcommand | subcmd[0](args, usage) | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/wic", line 227, in wic_create_subcommand | native_sysroot, options) | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/engine.py", line 202, in wic_create | plugin.do_create() | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/plugins/imager/direct.py", line 99, in do_create | self.create() | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/plugins/imager/direct.py", line 194, in create | self._image.prepare(self) | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/plugins/imager/direct.py", line 352, in prepare | imager.kernel_dir, imager.native_sysroot) | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/partition.py", line 185, in prepare | kernel_dir, rootfs_dir, native_sysroot) | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/plugins/source/rawcopy.py", line 59, in do_prepare_partition | sparse_copy(src, dst) | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/filemap.py", line 543, in sparse_copy | fmap = api(src_fname) | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/filemap.py", line 525, in filemap | return FilemapFiemap(image, log) | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/filemap.py", line 343, in __init__ | _FilemapBase.__init__(self, image, log) | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/filemap.py", line 79, in __init__ | self._open_image_file() | File "/home/scratch/user/git/AGL/build-from-repo/poky/scripts/lib/wic/filemap.py", line 123, in _open_image_file | % (self._image_path, err)) | wic.filemap.Error: cannot open image file '/home/scratch/user/git/AGL/build-from-repo/build-dragonboard-410c/tmp/deploy/images/dragonboard-410c/boot-sd-dragonboard-410c.img': [Errno 2] No such file or directory: '/home/scratch/user/git/AGL/build-from-repo/build-dragonboard-410c/tmp/deploy/images/dragonboard-410c/boot-sd-dragonboard-410c.img' | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_image_wic (log file is located at /home/scratch/user/git/AGL/build-from-repo/build-dragonboard-410c/tmp/work/dragonboard_410c-agl-linux/initramfs-netboot-image/ 1.0-r0/temp/log.do_image_wic.15325) ERROR: Task (/home/scratch/user/git/AGL/build-from-repo/meta-agl/meta-netboot/recipes-core/images/initramfs-netboot-image.bb:do_image_wic) failed with exit code '1' NOTE: Tasks Summary: Attempted 9731 tasks of which 9697 didn't need to be rerun and 1 failed. NOTE: Writing buildhistory Summary: 1 task failed: /home/scratch/user/git/AGL/build-from-repo/meta-agl/meta-netboot/recipes-core/images/initramfs-netboot-image.bb:do_image_wic Summary: There was 1 WARNING message shown.