Date   

Re: Safe to upgrade to a Community BSP?

Fabio Estevam
 

On Thu, Jun 10, 2021 at 5:19 PM Val Kondratenko
<valeriy.kondratenko@jci.com> wrote:

OK thanks.

Next question - does it have full support for imx7d?
Yes, imx7d is well supported in the mainline kernel.

I noticed (as I am attempting to apply patches we use), that /arch/arm/mach-imx/cpuidle-imx7d.c exists in the 5.4.X.imx version we are currently using, but is not present in 5.12. But mach-imx7d.c is.
Will I have to add files (via patches) to fully support imx7d?
cpuidle is supported via PSCI implementation in U-Boot.

I suggest you to use U-Boot mainline too.


Re: Safe to upgrade to a Community BSP?

Val Kondratenko
 

Just, also sent an e-mail in response to Otavio on this.
Thanks for quick responses!!!


Using imx7d:

I noticed (as I am attempting to apply patches we use), that /arch/arm/mach-imx/cpuidle-imx7d.c exists in the 5.4.X.imx version we are currently using, but is not present in 5.12. But mach-imx7d.c is.
Will I have to add files (via patches) to fully support imx7d vs. what we had in the freescale 5.4.X.imx release?

Thanks a ton,
Val

-----Original Message-----
From: Fabio Estevam <festevam@gmail.com>
Sent: Thursday, June 10, 2021 4:14 PM
To: Val Kondratenko <valeriy.kondratenko@jci.com>
Cc: meta-freescale@lists.yoctoproject.org
Subject: Re: [meta-freescale] Safe to upgrade to a Community BSP?

Hi Val,

On Thu, Jun 10, 2021 at 9:34 AM Val Kondratenko <valeriy.kondratenko@jci.com> wrote:
I recently got tasked with upgrading linux kernel (which we get from freescale), to fix some vulnerabilities.

I am new to this, with all engineers with previous experience in this area no longer with company.

To fix the vulnerabilities, will need to upgrade to kernel rev 5.12.

Noticed that only a community branch of this (5.12.x+fslc) is available. Latest freescale (imx) releases/branches are still at 5.4.

I do so, my organization has previously used on freescale/imx releases.

Is it generally safe to use the community releases? Have their problems with bugs/instabilities with them?
Yes, it is a good approach to move to a mainline kernel.

One important aspect to consider is what is the i.MX SoC that you are using.

imx28/imx5/imx6/imx7 have decent support in the upstream kernel.
imx8m/imx8mm are getting better.

imx8qxp has a minimum support upstream in 5.12.


Re: Safe to upgrade to a Community BSP?

Val Kondratenko
 

OK thanks.

Next question - does it have full support for imx7d?

I noticed (as I am attempting to apply patches we use), that /arch/arm/mach-imx/cpuidle-imx7d.c exists in the 5.4.X.imx version we are currently using, but is not present in 5.12. But mach-imx7d.c is.
Will I have to add files (via patches) to fully support imx7d?

Thanks a ton,
Val

-----Original Message-----
From: Otavio Salvador <otavio.salvador@ossystems.com.br>
Sent: Thursday, June 10, 2021 3:43 PM
To: Val Kondratenko <valeriy.kondratenko@jci.com>
Cc: meta-freescale@lists.yoctoproject.org
Subject: Re: [meta-freescale] Safe to upgrade to a Community BSP?

Hello Val,

The 5.12.x is based on mainline. It is totally safe and include very small set of changes on top of upstream.

Em qui., 10 de jun. de 2021 às 09:34, Val Kondratenko <valeriy.kondratenko@jci.com> escreveu:



I recently got tasked with upgrading linux kernel (which we get from freescale), to fix some vulnerabilities.

I am new to this, with all engineers with previous experience in this area no longer with company.

To fix the vulnerabilities, will need to upgrade to kernel rev 5.12.

