Date   

PREEMPT_RT support in this group

Mario Aldag
 

Hello everyone,
is there a planned support for PREEMPT-rt patch for freescale / i.MX Boards by this layer?

The old "yocto-linux-rt" implementation doesn't seem to work for these boards nowadays.


including firmware sdma-imx6q.bin

Angelo Dureghello <angelo@...>
 

Hi all,

already had this issue more than one time, and solved
in a way or another, but trying to figure out the most
correct way to do this.

This sdma firmware file on recent kernel > (4.14) could
be needed, generally to be (even if not always) built-in.
I need the kernel build to work both from yocto and
from standalone source tree.

Actually used below solutions:

1) yocto side, in kernel recipe/bbappend i copy the
firmware blob into the kernel source path, in
do_compile_prepend(), by:

defconfig

+CONFIG_EXTRA_FIRMWARE="imx/sdma/sdma-imx6q.bin"
+CONFIG_EXTRA_FIRMWARE_DIR="firmware"

kernel bbappend

+DEPENDS += " \
+ firmware-imx \
+"
...
+do_compile_prepend() {
+ ## fetch the firmware blob
+ rm -rf ${S}/firmware
+ mkdir ${S}/firmware
+ cp -arv ${TMPDIR}/sysroots-components/all/firmware-imx/lib/firmware/imx ${S}/firmware/
+}

This works, but if i build the kernel out of yocto, have to
add separately the fw blob in the /firmware path.

2) i include the blob hex in the kernel tree, and modify
makefile, so it get translated to bin, and included.


Looks like there must me more proper solutions, if
any hint, welcome.

Thanks a lot.
--
Angelo Dureghello
+E: angelo AT kernel-space.org


Re: Hardknott build for imx8mm-evk failed

Andrey Zhizhikin
 

Hello Brian,

On Thu, May 6, 2021 at 10:24 PM Brian Hutchinson <b.hutchman@...> 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.
Correct, the mainline U-Boot does not have a support for i.MX8M DDR4
EVK, the commit
https://source.codeaurora.org/external/imx/uboot-imx/commit/?id=07c35f48b5e9e41f7e8c1dfe81e9e50c65d4e87c
in NX tree was never ported upstream.


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.
Yes, machines are opting for "mainline" BSP flavor by default, unless
NXP distro is used.


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 guess with https://github.com/Freescale/meta-freescale/commit/776932e187f38ca53ed57fc662461ba0da005520
introduced, you'd rather need to change IMX_DEFAULT_BOOTLOADER to
point to "u-boot-imx". For mx8mm machines this is defined in
conf/machine/include/imx8mm-evk.inc.

Disclaimer: I've never tried this combination myself, so I'm not sure
which problems might occur and if it would be working on the first
place. :)


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'
This is indeed a strange one... Do you see if 'imx-boot' file is
present in the deploy folder, and if it was prodced by the u-boot buld
at all?


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.




--
Regards,
Andrey.


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


Re: Hardknott build for imx8mm-evk failed

Brian Hutchinson
 



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.


Re: Hardknott build for imx8mm-evk failed

Brian Hutchinson
 


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!


Re: Hardknott build for imx8mm-evk failed

Peter Bergin
 

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.

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"

