[meta-xilinx] rel-v2018.03: openamp-image-minimal build fails due to kernel config
Jiaying Liang
jliang at xilinx.com
Tue Dec 18 00:07:08 PST 2018
Hi Bill,
From: William A. Mills [mailto:wm.a.mills at gmail.com]
Sent: Monday, December 17, 2018 3:36 PM
To: Jiaying Liang <jliang at xilinx.com>
Cc: meta-xilinx at yoctoproject.org
Subject: Re: rel-v2018.03: openamp-image-minimal build fails due to kernel config
Hi Wendy,
On Mon, Dec 17, 2018 at 12:37 PM Jiaying Liang <jliang at xilinx.com> wrote:
Hi William,
From: William A. Mills [mailto:wm.a.mills at gmail.com]
Sent: Sunday, December 16, 2018 11:10 AM
To: meta-xilinx at yoctoproject.org; Jiaying Liang <jliang at xilinx.com>
Subject: rel-v2018.03: openamp-image-minimal build fails due to kernel config
Wendy & all,
I am trying to build the openamp-image-minimal for my Ultra96 board. I am using the rel-v2018.3 release from the Xilinx yocto-manifests. My desktop machine is Ubuntu 16.04 64 bit. I have no Xilinx SDKs or design tools installed.
When I build this image the resulting kernel does not have the needed modules and this results in a failed do_rootfs.
I am using the zcu100-zynqmp machine. Is there a different machine that works for this image? I see the linux-%.bbapend in the openamp layer. Do I need to manually add the distro features to my local.conf? Do I need to use a different kernel as the base?
I can probably hack this up so it works but I would like to understand how it is supposed to work.
$ MACHINE=zcu100-zynqmp bitbake -k openamp-image-minimal
bill at rocky:~/w/proj/ultra-96/oe-v2018.3/build/tmp/log/cooker/zcu100-zynqmp$ cat console-latest.log
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.36.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-xilinx-linux"
MACHINE = "zcu100-zynqmp"
DISTRO = "petalinux"
DISTRO_VERSION = "2018.3"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta
meta-poky = "HEAD:3be15ed93e52d797250ad90467760eb1fd7eca56"
meta-perl
meta-python
meta-filesystems
meta-gnome
meta-multimedia
meta-networking
meta-webserver
meta-xfce
meta-initramfs
meta-oe = "HEAD:83fbd5d5d605de13f47263fab680d910375e1f95"
meta-browser = "HEAD:c5ff301787ef76eec57ca500ec9d1ccf0f74b488"
meta-qt5 = "HEAD:f7e16aeeaa58cd7cc166f16d8537a8b3627e0397"
meta-xilinx-bsp
meta-xilinx-contrib = "HEAD:7922f16dfa5308fb5419a80f513bb07c0384f95e"
meta-xilinx-tools = "HEAD:b286943d7d468e9ff10b9f9662767e8c71f104d1"
meta-petalinux = "HEAD:254edec8368c3d30676135365734abe06e596881"
meta-virtualization = "HEAD:df7b7937b9c91eeea05665c0b69ddcf435cddbcb"
meta-openamp = "HEAD:fb5fbc77fa5595ed291b886abe9555a91e67d241"
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Running task 2788 of 3326 (/home/bill/w/proj/ultra-96/oe-v2018.3/sources/core/../meta-openamp/recipes-openamp/images/openamp-image-minimal.bb:do_rootfs)
NOTE: recipe openamp-image-minimal-1.0-r0: task do_rootfs: Started
ERROR: openamp-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/bill/w/proj/ultra-96/oe-v2018.3/build/tmp/work/zcu100_zynqmp-xilinx-linux/openamp-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /home/bill/w/proj/ultra-96/oe-v2018.3/build/tmp/work/zcu100_zynqmp-xilinx-linux/openamp-image-minimal/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/bill/w/proj/ultra-96/oe-v2018.3/build/tmp/work/zcu100_zynqmp-xilinx-linux/openamp-image-minimal/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/home/bill/w/proj/ultra-96/oe-v2018.3/build/tmp/work/zcu100_zynqmp-xilinx-linux/openamp-image-minimal/1.0-r0/oe-rootfs-repo --installroot=/home/bill/w/proj/ultra-96/oe-v2018.3/build/tmp/work/zcu100_zynqmp-xilinx-linux/openamp-image-minimal/1.0-r0/rootfs --setopt=logdir=/home/bill/w/proj/ultra-96/oe-v2018.3/build/tmp/work/zcu100_zynqmp-xilinx-linux/openamp-image-minimal/1.0-r0/temp --nogpgcheck install packagegroup-base-extended kernel-module-virtio-ring kernel-module-virtio-rpmsg-bus libmetal kernel-module-remoteproc libopen-amp0 run-postinsts kernel-module-uio-pdrv-genirq packagegroup-core-boot kernel-module-virtio' returned 1:
Added oe-repo repo from /home/bill/w/proj/ultra-96/oe-v2018.3/build/tmp/work/zcu100_zynqmp-xilinx-linux/openamp-image-minimal/1.0-r0/oe-rootfs-repo
Last metadata expiration check: 0:00:01 ago on Sun 16 Dec 2018 06:39:23 PM UTC.
No package kernel-module-virtio-ring available.
No package kernel-module-remoteproc available.
No package kernel-module-virtio available.
[Wendy] Did you enable those modules from Linux kernel configuration?
Maybe, the openamp-image-minimal, can have a kernel bbappend to enable those kernel modules in recipes-kernel/linux/openamp-kmeta/cfg/ of meta-openamp.
Thanks Wendy. I had looked at this configuration in the mean time. I needed to enable these items by adding to distro features. However, that still resulted in the above errors. The issue with the three modules above is that they are built in to the default Xilinx kernel for these machines. I thought OE would figure that out but I guess not. Even if I were to remove those packages from the image dependencies it would still not work because the line that adds the platform level rproc driver is commented out in that image recipie.
[Wendy] yes, just tried to remove platform specific setting from this recipe. As they can be covered by platform specific meta BSP layer.
I was thinking to just keep the common setting in meta-openamp.
Actually, I have tried openamp-image-minimal, but I cannot see the issue.
I had thought you may have used a different kernel.
I assumed you used https://github.com/xilinx/yocto-manifests/tree/rel-v2018.3. I haven't compared the HEAD of your layers with mine.
Will check it.
Best Regards,
Wendy
So I gave up on openamp-image-minimal and just added the needed stuff to petalinux-image-minimal via local.conf.
I now have an image for zcu100-zynqmp built OK but I have not tried it. I did verify it has all needed modules builtin or it lib/modules and it has the libmetal and openamp libs and demo apps.
The last bit of my local.conf looks like:
>>>
DISTRO_FEATURES += " virtualization xen openamp openamp-experiment-virtio-rpmsg-char"
INSANE_SKIP_glibc-locale = "installed-vs-shipped"
IMAGE_INSTALL_append += " open-amp libmetal kernel-module-zynqmp-r5-remoteproc kernel-module-uio-pdrv-genirq libmetal-demos open-amp-demos"
<<<<
$ MACHINE=zcu100-zynqmp bitbake petalinux-image-minimal
The rest of local.conf is as setup by Xilinx's setupsdk script.
The xen and glibc stuff is because I am separately experimenting with xen. That should probably be a different thread.
Thanks,
Bill
Best Regards,
Wendy
Error: Unable to find a match
ERROR: openamp-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/bill/w/proj/ultra-96/oe-v2018.3/build/tmp/work/zcu100_zynqmp-xilinx-linux/openamp-image-minimal/1.0-r0/temp/log.do_rootfs.32610
NOTE: recipe openamp-image-minimal-1.0-r0: task do_rootfs: Failed
ERROR: Task (/home/bill/w/proj/ultra-96/oe-v2018.3/sources/core/../meta-openamp/recipes-openamp/images/openamp-image-minimal.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3317 tasks of which 3316 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
Thanks,
Bill
More information about the meta-xilinx
mailing list