Re: Hardknott build for imx8mm-evk failed


Brian Hutchinson
 



On Thu, May 6, 2021 at 4:24 PM Brian Hutchinson via lists.yoctoproject.org <b.hutchman=gmail.com@...> wrote:


On Thu, May 6, 2021 at 3:34 PM Brian Hutchinson via lists.yoctoproject.org <b.hutchman=gmail.com@...> wrote:

On Thu, May 6, 2021 at 3:28 PM Peter Bergin <peter@...> wrote:

Hi Brian,

On 2021-05-06 14:41, Brian Hutchinson wrote:
Hi,

Yesterday I checked out Hardknott (creating layers manually due to repo sync issues) and tried to build core-image-base for my imx8mm-evk.

First I noticed that there wasn't a machine config for imx8mmevk (as there was for Dunfell, Gatesgarth etc.), but there was a config for imx8mm-ddr4-evk so I used that in my setup:

There are two configs for imx8mm EVKs, one for ddr4 and one for lpddr4. Check your board so you get the correct one. 8MMINILPD4 = lpddr4 and 8MMINID4 = ddr4. I have a imx8mm_lpddr4_evk in my project ad have been able to build hardknott without issues.

Yes, the LPDDR4 version has a NAND flash if memory serves me right.  Mine is the older version (Rev B) DDR4 version with eMMC and NOR flash.

EULA=1 DISTRO=poky MACHINE=imx8mm-ddr4-evk source setup-environment build

I need the 5.10 kernel, but did not see the trick Andrey showed me to change:
#IMX_DEFAULT_BSP = "nxp"
IMX_DEFAULT_BSP = "mainline"

... in machine .conf to switch to linux-fslc, so I just put this in my local.conf:

PREFERRED_PROVIDER_virtual/kernel = "linux-fslc"
PREFERRED_VERSION_linux-fslc = "5.10%"

This is not needed in hardknott as imx8mm-*-evk machines are using mainline and linux-fslc by default.

Any advice on what to do or try next is greatly appreciated.

The error you see below is because the u-boot configuration imx8mm_ddr4_evk is not present in u-boot-fslc. There is only imx8mm_evk config that is intended for lpddr4 variant. This is an error in the configuration in Yocto but I'm a bit unsure the way forward.

One thing you can try is to use u-boot-imx instead by adding:

    PREFERRED_PROVIDER_virtual/bootloader = "u-boot-imx"

I'll try that and see what happens!

Thanks!

Update.  I added  PREFERRED_PROVIDER_virtual/bootloader = "u-boot-imx" to local.conf and tried bitbake again and below is the output.  I'll delete /tmp and build again in case making this change after a failed build didn't produce valid results and will report again on that if there was a change.
Thanks!

Output of build:

bitbake core-image-base
Loading cache: 100% |                                                                                            | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |###########################################################################################| Time: 0:00:12
Parsing of 2356 .bb files complete (0 cached, 2356 parsed). 3620 targets, 252 skipped, 0 masked, 0 errors.
Removing 1 recipes from the imx8mm_ddr4_evk sysroot: 100% |#######################################################| Time: 0:00:04
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.50.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "imx8mm-ddr4-evk"
DISTRO               = "poky"
DISTRO_VERSION       = "3.3"
TUNE_FEATURES        = "aarch64 armv8a crc cortexa53"
TARGET_FPU           = ""
meta                  
meta-poky            = "HEAD:58cbdaecf75b0248f96780b6882e8d4f232d038a"
meta-oe               
meta-multimedia       
meta-python          = "HEAD:71b546ed8595b14d29efc1e8b951f8c845ad10c4"
meta-freescale       = "HEAD:963417fdaa914ee07badba4eb1fb83bf13e00403"
meta-freescale-3rdparty = "HEAD:7f23af99cb97a12134a46b5b9d497f05b758bf0c"
meta-freescale-distro = "HEAD:916df6d24c0a33a3b1533bde70b6a2724ec77af4"