This will build the u-boot-imx (NXP's fork) where imx8mm_ddr4_evk config is present. I can not guarantee the u-boot-imx and linux-fslc works together but give it a try.

The I suggest that you open an issue in https://github.com/Freescale/meta-freescale/issues about the faulty configuration for imx8-ddr4-evk.

I hope this helps you forward!
/Peter



Hardknott build for imx8mm-evk failed

Brian Hutchinson
 

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:

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%"

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

Thanks!!!

Regards,

Brian

The following is the build output/failure.



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

Build Configuration:
BB_VERSION           = "1.50.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
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            = "hardknott:2d5f42e6fa4a45d1c9e430c126d947c630b17b2d"
meta-oe               
meta-multimedia       
meta-python          = "hardknott:71b546ed8595b14d29efc1e8b951f8c845ad10c4"
meta-freescale       = "hardknott:963417fdaa914ee07badba4eb1fb83bf13e00403"
meta-freescale-3rdparty = "hardknott:7f23af99cb97a12134a46b5b9d497f05b758bf0c"
meta-freescale-distro = "hardknott:916df6d24c0a33a3b1533bde70b6a2724ec77af4"

NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/3.0/x86_64-nativesdk-libc.tar.xz;sha256
sum=5ec5a9276046e7eceeac749a18b175667384e1f445cd4526300a41404d985a5b (will check PREMIRRORS first)
Initialising tasks: 100% |########################################################################################| Time: 0:00:02
Sstate summary: Wanted 1816 Local 0 Network 0 Missed 1816 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
WARNING: qemu-native-5.2.0-r0 do_fetch: Failed to fetch URL https://download.qemu.org/qemu-5.2.0.tar.xz, attempting MIRRORS if av
ailable
WARNING: netbase-1_6.2-r0 do_fetch: Failed to fetch URL http://ftp.debian.org/debian/pool/main/n/netbase/netbase_6.2.tar.xz, atte
mpting MIRRORS if available
ERROR: u-boot-fslc-v2020.10+gitAUTOINC+80c23498b4-r0 do_configure: oe_runmake failed
ERROR: u-boot-fslc-v2020.10+gitAUTOINC+80c23498b4-r0 do_configure: Execution of '/home/hutch/yocto/imx8/fsl-community-bsp_hardkno
tt/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/temp/run.do_configure.1914403' failed
with exit code 1:
make: Entering directory '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fsl
c/v2020.10+gitAUTOINC+80c23498b4-r0/git'
make -C /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTO
INC+80c23498b4-r0/build/imx8mm_ddr4_evk_defconfig KBUILD_SRC=/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/im
x8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git \
-f /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+8
0c23498b4-r0/git/Makefile imx8mm_ddr4_evk_defconfig
make[1]: Entering directory '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-
fslc/v2020.10+gitAUTOINC+80c23498b4-r0/build/imx8mm_ddr4_evk_defconfig'
make -f /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTO
INC+80c23498b4-r0/git/scripts/Makefile.build obj=scripts/basic
 gcc  -isystem/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+
gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/include -Wp,-MD,scripts/basic/.fixdep.d -Iscripts/basic -Wall -Wstrict-prototy
pes -O2 -fomit-frame-pointer -std=gnu11 -o scripts/basic/fixdep /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work
/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/basic/fixdep.c    
rm -f .tmp_quiet_recordmcount
ln -fsn /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTO
INC+80c23498b4-r0/git source
/bin/bash /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAU
TOINC+80c23498b4-r0/git/scripts/mkmakefile \
   /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+
80c23498b4-r0/git . 2020 10
 GEN     ./Makefile                                                                                                              
make -f /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTO
INC+80c23498b4-r0/git/scripts/Makefile.build obj=scripts/kconfig imx8mm_ddr4_evk_defconfig                                        
 gcc  -isystem/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+
gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/include -Wp,-MD,scripts/kconfig/.conf.o.d -Iscripts/kconfig -Wall -Wstrict-pro
totypes -O2 -fomit-frame-pointer -std=gnu11 -c -o scripts/kconfig/conf.o /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build
/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig/conf.c                     
 bison -oscripts/kconfig/zconf.tab.c -t -l /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-pok
y-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig/zconf.y                                                 
 flex -oscripts/kconfig/zconf.lex.c -L /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-li
nux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig/zconf.l                                                     
 gcc  -isystem/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+
gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/include -Wp,-MD,scripts/kconfig/.zconf.tab.o.d -Iscripts/kconfig -Wall -Wstric
t-prototypes -O2 -fomit-frame-pointer -std=gnu11  -I/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4
_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig -c -o scripts/kconfig/zconf.tab.o scripts/kconf
ig/zconf.tab.c                                                                                                                    
 gcc  -isystem/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+
gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/include  -L/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/i
mx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/lib                         -L/
home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23
498b4-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/h
utch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-
r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build
/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/lib                     
   -Wl,-rpath,/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+
gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/hutch/yocto/imx8/fsl-community-bs
p_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/lib    
                    -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/
build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig
/zconf.tab.o                                                                                                                      
scripts/kconfig/conf  --defconfig=arch/../configs/imx8mm_ddr4_evk_defconfig Kconfig                                               
***                                                                                                                               
*** Can't find default configuration "arch/../configs/imx8mm_ddr4_evk_defconfig"!                                                 
***                                                                                                                               
make[2]: *** [/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+g
itAUTOINC+80c23498b4-r0/git/scripts/kconfig/Makefile:110: imx8mm_ddr4_evk_defconfig] Error 1                                      
make[1]: *** [/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+g
itAUTOINC+80c23498b4-r0/git/Makefile:565: imx8mm_ddr4_evk_defconfig] Error 2                                                      
make[1]: Leaving directory '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-f
slc/v2020.10+gitAUTOINC+80c23498b4-r0/build/imx8mm_ddr4_evk_defconfig'                                                            
make: *** [Makefile:167: sub-make] Error 2                                                                                        
make: Leaving directory '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc
/v2020.10+gitAUTOINC+80c23498b4-r0/git'                                                                                           
WARNING: exit code 1 from a shell command.                                                                                        
                                                                                                                                 
ERROR: Logfile of failure stored in: /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux
/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/temp/log.do_configure.1914403
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/sources/poky/meta/recipes-dev
tools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/sources/poky/
meta/recipes-devtools/python/python3_3.9.4.bb:do_populate_sysroot', '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/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
rdknott/sources/poky/meta/recipes-support/lzop/lzop_1.04.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-comm
unity-bsp_hardknott/sources/poky/meta/recipes-connectivity/openssl/openssl_1.1.1k.bb:do_populate_sysroot', '/home/hutch/yocto/imx
8/fsl-community-bsp_hardknott/sources/poky/meta/recipes-core/glibc/glibc_2.33.bb:do_populate_sysroot', 'virtual:native:/home/hutc
h/yocto/imx8/fsl-community-bsp_hardknott/sources/poky/meta/recipes-devtools/bison/bison_3.7.5.bb:do_populate_sysroot', 'virtual:n
ative:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysr
oot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/sources/poky/meta/recipes-extended/bc/bc_1.07.1.bb:do_po
pulate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/sources/poky/meta/recipes-devtools/swig/swig_
3.0.12.bb:do_populate_sysroot', '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/sources/poky/meta/recipes-devtools/gcc/gcc-ru
ntime_10.2.bb:do_populate_sysroot', '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/sources/poky/meta/recipes-devtools/quilt/
quilt-native_0.66.bb:do_populate_sysroot', 'virtual:native:/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/sources/poky/meta/r
ecipes-kernel/dtc/dtc_1.6.0.bb:do_populate_sysroot', '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/sources/poky/meta/recipe
s-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['patch-native', 'python3-native', 'gcc-cross-aarch64', 'lzop-native', 'openssl-na
tive', 'glibc', 'bison-native', 'pseudo-native', 'bc-native', 'swig-native', 'gcc-runtime', 'quilt-native', 'dtc-native', 'kern-t
ools-native', 'libmpc-native', 'flex-native', 'zlib-native', 'automake-native', 'binutils-cross-aarch64', 'mpfr-native', 'libtool
-native', 'xz-native', 'gmp-native', 'gnu-config-native', 'autoconf-native', 'texinfo-dummy-native', 'linux-libc-headers', 'lzo-n
ative', 'gettext-minimal-native', 'readline-native', 'pkgconfig-native', 'libpcre-native', 'libgcc', 'attr-native', 'libnsl2-nati
ve', 'sqlite3-native', 'util-linux-native', 'gdbm-native', 'libffi-native', 'bzip2-native', 'libtirpc-native', 'm4-native', 'ncur
ses-native', 'libcap-ng-native', 'libpcre2-native', 'util-linux-libuuid-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| NOTE: make CROSS_COMPILE=aarch64-poky-linux- CC=aarch64-poky-linux-gcc  --sysroot=/home/hutch/yocto/imx8/fsl-community-bsp_hard
knott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot V=1 HOSTCC=gcc  -isy
stem/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+
80c23498b4-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx
8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/lib                         -L/ho
me/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c2349
8b4-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/hut
ch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0
/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/t
mp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/lib                       
 -Wl,-rpath,/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gi
tAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/hutch/yocto/imx8/fsl-community-bsp_
hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/lib      
                  -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/bu
ild/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 STAGING_INCDIR=/home/hutch/yocto/imx8/fsl-community-bsp_hardknot
t/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/include STAGI
NG_LIBDIR=/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAU
TOINC+80c23498b4-r0/recipe-sysroot-native/usr/lib ATF_LOAD_ADDR=0x920000 HOSTCC=gcc  -isystem/home/hutch/yocto/imx8/fsl-community
-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/
include HOSTLDFLAGS=-L/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2
020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/lib                         -L/home/hutch/yocto/imx8/fsl-community-bsp_
hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/lib      
                  -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/hutch/yocto/imx8/fsl-community-bsp_hardkn
ott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/lib        
                -Wl,-rpath-link,/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-b
oot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/hutch/yocto/imx8/fs
l-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-
native/usr/lib                         -Wl,-rpath,/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_e
vk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow
-shlib-undefined -Wl,--dynamic-linker=/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/sysroots-uninative/x86_64-linu
x/lib/ld-linux-x86-64.so.2 HOSTSTRIP=true -C /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-po
ky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git O=/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/im
x8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/build/imx8mm_ddr4_evk_defconfig imx8mm_ddr4_evk_defconfig
| make: Entering directory '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-f
slc/v2020.10+gitAUTOINC+80c23498b4-r0/git'
| make -C /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAU
TOINC+80c23498b4-r0/build/imx8mm_ddr4_evk_defconfig KBUILD_SRC=/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/
imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git \
| -f /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC
+80c23498b4-r0/git/Makefile imx8mm_ddr4_evk_defconfig
| make[1]: Entering directory '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boo
t-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/build/imx8mm_ddr4_evk_defconfig'
| make -f /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAU
TOINC+80c23498b4-r0/git/scripts/Makefile.build obj=scripts/basic
|   gcc  -isystem/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.1
0+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/include -Wp,-MD,scripts/basic/.fixdep.d -Iscripts/basic -Wall -Wstrict-proto
types -O2 -fomit-frame-pointer -std=gnu11 -o scripts/basic/fixdep /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/wo
rk/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/basic/fixdep.c
| rm -f .tmp_quiet_recordmcount
| ln -fsn /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAU
TOINC+80c23498b4-r0/git source
| /bin/bash /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+git
AUTOINC+80c23498b4-r0/git/scripts/mkmakefile \
|     /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOIN
C+80c23498b4-r0/git . 2020 10
|   GEN     ./Makefile
| make -f /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAU
TOINC+80c23498b4-r0/git/scripts/Makefile.build obj=scripts/kconfig imx8mm_ddr4_evk_defconfig
|   gcc  -isystem/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.1
0+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/include -Wp,-MD,scripts/kconfig/.conf.o.d -Iscripts/kconfig -Wall -Wstrict-p
rototypes -O2 -fomit-frame-pointer -std=gnu11 -c -o scripts/kconfig/conf.o /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/bui
ld/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig/conf.c
|   bison -oscripts/kconfig/zconf.tab.c -t -l /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-p
oky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig/zconf.y
|   flex -oscripts/kconfig/zconf.lex.c -L /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-
linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig/zconf.l
|   gcc  -isystem/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.1
0+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/include -Wp,-MD,scripts/kconfig/.zconf.tab.o.d -Iscripts/kconfig -Wall -Wstr
ict-prototypes -O2 -fomit-frame-pointer -std=gnu11  -I/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_dd
r4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig -c -o scripts/kconfig/zconf.tab.o scripts/kco
nfig/zconf.tab.c
|   gcc  -isystem/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.1
0+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/include  -L/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work
/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/lib                         -
L/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c
23498b4-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home
/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b
4-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/bui
ld/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/lib                   
     -Wl,-rpath,/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.1
0+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/hutch/yocto/imx8/fsl-community-
bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/lib  
                      -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/hutch/yocto/imx8/fsl-community-bsp_hardknot
t/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconf
ig/zconf.tab.o
| scripts/kconfig/conf  --defconfig=arch/../configs/imx8mm_ddr4_evk_defconfig Kconfig
| ***
| *** Can't find default configuration "arch/../configs/imx8mm_ddr4_evk_defconfig"!
| ***
| make[2]: *** [/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10
+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig/Makefile:110: imx8mm_ddr4_evk_defconfig] Error 1
| make[1]: *** [/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10
+gitAUTOINC+80c23498b4-r0/git/Makefile:565: imx8mm_ddr4_evk_defconfig] Error 2
| make[1]: Leaving directory '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot
-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/build/imx8mm_ddr4_evk_defconfig'
| make: *** [Makefile:167: sub-make] Error 2
| make: Leaving directory '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fs
lc/v2020.10+gitAUTOINC+80c23498b4-r0/git'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v
2020.10+gitAUTOINC+80c23498b4-r0/temp/run.do_configure.1914403' failed with exit code 1:
| make: Entering directory '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-f
slc/v2020.10+gitAUTOINC+80c23498b4-r0/git'
| make -C /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAU
TOINC+80c23498b4-r0/build/imx8mm_ddr4_evk_defconfig KBUILD_SRC=/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/
imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git \
| -f /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC
+80c23498b4-r0/git/Makefile imx8mm_ddr4_evk_defconfig
| make[1]: Entering directory '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boo
t-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/build/imx8mm_ddr4_evk_defconfig'
| make -f /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAU
TOINC+80c23498b4-r0/git/scripts/Makefile.build obj=scripts/basic
|   gcc  -isystem/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.1
0+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/include -Wp,-MD,scripts/basic/.fixdep.d -Iscripts/basic -Wall -Wstrict-proto
types -O2 -fomit-frame-pointer -std=gnu11 -o scripts/basic/fixdep /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/wo
rk/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/basic/fixdep.c
| rm -f .tmp_quiet_recordmcount
| ln -fsn /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAU
TOINC+80c23498b4-r0/git source
| /bin/bash /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+git
AUTOINC+80c23498b4-r0/git/scripts/mkmakefile \
|     /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOIN
C+80c23498b4-r0/git . 2020 10
|   GEN     ./Makefile
| make -f /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAU
TOINC+80c23498b4-r0/git/scripts/Makefile.build obj=scripts/kconfig imx8mm_ddr4_evk_defconfig
|   gcc  -isystem/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.1
0+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/include -Wp,-MD,scripts/kconfig/.conf.o.d -Iscripts/kconfig -Wall -Wstrict-p
rototypes -O2 -fomit-frame-pointer -std=gnu11 -c -o scripts/kconfig/conf.o /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/bui
ld/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig/conf.c
|   bison -oscripts/kconfig/zconf.tab.c -t -l /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-p
oky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig/zconf.y
|   flex -oscripts/kconfig/zconf.lex.c -L /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-
linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig/zconf.l
|   gcc  -isystem/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.1
0+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/include -Wp,-MD,scripts/kconfig/.zconf.tab.o.d -Iscripts/kconfig -Wall -Wstr
ict-prototypes -O2 -fomit-frame-pointer -std=gnu11  -I/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_dd
r4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig -c -o scripts/kconfig/zconf.tab.o scripts/kco
nfig/zconf.tab.c
|   gcc  -isystem/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.1
0+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/include  -L/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work
/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/lib                         -
L/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c
23498b4-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home
/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b
4-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/bui
ld/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/lib                   
     -Wl,-rpath,/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.1
0+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/hutch/yocto/imx8/fsl-community-
bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/recipe-sysroot-native/lib  
                      -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/hutch/yocto/imx8/fsl-community-bsp_hardknot
t/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconf
ig/zconf.tab.o
| scripts/kconfig/conf  --defconfig=arch/../configs/imx8mm_ddr4_evk_defconfig Kconfig
| ***
| *** Can't find default configuration "arch/../configs/imx8mm_ddr4_evk_defconfig"!
| ***
| make[2]: *** [/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10
+gitAUTOINC+80c23498b4-r0/git/scripts/kconfig/Makefile:110: imx8mm_ddr4_evk_defconfig] Error 1
| make[1]: *** [/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fslc/v2020.10
+gitAUTOINC+80c23498b4-r0/git/Makefile:565: imx8mm_ddr4_evk_defconfig] Error 2
| make[1]: Leaving directory '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot
-fslc/v2020.10+gitAUTOINC+80c23498b4-r0/build/imx8mm_ddr4_evk_defconfig'
| make: *** [Makefile:167: sub-make] Error 2
| make: Leaving directory '/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/build/tmp/work/imx8mm_ddr4_evk-poky-linux/u-boot-fs
lc/v2020.10+gitAUTOINC+80c23498b4-r0/git'
| WARNING: exit code 1 from a shell command.
|  
ERROR: Task (/home/hutch/yocto/imx8/fsl-community-bsp_hardknott/sources/meta-freescale/recipes-bsp/u-boot/u-boot-fslc_2020.10.bb:
do_configure) failed with exit code '1'                                                                                           
NOTE: Tasks Summary: Attempted 3211 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
 /home/hutch/yocto/imx8/fsl-community-bsp_hardknott/sources/meta-freescale/recipes-bsp/u-boot/u-boot-fslc_2020.10.bb:do_configur
e
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.


Re: repo sync of hardknott fails

Brian Hutchinson
 



On Wed, May 5, 2021 at 5:00 PM Otavio Salvador <otavio.salvador@...> wrote:
Em qua., 5 de mai. de 2021 às 09:50, Brian Hutchinson
<b.hutchman@...> escreveu:
> repo sync fails with hardknott:
>
> repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b hardknott
>
> hutch@Gondor:~/yocto/imx8/fsl-community-bsp_hardknott$ repo sync
> Fetching:  0% (0/7) warming uperror: Cannot fetch Documentation from https://github.com/Freescale/Documentation
> Fetching: 100% (7/7), done in 2m2.588s
> Garbage collecting: 100% (7/7), done in 0.012s
> error: Cannot fetch Documentation from https://github.com/Freescale/Documentation
> Fetching: 100% (1/1), done in 4.451s
> Garbage collecting: 100% (1/1), done in 0.003s
> error: Cannot checkout Documentation: ManifestInvalidRevisionError: revision hardknott in Documentation not found
> error: in `sync`: revision hardknott in Documentation not found

Please try again :)

Very good sir!  You are the man!  Works now!

I checked the layers out manually and did a build and had other problems ... will post another mail about it but tried repo init/sync and that worked.

Regards,

Brian


Re: repo sync of hardknott fails

Otavio Salvador
 

Em qua., 5 de mai. de 2021 às 09:50, Brian Hutchinson
<b.hutchman@...> escreveu:
repo sync fails with hardknott:

repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b hardknott

hutch@Gondor:~/yocto/imx8/fsl-community-bsp_hardknott$ repo sync
Fetching: 0% (0/7) warming uperror: Cannot fetch Documentation from https://github.com/Freescale/Documentation
Fetching: 100% (7/7), done in 2m2.588s
Garbage collecting: 100% (7/7), done in 0.012s
error: Cannot fetch Documentation from https://github.com/Freescale/Documentation
Fetching: 100% (1/1), done in 4.451s
Garbage collecting: 100% (1/1), done in 0.003s
error: Cannot checkout Documentation: ManifestInvalidRevisionError: revision hardknott in Documentation not found
error: in `sync`: revision hardknott in Documentation not found
Please try again :)


