meta-freescale.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* Hardknott build for imx8mm-evk failed
@ 2021-05-06 12:41 Brian Hutchinson
  2021-05-06 19:30 ` [meta-freescale] " Peter Bergin
  0 siblings, 1 reply; 6+ messages in thread
From: Brian Hutchinson @ 2021-05-06 12:41 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 31671 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 48583 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-freescale] Hardknott build for imx8mm-evk failed
  2021-05-06 12:41 Hardknott build for imx8mm-evk failed Brian Hutchinson
@ 2021-05-06 19:30 ` Peter Bergin
  2021-05-06 19:34   ` Brian Hutchinson
       [not found]   ` <167C9141039D9BA3.15780@lists.yoctoproject.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Bergin @ 2021-05-06 19:30 UTC (permalink / raw)
  To: Brian Hutchinson, meta-freescale

[-- Attachment #1: Type: text/plain, Size: 2033 bytes --]

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



[-- Attachment #2: Type: text/html, Size: 6070 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-freescale] Hardknott build for imx8mm-evk failed
  2021-05-06 19:30 ` [meta-freescale] " Peter Bergin
@ 2021-05-06 19:34   ` Brian Hutchinson
       [not found]   ` <167C9141039D9BA3.15780@lists.yoctoproject.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Brian Hutchinson @ 2021-05-06 19:34 UTC (permalink / raw)
  To: Peter Bergin; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1956 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 5513 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-freescale] Hardknott build for imx8mm-evk failed
       [not found]   ` <167C9141039D9BA3.15780@lists.yoctoproject.org>
@ 2021-05-06 20:24     ` Brian Hutchinson
  2021-05-07 10:30       ` Andrey Zhizhikin
       [not found]     ` <167C93F9BD5C62C6.25900@lists.yoctoproject.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Brian Hutchinson @ 2021-05-06 20:24 UTC (permalink / raw)
  To: b.hutchman; +Cc: Peter Bergin, meta-freescale

[-- Attachment #1: Type: text/plain, Size: 26545 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 45225 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-freescale] Hardknott build for imx8mm-evk failed
       [not found]     ` <167C93F9BD5C62C6.25900@lists.yoctoproject.org>
@ 2021-05-07  0:19       ` Brian Hutchinson
  0 siblings, 0 replies; 6+ messages in thread
From: Brian Hutchinson @ 2021-05-07  0:19 UTC (permalink / raw)
  To: b.hutchman; +Cc: Peter Bergin, meta-freescale

[-- Attachment #1: Type: text/plain, Size: 27991 bytes --]

On Thu, May 6, 2021 at 4:24 PM Brian Hutchinson via lists.yoctoproject.org
<b.hutchman=gmail.com@lists.yoctoproject.org> 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.
>>>
>> 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

[-- Attachment #2: Type: text/html, Size: 45935 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-freescale] Hardknott build for imx8mm-evk failed
  2021-05-06 20:24     ` Brian Hutchinson
@ 2021-05-07 10:30       ` Andrey Zhizhikin
  0 siblings, 0 replies; 6+ messages in thread
From: Andrey Zhizhikin @ 2021-05-07 10:30 UTC (permalink / raw)
  To: Brian Hutchinson; +Cc: Peter Bergin, meta-freescale

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-07 10:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-06 12:41 Hardknott build for imx8mm-evk failed Brian Hutchinson
2021-05-06 19:30 ` [meta-freescale] " Peter Bergin
2021-05-06 19:34   ` Brian Hutchinson
     [not found]   ` <167C9141039D9BA3.15780@lists.yoctoproject.org>
2021-05-06 20:24     ` Brian Hutchinson
2021-05-07 10:30       ` Andrey Zhizhikin
     [not found]     ` <167C93F9BD5C62C6.25900@lists.yoctoproject.org>
2021-05-07  0:19       ` Brian Hutchinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).