Noticed that only a community branch of this (5.12.x+fslc) is available. Latest freescale (imx) releases/branches are still at 5.4.

I do so, my organization has previously used on freescale/imx releases.

Is it generally safe to use the community releases? Have their problems with bugs/instabilities with them?



Thanks in advance,

Val




--
Otavio Salvador O.S. Systems
https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ossystems.com.br%2F&;data=04%7C01%7Cvaleriy.kondratenko%40jci.com%7C68fa10fc4c794bcb2ac108d92c480a8b%7Ca1f1e2147ded45b681a19e8ae3459641%7C0%7C1%7C637589510191097105%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=r%2FuFSFBqT%2B1WdIyGGgW5bwH%2B1gFJQnGtJq5fyKkvYb0%3D&amp;reserved=0 https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcode.ossystems.com.br%2F&;data=04%7C01%7Cvaleriy.kondratenko%40jci.com%7C68fa10fc4c794bcb2ac108d92c480a8b%7Ca1f1e2147ded45b681a19e8ae3459641%7C0%7C1%7C637589510191097105%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&amp;sdata=4CwmeXWH%2BWzfjD8%2FH1AvuU8zPQ%2BCdIdR2DpR7vIRTa4%3D&amp;reserved=0
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750


Re: Safe to upgrade to a Community BSP?

Fabio Estevam
 

Hi Val,

On Thu, Jun 10, 2021 at 9:34 AM Val Kondratenko
<valeriy.kondratenko@jci.com> wrote:
I recently got tasked with upgrading linux kernel (which we get from freescale), to fix some vulnerabilities.

I am new to this, with all engineers with previous experience in this area no longer with company.

To fix the vulnerabilities, will need to upgrade to kernel rev 5.12.

Noticed that only a community branch of this (5.12.x+fslc) is available. Latest freescale (imx) releases/branches are still at 5.4.

I do so, my organization has previously used on freescale/imx releases.

Is it generally safe to use the community releases? Have their problems with bugs/instabilities with them?
Yes, it is a good approach to move to a mainline kernel.

One important aspect to consider is what is the i.MX SoC that you are using.

imx28/imx5/imx6/imx7 have decent support in the upstream kernel.
imx8m/imx8mm are getting better.

imx8qxp has a minimum support upstream in 5.12.


Re: Safe to upgrade to a Community BSP?

Otavio Salvador
 

Hello Val,

The 5.12.x is based on mainline. It is totally safe and include very
small set of changes on top of upstream.

Em qui., 10 de jun. de 2021 às 09:34, Val Kondratenko
<valeriy.kondratenko@jci.com> escreveu:




I recently got tasked with upgrading linux kernel (which we get from freescale), to fix some vulnerabilities.

I am new to this, with all engineers with previous experience in this area no longer with company.

To fix the vulnerabilities, will need to upgrade to kernel rev 5.12.

Noticed that only a community branch of this (5.12.x+fslc) is available. Latest freescale (imx) releases/branches are still at 5.4.

I do so, my organization has previously used on freescale/imx releases.

Is it generally safe to use the community releases? Have their problems with bugs/instabilities with them?



Thanks in advance,

Val



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


Safe to upgrade to a Community BSP?

Val Kondratenko
 

 

I recently got tasked with upgrading linux kernel (which we get from freescale), to fix some vulnerabilities.

I am new to this, with all engineers with previous experience in this area no longer with company.

To fix the vulnerabilities, will need to upgrade to kernel rev 5.12.

Noticed that only a community branch of this (5.12.x+fslc) is available.   Latest freescale (imx) releases/branches are still at 5.4.

I do so, my organization has previously used on freescale/imx releases.

Is it generally safe to use the community releases?  Have their problems with bugs/instabilities with them?

 

Thanks in advance,

Val


Re: Failed to create MTD partitions

JH
 

Hello Tom,

