On 5/3/22 9:43 AM, Mark Hatle wrote:
extract-cdo should be running after the boot.bin is generated.  The "CDO" is
contained within a section of the PDI file(s), which are embedded in the
boot.bin by earlier invocations of bootgen.

So order of operations needs to be:

boot.bin is generated (from the PDI + other artifacts) and deployed to the
tmp/deploy directory.

extract-cdo is needed to support QEMU, and should point back to the deployed
boot.bin.  The key is it must be the one that was just generated, or the
pmc_cdo.bin must be the current one for everything to work properly.


What is intended to force this is line 11 of the recipe:

do_compile[depends] += "virtual/boot-bin:do_deploy"

clearly it's not working if you are having issues with it.

If bootgen is still running, then there is some issue still with the dependency
above.  The boot-bin generation MUST be complete before we can run our own
do_compile.


(I've not seen this behavior or I would try to resolve it.. if you can reproduce
this regularly -- then you may have a better chance at figuring out why the
dependency isn't correct.)


I've created an internal defect on this so I can continue to track it and get some help internally.

Looking at your patch, I think I may have missed the actual fix. The 'cp' shouldn't be needed, but the BOOTGEN_OUTFILE hardcoded the way it is is incorrect. Additionally, the CDO extracting working in the DEPLOY_DIR_IMAGE is definitely wrong.

do_compile can access files in the DEPLOY_DIR_IMAGE, but should never be writing there. I'll see if I can reproduce it, and rework that chunk.

--Mark

--Mark


On 5/2/22 1:32 PM, Thompson, Corey via lists.yoctoproject.org wrote:
Apologies, I forgot to actually attach the patch as I often do!

On Mon, May 02, 2022 at 02:30:30PM -0400, Corey Thompson wrote:
Hello.

I've been troubleshooting an issue that sometimes QEMU wouldn't start
after I built my image.  I narrowed it down to that the extract-cdo
recipe doesn't properly deploy pmc_cdo.bin to the images dir when the
recipe is deployed from sstate cache.

I found a note in the Yocto reference manual about this issue here:

https://docs.yoctoproject.org/3.2.4/ref-manual/ref-tasks.html#do-deploy

Attached is a patch which seems to address the problem as far as I can
tell.

I am building using meta-xilinx rel-v2021.2 (commit hash
054cb2cb4c3ffe868ade68369433027989571cf6) with the following in my
local.conf:

MACHINE ?= "versal-generic"
BOARD ?= "vck190"

Thanks,
Corey








-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#4992): 
https://lists.yoctoproject.org/g/meta-xilinx/message/4992
Mute This Topic: https://lists.yoctoproject.org/mt/90842546/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to