--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750


repo sync of hardknott fails

Brian Hutchinson
 

Hi,

repo sync fails with hardknott:


hutch@Gondor:~/yocto/imx8/fsl-community-bsp_hardknott$ repo sync
Fetching:  0% (0/7) warming uperror: Cannot fetch Documentation from https://github.com/Freescale/Documentation
Fetching: 100% (7/7), done in 2m2.588s
Garbage collecting: 100% (7/7), done in 0.012s
error: Cannot fetch Documentation from https://github.com/Freescale/Documentation
Fetching: 100% (1/1), done in 4.451s
Garbage collecting: 100% (1/1), done in 0.003s
error: Cannot checkout Documentation: ManifestInvalidRevisionError: revision hardknott in Documentation not found
error: in `sync`: revision hardknott in Documentation not found

Result is sources directory does not get populated:

hutch@Gondor:~/yocto/imx8/fsl-community-bsp_hardknott/sources$ ls -al
total 12
drwxrwxr-x 3 hutch hutch 4096 May  5 08:46 .
drwxrwxr-x 4 hutch hutch 4096 May  5 08:46 ..
drwxrwxr-x 3 hutch hutch 4096 May  5 08:46 Documentation



Can't file to patch while cooking recipe with bitbake

Zunzunegui Abad, Mario-Sergio <mario.zunzunegui@...>
 

