All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rudolf J Streif" <rudolf.streif@ibeeto.com>
To: stefan.wenninger@evopro-ag.de, yocto@lists.yoctoproject.org
Subject: Re: [yocto] imx-boot do_compile failing with custom distro #yocto
Date: Wed, 8 Apr 2020 09:29:19 -0700	[thread overview]
Message-ID: <e184439e-230a-fa2e-27bb-c2e9c4c8ac4f@ibeeto.com> (raw)
In-Reply-To: <r2h6.1586356887188852470.W0sx@lists.yoctoproject.org>


[-- Attachment #1.1.1: Type: text/plain, Size: 4850 bytes --]

Hi Stefan,

I agree that it is odd that a recipe copies a file, in this case the
bl31 bootloader image, from the deploy area to the recipe area. This
bootloader binary is created by the imx-atf recipe. imx-atf is listed as
a dependency for imx-boot which is the recipe that is failing in your
build. Therefore I would expect imx-atf to run before imx-boot. However,
a recipe's do_compile task does not depend on another recipe's do_deploy
task but on the other recipe's do_install task. What likely happened is
that imx-boot do_compile was started after imx-atf do_install completed
but before imx-atf do_deploy has completed. For imx-boot to work
correctly it should copy the files from imx-atf's staging area rather
than the deploy directory.

I suggest that you try to run imx-atf alone to see if it builds and if
the bl31 image is built and placed into the deploy directory. And then
run your build again.

:rjs

On 4/8/20 7:41 AM, stefan.wenninger@evopro-ag.de wrote:
> Hi,
> I have encountered a curious problem when trying to create my own
> poky-based distribution.
> My distribution /poky-mydist.conf/ in conf/distro/ of my own layer:
>
>     require conf/distro/poky.conf
>     DISTRO = "poky-mydist"
>     DISTRO_NAME = "Poky my dist (Custom Project Distro)"
>     DISTROOVERRIDES = "poky:poky-mydist"
>      
>     DISTRO_FEATURES += "ppp"
>
> This distro is basically identical to the base poky from /poky.conf/.
> I just added a feature to be able to verify that my distro is being used.
>
> When I build core-image-base however, I get the following error:
>
>     ERROR: imx-boot-0.2-r0 do_compile: Function failed: do_compile
>     (log file is located at
>     /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/temp/log.do_compile.14295)
>     ERROR: Logfile of failure stored in:
>     /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/temp/log.do_compile.14295
>     Log data follows:
>     | DEBUG: Executing shell function do_compile
>     | Copying DTB
>     | 8MQ/8MM boot binary build
>     | Copy ddr_firmware: lpddr4_pmu_train_1d_imem.bin from
>     /opt/yocto-dev/build_poky/tmp/deploy/images/imx8mq-var-dart ->
>     /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/git/iMX8M
>     | Copy ddr_firmware: lpddr4_pmu_train_1d_dmem.bin from
>     /opt/yocto-dev/build_poky/tmp/deploy/images/imx8mq-var-dart ->
>     /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/git/iMX8M
>     | Copy ddr_firmware: lpddr4_pmu_train_2d_imem.bin from
>     /opt/yocto-dev/build_poky/tmp/deploy/images/imx8mq-var-dart ->
>     /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/git/iMX8M
>     | Copy ddr_firmware: lpddr4_pmu_train_2d_dmem.bin from
>     /opt/yocto-dev/build_poky/tmp/deploy/images/imx8mq-var-dart ->
>     /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/git/iMX8M
>     | cp: cannot stat
>     '/opt/yocto-dev/build_poky/tmp/deploy/images/imx8mq-var-dart/imx-boot-tools/bl31-imx8mq.bin':
>     No such file or directory
>     | WARNING: exit code 1 from a shell command.
>     | ERROR: Function failed: do_compile (log file is located at
>     /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/temp/log.do_compile.14295)
>     ERROR: Task
>     (/opt/yocto-dev/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/imx-mkimage/imx-boot_0.2.bb:do_compile)
>     failed with exit code '1'
>
> By just switching my DISTRO to 'poky' in local.conf, it builds without
> error.
>
> There are several things that surprise me about this error:
> 1. I find it quite strange that these ddr_firmwares are copied from
> the deploy directory to the working directory of imx-boot. I would
> expect that to be the other way around.
> 2. The file /bl31-imx8mq.bin/ is not in the imx-boot-tools folder,
> even after a successful build with DISTRO='poky'. (Maybe it was there
> during build and was just removed afterwards?)
>
> From my point of view it looks like the set of files that get put into
> imx-boot-tools/ is dependant on the DISTRO value? When using
> DISTRO='poky' the correct set is placed and copied. When using
> DISTRO='poky-mydist' the files that are placed into the folder are not
> the files that are supposed to be copied from there, hence the error.
>
> Am I interpreting this situation correctly?
> Is there an error in my /poky-mydist/ distribution?
> Is that something that needs to be fixed in the recipe for imx-boot?
> Or can I somehow configure /poky-mydist.conf/ to be treated exactly
> like /poky.conf/?
>
> Thanks in advance
> Stefan 
>
> 

-- 
-----
Rudolf J Streif
CEO/CTO ibeeto
+1.855.442.3386 x700


[-- Attachment #1.1.2: Type: text/html, Size: 6748 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 499 bytes --]

  reply	other threads:[~2020-04-08 16:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-08 14:41 imx-boot do_compile failing with custom distro #yocto stefan.wenninger
2020-04-08 16:29 ` Rudolf J Streif [this message]
2020-04-09 10:58   ` stefan.wenninger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e184439e-230a-fa2e-27bb-c2e9c4c8ac4f@ibeeto.com \
    --to=rudolf.streif@ibeeto.com \
    --cc=stefan.wenninger@evopro-ag.de \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.