[meta-virtualization] Fwd: Building a Xen image on Yocto for ZCU102 board

Pello Heriz pello.heriz at alumni.mondragon.edu
Tue Mar 7 01:50:12 PST 2017


---------- Forwarded message ----------
From: Pello Heriz <pello.heriz at alumni.mondragon.edu>
Date: 2017-03-07 10:46 GMT+01:00
Subject: Fwd: Building a Xen image on Yocto for ZCU102 board
To: meta-xilinx at yoctoproject.org, meta-xilinx-request at yoctoproject.org,
meta-virtualization at yoctoproject.org



---------- Forwarded message ----------
From: Pello Heriz <pello.heriz at alumni.mondragon.edu>
Date: 2017-03-07 10:41 GMT+01:00
Subject: Building a Xen image on Yocto for ZCU102 board
To: meta-xilinx at yoctoproject.org, meta-xilinx-request at yoctoproject.org,
meta-virtualization at yoctoproject.org, cardoe at cardoe.com, matha at xilinx.com,
Alistair Francis <alistair23 at gmail.com>


Hi all,

as you know, I'm trying to build a Xen image using Yocto master branch for
ZCU102 board.

I have been experimenting some errors during the last days when I have
tried to execute bitbake xen-image-minimal command.

Some of you have told me to change to a stable branch in order to don't
have errors, but some weeks ago I tried to build a core-image-minimal for
ZCU102 using Morty branch and I couldn't. I think that this branch has not
enough support in order to build images for this (ZCU102) target. Anyway if
this information is not correct, I need to test the image using QEMU
emulator, and this also would't be possible with Morty for the ZCU102 board
case.

In the other hand, when I try to execute xen-image-minimal using master
branch, I experimented this error:

| ERROR: Function failed: do_compile (log file is located at
/opt/yocto_GE/yocto_master_v2/poky/build/tmp/work/aarch64-poky-linux/xen/4.8.0-r0/temp/log.do_compile.23462)
ERROR: Task
(/opt/yocto_GE/yocto_master_v2/poky/meta-virtualization/recipes-extended/xen/xen_4.8.0.bb:do_compile)
failed with exit code '1'
NOTE: Tasks Summary: Attempted 2385 tasks of which 2381 didn't need to be
rerun and 1 failed.

Summary: 1 task failed:

/opt/yocto_GE/yocto_master_v2/poky/meta-virtualization/recipes-extended/xen/xen_4.8.0.bb:
do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.


As you can see, it's an error related to compilation. I have read that the
error can be due to the GCC compiler version in the next link:
https://lists.yoctoproject.org/pipermail/meta-virtualization/2015-December/
001589.html
Could this be the problem? If yes, how can I solve it? in which file do I
need to change the compiler version I want to use?

On the other side, do I need to include meta-petalinux layer in my project
in order to use Xen? That's what I have read in the next link:
http://www.wiki.xilinx.com/Xen+Hypervisor+through+Yocto+Flow
This link also says that the used machine can be qemuzynqmp and that's not
correct. In my case, I'm trying to build the image using zcu102-zynqmp
machine.
Anyway, if I include meta-petalinux layer on my project, I got an error
related to qt5. I have tried to include meta-qt5 layer too, but I got the
next error:


pello at pello-VirtualBox:/opt/yocto_GE/yocto_master_v2/poky/build$ bitbake
xen-image-minimal
NOTE: /opt/yocto_GE/yocto_master_v2/poky/meta-qt5/recipes-qt/qt5/
qtbase_git.bb: base_contains is deprecated, please use bb.utils.contains
instead.
NOTE: /opt/yocto_GE/yocto_master_v2/poky/meta-qt5/recipes-qt/qt5/
qtbase_git.bb: base_contains is deprecated, please use bb.utils.contains
instead.
WARNING:
/opt/yocto_GE/yocto_master_v2/poky/meta-petalinux/recipes-external/external-xilinx-toolchain/
libgcc-xilinx.bb: LICENSE_libgcov-dev includes licenses (GPL-3.0) that are
not listed in LICENSE
Parsing recipes: 100%
|##################################################################################|
Time: 0:05:14
Parsing of 2097 .bb files complete (0 cached, 2097 parsed). 2894 targets,
221 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: multiple providers are available for iasl-native (iasl-native,
acpica-native)
NOTE: consider defining a PREFERRED_PROVIDER entry to match iasl-native
ERROR: Nothing RPROVIDES 'busybox-inetd' (but
/opt/yocto_GE/yocto_master_v2/poky/meta/recipes-core/busybox/
busybox_1.24.1.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'busybox-inetd' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['busybox-inetd']
NOTE: Runtime target 'busybox' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['busybox', 'busybox-inetd']
NOTE: Runtime target 'packagegroup-core-boot' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-core-boot',
'busybox', 'busybox-inetd']
ERROR: Required build target 'xen-image-minimal' has no buildable providers.
Missing or unbuildable dependency chain was: ['xen-image-minimal',
'packagegroup-core-boot', 'busybox', 'busybox-inetd']

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

Other thing that I have read that I need to add to my project in order to
configure the kernel for using Xen, has been to append in the local.conf
file the DISTRO_FEATURES_append = " xen". I also have done this, but the
bitbake result was the same as first reported image where it says that has
occurred a compilation errorSo can anybody answer this questions please?

Just for adding some more information, the layers that I have add in my
bblayers file are the next:

BBLAYERS ?= " \
  /opt/yocto_GE/yocto_master_v2/poky/meta \
  /opt/yocto_GE/yocto_master_v2/poky/meta-poky \
  /opt/yocto_GE/yocto_master_v2/poky/meta-yocto-bsp \
  /opt/yocto_GE/yocto_master_v2/poky/meta-xilinx \
  /opt/yocto_GE/yocto_master_v2/poky/meta-virtualization \
  /opt/yocto_GE/yocto_master_v2/poky/meta-openembedded/meta-oe \
  /opt/yocto_GE/yocto_master_v2/poky/meta-openembedded/meta-networking \
  /opt/yocto_GE/yocto_master_v2/poky/meta-openembedded/meta-filesystems \
  /opt/yocto_GE/yocto_master_v2/poky/meta-openembedded/meta-python \
  /opt/yocto_GE/yocto_master_v2/poky/oe-meta-go \
  /opt/yocto_GE/yocto_master_v2/poky/meta-selinux \
  /opt/yocto_GE/yocto_master_v2/poky/meta-petalinux \
  /opt/yocto_GE/yocto_master_v2/poky/meta-qt5 \
  "

The last two are the ones that give different problems when I run bitbake.

I would appreciate any answer,
Thanks,
Pello
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20170307/5f2d53d8/attachment.html>


More information about the meta-virtualization mailing list