Airbus Amber

Hello all.

I receive this error when compiling a récipe with bitbake.

 

ERROR: Command Error: exit status: 1  Output:

Applying patch work-with-openssl-1.0.2.patch

can't find file to patch at input line 5

Perhaps you used the wrong -p or --strip option?

The text leading up to this was:

--------------------------

|diff --git a/src/cryptography/hazmat/bindings/openssl/bio.py b/src/cryptography/hazmat/bindings/openssl/bio.py

|index 6cc1bcb..7e7abe7 100644

|--- a/src/cryptography/hazmat/bindings/openssl/bio.py

|+++ b/src/cryptography/hazmat/bindings/openssl/bio.py

--------------------------

No file to patch.  Skipping patch.

1 out of 1 hunk ignored

Patch work-with-openssl-1.0.2.patch does not apply (enforce with -f)

ERROR: Function failed: patch_do_patch

 

File is present but unreachable for any reason. Is there any way to change –p or –strip option for patch command in the recipe?

All ideas are welcomed.

Regards.

Sergio.

This Item has been reviewed and was determined as not listed under regulation, nor EU export controls, nor U.S. export controls. However, in the case of the item has to be resold, transferred, or otherwise disposed of to an embargoed country, to an end user of concern or in support of a prohibited end use, you may be required to obtain an export license.

