Comments (10)
Is there no way to use the standard Yocto flow to build a linux image using the xilinx meta layers, without using repo or petalinux?
I've had success overriding (or overlaying?) the external-hdf
recipe in my internal meta layer and pointed it directly to my git repo hosting a hdf
file. That way it gets pulled in like any other recipe. The fsbl
builds after the external-hdf
repo and works as expected.
from meta-xilinx-tools.
EDIT: The proposed workaround is not actually correct, and results in build errors with u-boot, which did not occur before. New errors as a result of running bitbake fsbl
succesfully, then attempting bitbake core-image-full-cmdline
are shown below
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: core-image-full-cmdline-1.0-r0 do_xilinx_bootbin: Function failed: do_xilinx_bootbin (log file is located at /home/brett/Thesis/Zynq_Linux/Yocto/poky/build/tmp/work/zedboard_zynq7-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/temp/log.do_xilinx_bootbin.21531)
ERROR: Logfile of failure stored in: /home/brett/Thesis/Zynq_Linux/Yocto/poky/build/tmp/work/zedboard_zynq7-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/temp/log.do_xilinx_bootbin.21531
Log data follows:
| DEBUG: Executing shell function do_xilinx_bootbin
| [ERROR] : Can't read file - /home/brett/Thesis/Zynq_Linux/Yocto/poky/build/tmp/deploy/images/zedboard-zynq7/u-boot-zedboard-zynq7.elf
| WARNING: /home/brett/Thesis/Zynq_Linux/Yocto/poky/build/tmp/work/zedboard_zynq7-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/temp/run.do_xilinx_bootbin.21531:1 exit 1 from 'bootgen -image /home/brett/Thesis/Zynq_Linux/Yocto/poky/build/tmp/work/zedboard_zynq7-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/core-image-full-cmdline-1.0/bootgen.bif -arch zynq -w -o BOOT.bin'
| ERROR: Function failed: do_xilinx_bootbin (log file is located at /home/brett/Thesis/Zynq_Linux/Yocto/poky/build/tmp/work/zedboard_zynq7-poky-linux-gnueabi/core-image-full-cmdline/1.0-r0/temp/log.do_xilinx_bootbin.21531)
ERROR: Task (/home/brett/Thesis/Zynq_Linux/Yocto/poky/meta/recipes-extended/images/core-image-full-cmdline.bb:do_xilinx_bootbin) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3846 tasks of which 3833 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/brett/Thesis/Zynq_Linux/Yocto/poky/meta/recipes-extended/images/core-image-full-cmdline.bb:do_xilinx_bootbin
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
from meta-xilinx-tools.
The instructions are correct, please see
https://github.com/Xilinx/meta-xilinx-tools/blob/master/recipes-hdf/hdf/external-hdf.bb#L12
Please check Yocto documentation on how SRC_URI works wrt file path
from meta-xilinx-tools.
@mharth thank you for the response.
I did see the documentation, however I don't understand how that affects anything with regards to line 25 in external-hdf:
install -m 0644 ${WORKDIR}/${HDF_PATH} ${DEPLOYDIR}/Xilinx-${MACHINE}.hdf
which does not use the SRC_URI variable
brett@wintermute:~/Thesis/Zynq_Linux/Yocto/poky/build$ bitbake -e fsbl | grep ^WORKDIR=
WORKDIR="/home/brett/Thesis/Zynq_Linux/Yocto/poky/build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/fsbl/0.2+xilinx+gitAUTOINC+a931a8d447-r0"
Unless the file was put there by another do_install somewhere else.
Regardless, the original issue was that before I did this change, the fsbl file was not being built. After I made this change, it was. Please see here: https://lists.yoctoproject.org/pipermail/meta-xilinx/2017-May/002756.html
I greatly appreciate the help
from meta-xilinx-tools.
If you follow our manifest and build it works ( I just tested it)
http://www.wiki.xilinx.com/Getting+Started+With+Yocto+using+Repo+to+build+RPM+Packages
The one additional thing I had to do was IMAGE_LINGUAS="" but this has nothing to do with error you are seeing
SRC_URI fetches the required files and gets copied in $WORKDIR, hence the usage
from meta-xilinx-tools.
@mharth appreciate the help.
Is there no way to use the standard Yocto flow to build a linux image using the xilinx meta layers, without using repo or petalinux?
All I would like to do is build a simple image using the standard yocto build flow. However I am unable to build the fsbl because of the errors mentioned in the mailing list thread. I guess the workaround proposed above was incorrect, since I was misinterpreting how the SRC_URI variable is supposed to work, however I am still unable to generate the fsbl using bitbake core-image-full-cmdline or bitbake fsbl :(
Any suggestions would be greatly appreciated
from meta-xilinx-tools.
@kylemanna hmm ok that is indeed what I'm doing now, and it builds fine, however it does not load the bitfile at boot time so I figured something was still wacky..... Have you been able to get a BOOT.bin generated from your HDF using the meta-xilinx-tools that succesfully loads the PL bitstream before handing off to u-boot?
from meta-xilinx-tools.
You would need to embed the bitstream file in the BOOT.bin if you want the FSBL to load it (but, not sure why you'd ever do this on Linux), integrate it in to a FIT image with your kernel and let U-Boot load it, or load it in userspace via /dev/xdevcfg.
I prefer loading the bitstream as late as possible so that I don't need to muck with my early stage bootloaders every time I update the bitstream.
from meta-xilinx-tools.
Ah ok got it. I figured fsbl was the place to do it but might just wait until uboot then. Thanks for the help.
from meta-xilinx-tools.
https://github.com/Xilinx/meta-xilinx-tools/blob/rel-v2017.1/conf/machine/include/machine-xilinx-zynq.inc
This is one way pf packing bitstream in BOOT.bin.
from meta-xilinx-tools.
Related Issues (20)
- XSCT URL no longer valid. HOT 1
- attrflags is not expanded HOT 4
- Upgrade to warrior HOT 5
- FSBL build fails
- 2019.2: boot-gen depency failure HOT 1
- Yocto build error `package require hsi FAILED` HOT 5
- xsct-tarball.bbclass weak assigns XSCT_STAGING_DIR but doesn't honor it HOT 2
- XILINX_VER_MAIN is set to 2019.2 on rel-v2020.1 HOT 3
- No valid device tree binary found - after added meta-xilix-tools layer. HOT 1
- xsctyaml points to incorrect libdir
- Fpgautil failed if file doesn't exists
- fpga-manager-util: Files/directories were installed but not shipped in any package
- generated boot.bin will not boot correctly after moving the bootbin recipe to meta-xilinx HOT 11
- ZCU104 Linux kernel starting hangs on "Waiting for root device dev/mmcblk0p2..." HOT 5
- ERROR: Nothing RPROVIDES 'xilinx-bootbin' (but /home/madhanmohan/dtsi/layers/wrlinux/wrlinux-distro/recipes-base/images/wrlinux-image-std.bb RDEPENDS on or otherwise requires it) xilinx-bootbin was skipped: Not supported in this configuration by Wind River. To override, add to your local.conf: PNWHITELIST_xilinx += 'bootgen' PNWHITELIST_xilinx-tools += 'xilinx-bootbin' You may also have to add: BB_NO_NETWORK = '0' NOTE: Runtime target 'xilinx-bootbin' is unbuildable, removing... Missing or unbuildable dependency chain was: ['xilinx-bootbin'] ERROR: Required build target 'wrlinux-image-std' has no buildable providers. Missing or unbuildable dependency chain was: ['wrlinux-image-std', 'xilinx-bootbin']
- Kirkstone HOT 1
- fpga-manager-utils recipe looks for pl-final.dts, but pl-final.dts does not exist anymore in xilinx device tree repo HOT 6
- fpgautil source code linked from Wiki has moved HOT 4
- SRC_URI concatenation is missing space HOT 1
- Platform create command Update missing? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meta-xilinx-tools.