We have another issue to use Samsung NAND K9F2G08U0D-SCB0, I found a
similar issue posted in NXP community that NXP driver did not support
similar Samsung NAND
https://community.nxp.com/t5/i-MX-Processors/ECC-errors-with-Samsung-NAND-K9K8G08U0F-on-i-MX6UL/m-p/676885

We are using meta-freescale, does meta-freescale NXP driver support
Samsung K9F2G08U0D-SCB0? Or which version of the meta-freescale NXP
driver can support Samsung K9F2G08U0D-SCB0?

Thank you very much.

Kind regards,

Jupiter

On 5/29/21, Jupiter <jupiter.hce@gmail.com> wrote:
Hello,

There is another statement before the device found, is the Error
setting BCH geometry : -22 caused by ECC or by invalid JEDEC? It is
kernel version 4.19 on iMX6ULZ MCU.

[ 8.130891] nand: Could not find valid JEDEC parameter page; aborting
[ 8.137591] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[ 8.144246] nand: Samsung NAND 256MiB 3,3V 8-bit
[ 8.148995] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB
siz
e: 64
[ 8.158330] gpmi-nand 1806000.gpmi-nand: Error setting BCH geometry :
-22
[ 8.166690] gpmi-nand: probe of 1806000.gpmi-nand failed with error -22

Thank you.

Kind regards,

- jupiter


On 5/28/21, Jupiter <jupiter.hce@gmail.com> wrote:
Hello,

I am using MTD in kernel 4.19, I was able to run kernel boot to create
MTD partitions when I used NAND Winbond W29N02GV:

[ 7.961966] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xda
[ 7.968545] nand: Winbond W29N02GV
[ 7.972267] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048,
OOB
siz
e: 64
[ 7.986814] Bad block table found at page 131008, version 0x01
[ 7.994254] Bad block table found at page 130944, version 0x01
[ 8.002152] 3 cmdlinepart partitions found on MTD device gpmi-nand
[ 8.008479] Creating 3 MTD partitions on "gpmi-nand":
....................

Since we could not get Winbond W29N02GV supply anymore, we changed
Samsung NAND, Both are 3.3V 2Gib devices with the same memory
organization (2k pages +
64b OOB / 128k blocks) so these two parts should be equivalent in
terms of internal organization, but it failed to create MTD partitions
in kernel boot:

[ 8.137591] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[ 8.144246] nand: Samsung NAND 256MiB 3,3V 8-bit
[ 8.148995] nand: 256 MiB, SLC, erase size: 128 KiB, page size:
2048, OOB size: 64
[ 8.158330] gpmi-nand 1806000.gpmi-nand: Error setting BCH geometry :
-22
[ 8.166690] gpmi-nand: probe of 1806000.gpmi-nand failed with error
-22

Since it is a new board, I suspect one of following problem might
cause that error:

- HW
- MTD does not support Samsung?
- Need kernel configure?

Appreciate your comments and advice.

Thank you very much.

- jupiter


imx8mn: tweaking network driver for realtime

Mario Aldag
 

I'm trying to tweak an i.mx8MNDDR4EVK Board for better realtime capabilities. I'm on Zeus 5.4.70 and applied the rt-patches.

Running `cyclictests -a -p95 -n -b 100` with trace-cmd and *all* events causes significant traffic on the network port, which I would also need for the real application.
Running analysis with kernelshark points out lots of `skb` cache and malloc accesses...

Is there a way to preemptive allocate some space for the net-driver or is there another network driver which is better suited for this application?


Re: PREEMPT_RT support in this group

Otavio Salvador
 



Em qua., 26 de mai. de 2021 às 07:39, <aldag.mario@...> escreveu:
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.

We need people to support those; it is not possible to add it without people committed to maintain it.

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


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@gmail.com> wrote:



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


On Thu, May 6, 2021 at 3:28 PM Peter Bergin <peter@berginkonsult.se> 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@gmail.com> 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


101 - 120 of 24791