Airbus has updated its Security classifications scheme. It is based on two classification levels: Airbus Amber and Airbus Red.
Both must be handled carefully and not disclosed to any other recipients than the ones mentioned into the email addresses list.

 

The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.


Re: [meta-freescale-3rdparty] [PATCH] colibri*.conf: define UBOOT_IMAGE

Otavio Salvador
 

Em ter., 4 de mai. de 2021 às 09:24, Ming Liu <liu.ming50@...> escreveu:

From: Ming Liu <liu.ming50@...>

We have renamed UBOOT_BINARY with '-nand' suffix to indicate it's a
image that should be flashed to NAND device, do the same to
UBOOT_IMAGE, otherwise developers might get confused about how to deal
with it.

Signed-off-by: Ming Liu <liu.ming50@...>
Please use the GitHub for this PR. Also, please include a background
why this change is required. Up to now, it seems to be going on the
wrong direction.


--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750


[meta-freescale-3rdparty] [PATCH] colibri*.conf: define UBOOT_IMAGE

Ming Liu <liu.ming50@...>
 

From: Ming Liu <liu.ming50@...>

We have renamed UBOOT_BINARY with '-nand' suffix to indicate it's a
image that should be flashed to NAND device, do the same to
UBOOT_IMAGE, otherwise developers might get confused about how to deal
with it.

