Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attrflags is not expanded #15

Open
YehorRaketskyi opened this issue Aug 1, 2019 · 4 comments
Open

attrflags is not expanded #15

YehorRaketskyi opened this issue Aug 1, 2019 · 4 comments

Comments

@YehorRaketskyi
Copy link

YehorRaketskyi commented Aug 1, 2019

If "attrflags" contains some environment variable, result.bif file will contain something like
"[destination_cpu=a53-0, offset=${DTB_OFFSET}] /mnt/ext/bla/blabla/build/tmp/deploy/images/blablabla/blablabla-system.dtb " instead of
"[destination_cpu=a53-0, offset=0x1c80000] /mnt/ext/bla/blabla/build/tmp/deploy/images/blablabla/blablabla-system.dtb "

To prevent it, attrflags should be expanded.

cfgval = attrflags[cfg].split(',')

Change to
cfgval = d.expand(attrflags[cfg]).split(',')

cfgval = attrflags[cfg].split(',')

Change to
cfgval = d.expand(attrflags[cfg]).split(',')

@mharth
Copy link
Contributor

mharth commented Aug 1, 2019

Is this new on master or warrior branch?

@YehorRaketskyi
Copy link
Author

Is this new on master or warrior branch?

On both, if "warrior" is rel-v2019.1

@mharth
Copy link
Contributor

mharth commented Aug 1, 2019

rel-v2019.1 is on thud and we dont see the issue

@YehorRaketskyi
Copy link
Author

YehorRaketskyi commented Aug 1, 2019

Ok. Try to add a "xilinx-bootbin_%.bbappend":

DTB_OFFSET = "0x2A00000"
DTB_OFFSET_zcu102-zynqmp = "0x1C00000"

# specify BIF partition attributes for Device-tree blob
# destination cpu for a53-0.
BIF_PARTITION_ATTR[dtb] ?= "destination_cpu=a53-0,offset=${DTB_OFFSET}"
BIF_PARTITION_IMAGE[dtb] ?= "${DEPLOY_DIR_IMAGE}/${MACHINE}-system.dtb"
BIF_PARTITION_DEPENDS[dtb] ?= "virtual/dtb:do_deploy"

BIF_PARTITION_ATTR_zynqmp = "fsbl bitstream pmu atf u-boot dtb "

And you will find the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants