From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by mx.groups.io with SMTP id smtpd.web09.384.1620329674119843577 for ; Thu, 06 May 2021 12:34:34 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lkSTzFzu; spf=pass (domain: gmail.com, ip: 209.85.216.54, mailfrom: b.hutchman@gmail.com) Received: by mail-pj1-f54.google.com with SMTP id lp4so3888507pjb.1 for ; Thu, 06 May 2021 12:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tOC5H/aVe1nXG5S+Re52ZGxMeBwDVxOxPB+lNt2Jiu8=; b=lkSTzFzugANlvmtvsHkPyzwVsV5yhIed5vjJlh7UYDG3tqsvKuDp8m3RQP/vSVWChD Oe6XnV5tUIqgG+9RgU8SNTvDVqlJZeFvO/Ea/TNu7mqiqLgXu85TrMKue0L70UGSVRpd Os8M1EqKaraTnAIAnL2/PBc1jtv6lekPa2o1MDCPaidNYu0G1z6LvSSwlvGzfKH5QzM3 4iisFPp3CKKk+G5nVb6wPDMtXNGaBlK9Syrwvw7zx6uuRvHTB472O6oTykv25cVkH+2A m/1GfCrYma6XIjxQofMqdqK9eD6IzEpOIXR3KKUxu3H2KyHvtQdLbJtO0xBieFoIWhln TJBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tOC5H/aVe1nXG5S+Re52ZGxMeBwDVxOxPB+lNt2Jiu8=; b=CdyNeh8wF35NcYI3R3JIrk9yd/hDYYX+04lt76Oq8Kzp7HMe4KnEdQSw1ZnQiAWfKt Njrpp9MklY/BqKihaBSucBt+i2R5CH5owqMm8RfomArxaE5aRbThVYXf6SOTfpFDqKGQ KgIblanB/SBYUDo5KVqIM5ym9jPzJ5keh5AineAGHaX5lw0pqHV2ssc1w3ucCLLXVky+ 6Npq15dd9yoU44+1jazplCIvQy7HpQwnbYzppRmxn4J9oCxa+auVBYq8O7NTot/qtSAP yfgrBsRFaVjumPAb5vYHv9DwKDyI4RqxBrkNxHJwplSrrmMngQgDVHp6ME16IzCGS0lq pSxQ== X-Gm-Message-State: AOAM530JmkiQGDUxF3zCg6XzD3JIMtvTQASlUVLTBXcWnt71aVawctdv JNketfKPvvZhMrMFc0nSyV0CKuqPeMfoiBlEvnw= X-Google-Smtp-Source: ABdhPJy/MfZ6UF9kg1GBZ013Bgxmy4DtNJInjio0cUqF9PXzmsNc2fEJeyqvSCb5VhSVX3310zqQSIrjiSOthyVHi2I= X-Received: by 2002:a17:902:ec87:b029:ee:910d:acf5 with SMTP id x7-20020a170902ec87b02900ee910dacf5mr6254856plg.66.1620329673238; Thu, 06 May 2021 12:34:33 -0700 (PDT) MIME-Version: 1.0 References: <510cf840-69d0-359e-f902-197d338d0fbe@berginkonsult.se> In-Reply-To: <510cf840-69d0-359e-f902-197d338d0fbe@berginkonsult.se> From: "Brian Hutchinson" Date: Thu, 6 May 2021 15:34:22 -0400 Message-ID: Subject: Re: [meta-freescale] Hardknott build for imx8mm-evk failed To: Peter Bergin Cc: meta-freescale@lists.yoctoproject.org Content-Type: multipart/alternative; boundary="00000000000097a9c505c1ae66ba" --00000000000097a9c505c1ae66ba Content-Type: text/plain; charset="UTF-8" On Thu, May 6, 2021 at 3:28 PM Peter Bergin 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! --00000000000097a9c505c1ae66ba Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, May 6, 2021 at 3:28 PM Peter Berg= in <peter@berginkonsult.se= > wrote:
=20 =20 =20

Hi Brian,

On 2021-05-06 14:41, Brian Hutchinson wrote:
=20
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 =3D lpddr4 and 8MMINID4 =3D ddr4. I have a imx8mm_lpddr4_evk in my project ad have been able to build hardknott without issues.

<= /div>
Yes, the LPDDR4 version has a NAND flash if memory s= erves me right.=C2=A0 Mine is the older version (Rev B) DDR4 version with e= MMC and NOR flash.

EULA=3D1 DISTRO=3Dpoky MACHINE=3Dimx8mm-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 =3D "nxp"
IMX_DEFAULT_BSP =3D "mainline"

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

PREFERRED_PROVIDER_virtual/kernel =3D "linux-fslc"
PREFERRED_VERSION_linux-fslc =3D "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.<= /span>

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:

=C2=A0=C2=A0=C2=A0 PREFERRED_PROVIDER_virtual/bootloader =3D "u= -boot-imx"

I'll try that and see w= hat happens!

Thanks!

--00000000000097a9c505c1ae66ba--