Signed-off-by: Ming Liu <liu.ming50@...>
---
conf/machine/colibri-imx6ull.conf | 1 +
conf/machine/colibri-imx7-nand.conf | 1 +
conf/machine/colibri-vf.conf | 1 +
3 files changed, 3 insertions(+)

diff --git a/conf/machine/colibri-imx6ull.conf b/conf/machine/colibri-imx=
6ull.conf
index 1e1fd93..896fa1c 100644
--- a/conf/machine/colibri-imx6ull.conf
+++ b/conf/machine/colibri-imx6ull.conf
@@ -22,6 +22,7 @@ PREFERRED_RPROVIDER_u-boot-fw-utils ?=3D "u-boot-torade=
x-fw-utils"
PREFERRED_PROVIDER_u-boot-default-script ?=3D "u-boot-script-toradex"
=20
UBOOT_BINARY =3D "u-boot-nand.imx"
+UBOOT_IMAGE =3D "u-boot-nand-${MACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
UBOOT_MAKE_TARGET =3D "u-boot.imx"
UBOOT_MACHINE ?=3D "colibri-imx6ull_defconfig"
=20
diff --git a/conf/machine/colibri-imx7-nand.conf b/conf/machine/colibri-i=
mx7-nand.conf
index 4ab7a95..03794c9 100644
--- a/conf/machine/colibri-imx7-nand.conf
+++ b/conf/machine/colibri-imx7-nand.conf
@@ -35,6 +35,7 @@ PREFERRED_PROVIDER_u-boot-default-script ?=3D "u-boot-s=
cript-toradex"
=20
# U-Boot NAND binary includes 0x400 padding required for NAND boot
UBOOT_BINARY =3D "u-boot-nand.imx"
+UBOOT_IMAGE =3D "u-boot-nand-${MACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
UBOOT_MAKE_TARGET =3D "u-boot.imx"
UBOOT_MACHINE ?=3D "colibri_imx7_defconfig"
=20
diff --git a/conf/machine/colibri-vf.conf b/conf/machine/colibri-vf.conf
index 8c66ced..7e00e89 100644
--- a/conf/machine/colibri-vf.conf
+++ b/conf/machine/colibri-vf.conf
@@ -39,6 +39,7 @@ PREFERRED_VERSION_weston_use-nxp-bsp =3D ""
=20
# U-Boot NAND binary includes 0x400 padding required for NAND boot
UBOOT_BINARY =3D "u-boot-nand.imx"
+UBOOT_IMAGE =3D "u-boot-nand-${MACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
UBOOT_MAKE_TARGET =3D "u-boot.imx"
UBOOT_MACHINE ?=3D "colibri_vf_defconfig"
=20
--=20
2.29.0