Initialising tasks: 100% |########################################################################################| Time: 0:00:03
Sstate summary: Wanted 666 Local 0 Network 0 Missed 666 Current 1134 (0% match, 63% complete)
NOTE: Executing Tasks
ERROR: core-image-base-1.0-r0 do_image_wic: Execution of '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/work/imx8
mm_ddr4_evk-poky-linux/core-image-base/1.0-r0/temp/run.do_image_wic.277636' failed with exit code 1:
INFO: Creating image(s)...

Traceback (most recent call last):
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 129, in _open_image_fi
le
   self._f_image = open(self._image_path, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/deploy/ima
ges/imx8mm-ddr4-evk/imx-boot'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/wic", line 542, in <module>
   sys.exit(main(sys.argv[1:]))
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/wic", line 537, in main
   return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/help.py", line 83, in invoke_subcommand
   subcmd[0](args, usage)
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/wic", line 219, in wic_create_subcommand
   engine.wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/engine.py", line 190, in wic_create
   plugin.do_create()
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 97, in d
o_create
   self.create()                                                                                                                 
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 181, in
create                                                                                                                            
   self._image.prepare(self)                                                                                                     
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 356, in
prepare                                                                                                                           
   part.prepare(imager, imager.workdir, imager.oe_builddir,                                                                      
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/partition.py", line 182, in prepare      
   plugin.do_prepare_partition(self, srcparams_dict, creator,                                                                    
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/plugins/source/rawcopy.py", line 68, in
do_prepare_partition                                                                                                              
   sparse_copy(src, dst)                                                                                                         
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 527, in sparse_copy    
   fmap = api(src_fname)                                                                                                         
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 506, in filemap        
   return FilemapFiemap(image, log)                                                                                              
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 323, in __init__       
   _FilemapBase.__init__(self, image, log)                                                                                       
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 88, in __init__        
   self._open_image_file()                                                                                                       
 File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 131, in _open_image_fi
le                                                                                                                                
   raise Error("cannot open image file '%s': %s"                                                                                 
wic.filemap.Error: cannot open image file '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/deploy/images/imx8mm-ddr
4-evk/imx-boot': [Errno 2] No such file or directory: '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/deploy/image
s/imx8mm-ddr4-evk/imx-boot'                                                                                                       
WARNING: exit code 1 from a shell command.                                                                                        
                                                                                                                                 
ERROR: Logfile of failure stored in: /home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/work/imx8mm_ddr4_evk-poky-linu
x/core-image-base/1.0-r0/temp/log.do_image_wic.277636
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: 194126.400000 = 149328 * 1.300000
| DEBUG: 194126.400000 = max(194126.400000, 65536)[194126.400000] + 0
| DEBUG: 194127.000000 = int(194126.400000)
| DEBUG: 194127 = aligned(194127)
| DEBUG: returning 194127
| DEBUG: Python function set_image_size finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-ke
rnel/dtc/dtc_1.6.0.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta
/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/p
oky/meta/recipes-devtools/gcc/gcc-cross_10.2.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_ha
rdknott2/sources/poky/meta/recipes-devtools/dnf/dnf_4.6.0.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-com
munity-bsp_hardknott2/sources/poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.7.bb:do_populate_sysroot', '/home/hutch/yocto/imx8/fs
l-community-bsp_hardknott2/sources/meta-freescale/recipes-kernel/linux/linux-fslc_5.10.bb:do_populate_sysroot', '/home/hutch/yoct
o/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/home
/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysro
ot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-devtools/bison/bison_3.7.5.bb:
do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-devtools/pyth
on/python3_3.9.4.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/r
ecipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/me
ta/recipes-devtools/mklibs/mklibs-native_0.1.44.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp
_hardknott2/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.3.bb:do_populate_sysroot', 'virtual:native:/home/hutch/y
octo/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-extended/parted/parted_3.4.bb:do_populate_sysroot', 'virtual:nat
ive:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-devtools/rpm/rpm_4.16.1.3.bb:do_populate_sysroo
t', '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/meta-freescale/recipes-bsp/u-boot/u-boot-imx_2020.04.bb:do_popul
ate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-devtools/e2fsprogs/e2
fsprogs_1.46.1.bb:do_populate_sysroot', '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-devtools/q
uilt/quilt-native_0.66.bb:do_populate_sysroot', '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-de
vtools/binutils/binutils-cross_2.36.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/
sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.2.bb:do_populate_sysroot', '/home/hutch/yocto/imx8/fsl-community-bsp_h
ardknott2/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/
imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-devtools/flex/flex_2.6.4.bb:do_populate_sysroot', '/home/hutch/yocto/
imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-core/glibc/glibc_2.33.bb:do_populate_sysroot', '/home/hutch/yocto/imx
8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_10.2.bb:do_populate_sysroot', 'virtual:native:/
home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-support/lzop/lzop_1.04.bb:do_populate_sysroot', 'vir
tual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-devtools/createrepo-c/createrepo-c_0.17
.0.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-devtool
s/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/met
a/recipes-devtools/mtools/mtools_4.0.26.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardkno
tt2/sources/poky/meta/recipes-connectivity/openssl/openssl_1.1.1k.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8
/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-devtools/opkg/opkg_0.4.4.bb:do_populate_sysroot', 'virtual:native:/home/h
utch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot', 'virtual:na
tive:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-devtools/swig/swig_3.0.12.bb:do_populate_sysro
ot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:
do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-support/bmap-
tools/bmap-tools_3.6.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/me
ta/recipes-extended/pigz/pigz_2.6.bb:do_populate_sysroot', '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta
/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2
/sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', '/home/hutch/yocto/imx8/fsl-community-bsp_ha
rdknott2/sources/poky/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', '/home/hutch/yocto/imx8/fsl-c
ommunity-bsp_hardknott2/sources/poky/meta/recipes-core/glibc/cross-localedef-native_2.33.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['dtc-native', 'gcc-cross-aarch64', 'gptfdisk-native', 'linux-fslc', 'bison-native', 'parted-nati
ve', 'binutils-cross-aarch64', 'dosfstools-native', 'lzop-native', 'mtools-native', 'bc-native', 'kern-tools-native', 'mpfr-nativ
e', 'gmp-native', 'libmpc-native']
| NOTE: Skipping as already exists in sysroot: ['makedevs-native', 'dnf-native', 'qemuwrapper-cross', 'depmodwrapper-cross', 'pyt
hon3-native', 'prelink-native', 'mklibs-native', 'opkg-utils-native', 'rpm-native', 'u-boot-imx', 'e2fsprogs-native', 'quilt-nati
ve', 'ldconfig-native', 'flex-native', 'glibc', 'gcc-runtime', 'createrepo-c-native', 'pseudo-native', 'openssl-native', 'opkg-na
tive', 'swig-native', 'patch-native', 'bmap-tools-native', 'pigz-native', 'kmod-native', 'update-rc.d-native', 'cross-localedef-n
ative', 'pkgconfig-native', 'xz-native', 'texinfo-dummy-native', 'automake-native', 'gnu-config-native', 'libtool-native', 'zlib-
native', 'linux-libc-headers', 'autoconf-native', 'cmake-native', 'libdnf-native', 'gettext-minimal-native', 'python3-iniparse-na
tive', 'librepo-native', 'ninja-native', 'libcomps-native', 'util-linux-native', 'popt-native', 'ncurses-native', 'qemu-native',
'shared-mime-info-native', 'bzip2-native', 'readline-native', 'libnsl2-native', 'libtirpc-native', 'libffi-native', 'sqlite3-nati
ve', 'gdbm-native', 'elfutils-native', 'binutils-native', 'perl-native', 'libgcrypt-native', 'db-native', 'file-native', 'attr-na
tive', 'shadow-native', 'gdk-pixbuf-native', 'gtk+3-native', 'm4-native', 'libgcc', 'debianutils-native', 'lzo-native', 'libxml2-
native', 'expat-native', 'curl-native', 'glib-2.0-native', 'libsolv-native', 'libarchive-native', 'libpcre-native', 'python3-setu
ptools-native', 'coreutils-native', 'python3-six-native', 'gtk-doc-native', 'libcheck-native', 'gobject-introspection-native', 'j
son-c-native', 'libmodulemd-native', 'gpgme-native', 're2c-native', 'libcap-ng-native', 'util-linux-libuuid-native', 'libpcre2-na
tive', 'itstool-native', 'xmlto-native', 'meson-native', 'libcap-native', 'libgpg-error-native', 'libjpeg-turbo-native', 'libpng-
native', 'cairo-native', 'atk-native', 'libx11-native', 'libxrandr-native', 'libxext-native', 'at-spi2-atk-native', 'libxfixes-na
tive', 'libxrender-native', 'libxcomposite-native', 'fontconfig-native', 'libxi-native', 'libxcursor-native', 'libxdamage-native'
, 'pango-native', 'gettext-native', 'libyaml-native', 'libassuan-native', 'docbook-xml-dtd4-native', 'docbook-xsl-stylesheets-nat
ive', 'libxslt-native', 'gperf-native', 'pixman-native', 'libsm-native', 'libxcb-native', 'util-macros-native', 'xorgproto-native
', 'xtrans-native', 'at-spi2-core-native', 'dbus-native', 'freetype-native', 'libxft-native', 'fribidi-native', 'harfbuzz-native'
, 'libice-native', 'xcb-proto-native', 'libpthread-stubs-native', 'libxdmcp-native', 'libxau-native', 'libxtst-native', 'icu-nati
ve', 'unzip-native']
| DEBUG: sed -e 's:^[^/]*/:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/work/imx8mm_ddr4_evk-poky-linux/core-ima
ge-base/1.0-r0/recipe-sysroot-native/:g' /home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/sysroots-components/x86_64
/gcc-cross-aarch64/fixmepath /home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/sysroots-components/x86_64/bison-nativ
e/fixmepath /home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/sysroots-components/x86_64/gmp-native/fixmepath | xargs
sed -i -e 's:FIXMESTAGINGDIRTARGET:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/work/imx8mm_ddr4_evk-poky-linux
/core-image-base/1.0-r0/recipe-sysroot:g; s:FIXMESTAGINGDIRHOST:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/wor
k/imx8mm_ddr4_evk-poky-linux/core-image-base/1.0-r0/recipe-sysroot-native:g' -e 's:FIXME_PSEUDO_SYSROOT:/home/hutch/yocto/imx8/fs
l-community-bsp_hardknott2/build/tmp/sysroots-components/x86_64/pseudo-native:g' -e 's:FIXME_HOSTTOOLS_DIR:/home/hutch/yocto/imx8
/fsl-community-bsp_hardknott2/build/tmp/hosttools:g' -e 's:FIXME_PKGDATA_DIR:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/
build/tmp/pkgdata/imx8mm-ddr4-evk:g' -e 's:FIXME_PSEUDO_LOCALSTATEDIR:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/t
mp/work/imx8mm_ddr4_evk-poky-linux/core-image-base/1.0-r0/pseudo/:g' -e 's:FIXME_LOGFIFO:/home/hutch/yocto/imx8/fsl-community-bsp
_hardknott2/build/tmp/work/imx8mm_ddr4_evk-poky-linux/core-image-base/1.0-r0/temp/fifo.277636:g'
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_wic
| INFO: Creating image(s)...
|  
| Traceback (most recent call last):
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 129, in _open_image_
file
|     self._f_image = open(self._image_path, 'rb')
| FileNotFoundError: [Errno 2] No such file or directory: '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/deploy/i
mages/imx8mm-ddr4-evk/imx-boot'
|  
| During handling of the above exception, another exception occurred:
|  
| Traceback (most recent call last):
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/wic", line 542, in <module>
|     sys.exit(main(sys.argv[1:]))
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/wic", line 537, in main
|     return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/help.py", line 83, in invoke_subcomman
d
|     subcmd[0](args, usage)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/wic", line 219, in wic_create_subcommand
|     engine.wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/engine.py", line 190, in wic_create
|     plugin.do_create()
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 97, in
do_create
|     self.create()
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 181, i
n create
|     self._image.prepare(self)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 356, i
n prepare
|     part.prepare(imager, imager.workdir, imager.oe_builddir,
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/partition.py", line 182, in prepare
|     plugin.do_prepare_partition(self, srcparams_dict, creator,
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/plugins/source/rawcopy.py", line 68, i
n do_prepare_partition
|     sparse_copy(src, dst)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 527, in sparse_copy
|     fmap = api(src_fname)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 506, in filemap
|     return FilemapFiemap(image, log)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 323, in __init__
|     _FilemapBase.__init__(self, image, log)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 88, in __init__
|     self._open_image_file()
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 131, in _open_image_
file
|     raise Error("cannot open image file '%s': %s"
| wic.filemap.Error: cannot open image file '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/deploy/images/imx8mm-d
dr4-evk/imx-boot': [Errno 2] No such file or directory: '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/deploy/ima
ges/imx8mm-ddr4-evk/imx-boot'
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/work/imx8mm_ddr4_evk-poky-linux/core-image-b
ase/1.0-r0/temp/run.do_image_wic.277636' failed with exit code 1:
| INFO: Creating image(s)...
|  
| Traceback (most recent call last):
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 129, in _open_image_
file
|     self._f_image = open(self._image_path, 'rb')
| FileNotFoundError: [Errno 2] No such file or directory: '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/deploy/i
mages/imx8mm-ddr4-evk/imx-boot'
|  
| During handling of the above exception, another exception occurred:
|  
| Traceback (most recent call last):
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/wic", line 542, in <module>
|     sys.exit(main(sys.argv[1:]))
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/wic", line 537, in main
|     return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/help.py", line 83, in invoke_subcomman
d
|     subcmd[0](args, usage)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/wic", line 219, in wic_create_subcommand
|     engine.wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/engine.py", line 190, in wic_create
|     plugin.do_create()
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 97, in
do_create
|     self.create()
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 181, i
n create
|     self._image.prepare(self)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/plugins/imager/direct.py", line 356, i
n prepare
|     part.prepare(imager, imager.workdir, imager.oe_builddir,
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/partition.py", line 182, in prepare
|     plugin.do_prepare_partition(self, srcparams_dict, creator,
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/plugins/source/rawcopy.py", line 68, i
n do_prepare_partition
|     sparse_copy(src, dst)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 527, in sparse_copy
|     fmap = api(src_fname)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 506, in filemap
|     return FilemapFiemap(image, log)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 323, in __init__
|     _FilemapBase.__init__(self, image, log)
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 88, in __init__
|     self._open_image_file()
|   File "/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/scripts/lib/wic/filemap.py", line 131, in _open_image_
file
|     raise Error("cannot open image file '%s': %s"
| wic.filemap.Error: cannot open image file '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/deploy/images/imx8mm-d
dr4-evk/imx-boot': [Errno 2] No such file or directory: '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/build/tmp/deploy/ima
ges/imx8mm-ddr4-evk/imx-boot'
| WARNING: exit code 1 from a shell command.
|  
ERROR: Task (/home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-core/images/core-image-base.bb:do_imag
e_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4766 tasks of which 3436 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
 /home/hutch/yocto/imx8/fsl-community-bsp_hardknott2/sources/poky/meta/recipes-core/images/core-image-base.bb:do_image_wic
Summary: There was 1 ERROR message shown, returning a non-zero exit code.



Same result after deleting cache, sstate-cache and tmp.

Regards,

Brian

Join meta-freescale@lists.yoctoproject.org to automatically receive all group messages.