cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
1,284 Views
Registered: ‎12-07-2018

Problem with xilinx-bootbin_1.0.bb (meta-xilinx-tools v2018.3)

Hello everyone,
I am able to build a petalinux-image-minimal image fine using the whole Xilinx Yocto stack (as per Xilinx Wiki), including a custom layer. However, if I add IMAGE_INSTALL_append = " xilinx-bootbin" to my local.conf file in order to generate BOOT.BIN using bootgen I get the following error:

ERROR: petalinux-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/eblanco/Work/Yocto/2018.3/project_0/build/tmp/work/zedboard_flex_zynq7-xilinx-linux-gnuea
bi/petalinux-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /home/eblanco/Work/Yocto/2018.3/project_0/build/tmp/work/zedboard_flex_zynq7-xilinx-linux-gnueabi/pet
alinux-image-minimal/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/eblanco/Work/Yocto/2018.3/project_0/build/tmp/work/zedboard_flex_zynq7-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/home/eblanco/Work/Yocto/2018.3/project_0/build/tmp/work/zedboard_flex_zynq7-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/oe-rootfs-repo --installroot=/home/eblanco/Work/Yocto/2018.3/project_0/build/tmp/work/zedboard_flex_zynq7-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/rootfs --setopt=logdir=/home/eblanco/Work/Yocto/2018.3/project_0/build/tmp/work/zedboard_flex_zynq7-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/temp --nogpgcheck install packagegroup-core-eclipse-debug canutils packagegroup-core-boot packagegroup-core-sdk xilinx-bootbin tcf-agent kernel-modules mtd-utils packagegroup-core-tools-debug run-postinsts packagegroup-core-standalone-sdk-target bridge-utils openssh-sftp-server pciutils packagegroup-core-ssh-dropbear' returned 1:
Added oe-repo repo from /home/eblanco/Work/Yocto/2018.3/project_0/build/tmp/work/zedboard_flex_zynq7-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/oe-rootfs-repo
Last metadata expiration check: 0:00:01 ago on Tue 12 Feb 2019 08:25:46 AM UTC.
No package xilinx-bootbin available.
Error: Unable to find a match

ERROR: petalinux-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/eblanco/Work/Yocto/2018.3/project_0/build/tmp/work/zedboard_flex_zynq7-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/temp/log.
do_rootfs.408
ERROR: Task (/home/eblanco/Work/Yocto/2018.3/project_0/sources/core/../meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_rootfs) failed with exit code '1'

I'm particularly intrigued by this part, since running bitbake xilinx-bootbin works fine.

No package xilinx-bootbin available.
Error: Unable to find a match

I have also tried to include PREFERRED_PROVIDER_virtual/boot-bin ?= "xilinx-bootbin", but I get the same results.

Has anyone experienced something similar?

Thank you.

0 Kudos
4 Replies
Highlighted
Visitor
Visitor
1,254 Views
Registered: ‎12-07-2018

Ok, so in case anyone was wondering, using IMAGE_CLASSES += " xilinx-bootbin" instead of IMAGE_INSTALL_append = " xilinx-bootbin" makes everything work.

It was my understanding that for v2018.3 the .bbclass had been deprecated in favour of a .bb recipe but this seems to prove otherwise.

0 Kudos
Highlighted
Newbie
Newbie
1,227 Views
Registered: ‎02-13-2019

Hello, i have same problem:

If use

IMAGE_CLASSES += " xilinx-bootbin"
 

then get error:

ERROR: ParseError at /mnt/yocto1/sources/core/meta/classes/image.bbclass:181: Could not inherit file classes/xilinx-bootbin.bbclass ETA:  --:--:--

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

0 Kudos
Visitor
Visitor
1,209 Views
Registered: ‎12-07-2018

Hello, ssamminsk1

I ended up adding it in a petalinux-image-minimal.bbappend file in my custom layer (/sources/meta-mycustomlayer/recipes-core/image/petalinux-image-minimal.bbappend) like this:

# Image features
IMAGE_FEATURES += "tools-debug eclipse-debug tools-sdk"

#Include BOOT.BIN generation
#IMAGE_INSTALL_append = " xilinx-bootbin"
IMAGE_CLASSES += " xilinx-bootbin"

Instead of adding it in local.conf. Maybe try that instead. I don't understand how it's working since there is no xilinx-bootbin.bbclass anywhere in my folder structure, but somehow it does.

0 Kudos
Highlighted
Observer
Observer
1,001 Views
Registered: ‎09-26-2017

Hi Problem with extrenal-hdf for 2017.3

Coammnd :  bitbake -c compile device-tree-generation

please find the error below

Initialising tasks: 100% |####################################################################################################################################################| Time: 0:00:02
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: external-hdf-1.0-r0 do_deploy: Function failed: do_deploy (log file is located at /home/pre-si-user/Desktop/Pushpendra/Xilix_Zync/build/tmp/work/zcu102_zynqmp-xilinx-linux/external-hdf/1.0-r0/temp/log.do_deploy.7292)
ERROR: Logfile of failure stored in: /home/pre-si-user/Desktop/Pushpendra/Xilix_Zync/build/tmp/work/zcu102_zynqmp-xilinx-linux/external-hdf/1.0-r0/temp/log.do_deploy.7292
Log data follows:
| DEBUG: Executing python function sstate_task_prefunc
| DEBUG: Python function sstate_task_prefunc finished
| DEBUG: Executing shell function do_deploy
| sudo: no tty present and no askpass program specified
| sudo: no tty present and no askpass program specified
| sudo: no tty present and no askpass program specified
| sudo: no tty present and no askpass program specified
| WARNING: /home/pre-si-user/Desktop/Pushpendra/Xilix_Zync/build/tmp/work/zcu102_zynqmp-xilinx-linux/external-hdf/1.0-r0/temp/run.do_deploy.7292:1 exit 1 from 'install -d /home/pre-si-user/Desktop/Pushpendra/Xilix_Zync/build/tmp/work/zcu102_zynqmp-xilinx-linux/external-hdf/1.0-r0/deploy-external-hdf'
| ERROR: Function failed: do_deploy (log file is located at /home/pre-si-user/Desktop/Pushpendra/Xilix_Zync/build/tmp/work/zcu102_zynqmp-xilinx-linux/external-hdf/1.0-r0/temp/log.do_deploy.7292)
ERROR: Task (/home/pre-si-user/Desktop/Pushpendra/Xilix_Zync/sources/core/../meta-xilinx-tools/recipes-bsp/hdf/external-hdf.bb:do_deploy) failed with exit code '1'
NOTE: Tasks Summary: Attempted 387 tasks of which 386 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/pre-si-user/Desktop/Pushpendra/Xilix_Zync/sources/core/../meta-xilinx-tools/recipes-bsp/hdf/external-hdf.bb:do_deploy
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

0 Kudos