Re: Need support for Playing video with QT Application with X11 Support on Rootfs created with Yocto Rocko version.

Andrey Zhizhikin
 

Hello Rohit,

On Sun, May 2, 2021 at 6:37 PM rohit jadhav <rohitbjadhav1@...> wrote:

Hi Andrey,
Thank you for your guidance, But i Did find any Doc related Yocto or imx-linux-dunfell.
I may be wrong in my search, but I find Docs related to ZEUS and Gatesgarth.
Have a look at this repo:
https://github.com/Freescale/fsl-community-bsp-platform

You can use it as a platform development base, adding layers you need
into the BSP as you go. Default branch in that repo points to Dunfell
branch, so you would start the development on it straight away.


Can I start with anyone of the above but ZEUS is also recently EOL?
I would not recommend to start off Zeus, as it is also EOL.

And I have one doubt regarding meta-printing layer, as per my search its present upto Rocko version
Will I get this support any of the latest Yocto version?
This I do not know, your best bet would be to contact the layer
maintainer to discuss this.


Thanks and regards
Rohit

On Sun, May 2, 2021 at 9:02 PM Andrey Zhizhikin <andrey.z@...> wrote:

Hello Rohit,

On Sun, May 2, 2021 at 9:40 AM rohit jadhav <rohitbjadhav1@...> wrote:

I have crated rootfs with Yocto Rocko . I am running Qt application on it with X11 support.
Rocko branch is EOL since already 2,5 years, see
https://wiki.yoctoproject.org/wiki/Releases

Not sure if there would be any advise or support provided here for
versions that are already pas their EOL.

Have you tried the same setup with either Dunfell or Master?


What I observed booting log :
RandR extension missing
matchbox: Cant find a keycode for keysym 269025056
matchbox: ignoring key shortcut XF86Calendar=!$contacts

matchbox: Cant find a keycode for keysym 2809
matchbox: ignoring key shortcut telephone=!$dates

matchbox: Cant find a keycode for keysym 269025050
matchbox: ignoring key shortcut XF86Start=!matchbox-remote -desktop

And main observation is new rootfs {created with Rocko}is not supporting video playing feature with qt app.
But old rootfs {created with Krogoth} was supporting Video playing.

Did Imissed any Package in rootfs ?
Please guide me for this Solution.

Note : for Both Rootfs I have same Packages mentioned in local.conf


--
Regards,
Andrey.


--
Regards,
Andrey.


Re: Need support for Playing video with QT Application with X11 Support on Rootfs created with Yocto Rocko version.

rohit jadhav
 

Hi Andrey,
    Thank you for your guidance, But i Did find any Doc related Yocto or imx-linux-dunfell.
I may be wrong in my search, but I find Docs related to ZEUS and Gatesgarth.

Can I start with anyone of the above but ZEUS is also recently EOL?
And I have one doubt regarding meta-printing layer, as per my search its present upto Rocko version
Will I get this support any of the latest Yocto version?

Thanks and regards
Rohit


On Sun, May 2, 2021 at 9:02 PM Andrey Zhizhikin <andrey.z@...> wrote:
Hello Rohit,

On Sun, May 2, 2021 at 9:40 AM rohit jadhav <rohitbjadhav1@...> wrote:
>
> I have crated rootfs with Yocto Rocko . I am running Qt application on it with X11 support.

Rocko branch is EOL since already 2,5 years, see
https://wiki.yoctoproject.org/wiki/Releases

Not sure if there would be any advise or support provided here for
versions that are already pas their EOL.

Have you tried the same setup with either Dunfell or Master?

>
> What I observed booting log :
> RandR extension missing
> matchbox: Cant find a keycode for keysym 269025056
> matchbox: ignoring key shortcut XF86Calendar=!$contacts
>
> matchbox: Cant find a keycode for keysym 2809
> matchbox: ignoring key shortcut telephone=!$dates
>
> matchbox: Cant find a keycode for keysym 269025050
> matchbox: ignoring key shortcut XF86Start=!matchbox-remote -desktop
>
> And main observation is new rootfs {created with Rocko}is not supporting video playing feature with qt app.
> But old rootfs {created with Krogoth} was supporting Video playing.
>
> Did Imissed any Package in rootfs ?
> Please guide me for this Solution.
>
> Note : for Both Rootfs I have same Packages mentioned in local.conf
>
>


--
Regards,
Andrey.


Re: Need support for Playing video with QT Application with X11 Support on Rootfs created with Yocto Rocko version.

Andrey Zhizhikin
 

Hello Rohit,

On Sun, May 2, 2021 at 9:40 AM rohit jadhav <rohitbjadhav1@...> wrote:

I have crated rootfs with Yocto Rocko . I am running Qt application on it with X11 support.
Rocko branch is EOL since already 2,5 years, see
https://wiki.yoctoproject.org/wiki/Releases

Not sure if there would be any advise or support provided here for
versions that are already pas their EOL.

Have you tried the same setup with either Dunfell or Master?


What I observed booting log :
RandR extension missing
matchbox: Cant find a keycode for keysym 269025056
matchbox: ignoring key shortcut XF86Calendar=!$contacts

matchbox: Cant find a keycode for keysym 2809
matchbox: ignoring key shortcut telephone=!$dates

matchbox: Cant find a keycode for keysym 269025050
matchbox: ignoring key shortcut XF86Start=!matchbox-remote -desktop

And main observation is new rootfs {created with Rocko}is not supporting video playing feature with qt app.
But old rootfs {created with Krogoth} was supporting Video playing.

Did Imissed any Package in rootfs ?
Please guide me for this Solution.

Note : for Both Rootfs I have same Packages mentioned in local.conf


--
Regards,
Andrey.


Need support for Playing video with QT Application with X11 Support on Rootfs created with Yocto Rocko version.

rohit jadhav
 

I have crated rootfs with Yocto Rocko . I am running Qt application on it with X11 support.

What I observed booting log :
RandR extension missing
matchbox: Cant find a keycode for keysym 269025056
matchbox: ignoring key shortcut XF86Calendar=!$contacts

matchbox: Cant find a keycode for keysym 2809
matchbox: ignoring key shortcut telephone=!$dates

matchbox: Cant find a keycode for keysym 269025050
matchbox: ignoring key shortcut XF86Start=!matchbox-remote -desktop

And main observation is new rootfs {created with Rocko}is not supporting video playing feature with qt app.
But old rootfs {created with Krogoth} was supporting Video playing.

Did Imissed any Package in rootfs ?
Please guide me for this Solution.

Note : for Both Rootfs I have same Packages mentioned in local.conf


Re: Can't build weston image due to missing xserver-xorg-xwayland dependency

Andrey Zhizhikin
 

Hello Carlos,

On Thu, Apr 29, 2021 at 7:54 AM Carlos Rafael Giani via
lists.yoctoproject.org <crg7475=mailbox.org@...>
wrote:

I tried building latest master. core-image-base builds fine.
core-image-weston fails with this error:

nothing provides xserver-xorg-xwayland needed by
weston-xwayland-9.0.0.imx-r0.cortexa53-crypto-mx8m

What is confusing is that I can't find "xserver-xorg-xwayland" anywhere
in meta-freescale or any other layer. There is xwayland, but not
xserver-xorg-xwayland.

Is this a known bug? Or am I missing some settings somewhere?
There has been few patches from Alex in OE-Core regarding the xserver
and moving to xwayland, some examples are:
9fc863bcdb weston: use standalone xwayland instead of outdated
xserver-xorg version
07d33c8ec8 xwayland: add a standalone recipe

My best guess would be the recipe that builds NXP fork should be
adapted in the similar manner.





--
Regards,
Andrey.


Can't build weston image due to missing xserver-xorg-xwayland dependency

Carlos Rafael Giani
 

I tried building latest master. core-image-base builds fine. core-image-weston fails with this error:

    nothing provides xserver-xorg-xwayland needed by weston-xwayland-9.0.0.imx-r0.cortexa53-crypto-mx8m

What is confusing is that I can't find "xserver-xorg-xwayland" anywhere in meta-freescale or any other layer. There is xwayland, but not xserver-xorg-xwayland.

Is this a known bug? Or am I missing some settings somewhere?