[yocto] bitbake openamp-image-minimal fails to create image

Pandey, Kamal Kamal.Pandey at ifm.com
Thu Jan 10 01:57:06 PST 2019


Hi wendy,
Thanks for replying. I have already enabled remoteproc, rpmsg and virtio in the kernel configuration.
I have also added
CORE_IMAGE_EXTRA_INSTALL += " \
kernel-modules \
"
In my local.conf file.
I generated BOOT.bin file from bootgen.bif file after adding the rpu firmware:
[destination_cpu=r5-0] <path to RPU firmware>
While booting the device I didn't see r5 code being booted.
Now I am trying Building Linux Applications Using OpenAMP RPMsg in Linux Userspace
Using meta-openamp layer.
I found that there is a patch "Add Xilinx ZynqMP R5 remoteproc driver.patch"  to have a53 and r5 communication. Is this patch required for the purpose of  openamp in userspace?
This patch was missing in meta-xilinx and I brought it to my custom layer, but it failed to apply giving the following error:

error: include/linux/firmware/xlnx-zynqmp.h: does not exist in index
| error: include/linux/firmware/xlnx-zynqmp.h: does not exist in index
| error: include/linux/firmware/xlnx-zynqmp.h: does not exist in index
| error: drivers/firmware/xilinx/zynqmp.c: does not exist in index
| error: include/linux/firmware/xlnx-zynqmp.h: does not exist in index
| error: drivers/firmware/xilinx/zynqmp.c: does not exist in index
| error: include/linux/firmware/xlnx-zynqmp.h: does not exist in index
| [ERROR]: Application of .kernel-meta//patches//./0276-Add-Xilinx-ZynqMP-R5-remoteproc-driver.patch failed.
|          Patch needs to be refreshed. Sample resolution script:
|              .git/rebase-apply/resolve_rejects
| ERROR: Could not apply patches for pdm3-rev-b-zynqmp.
| ERROR: Patch failures can be resolved in the linux source directory /media/iepl/iepl1/work/yocto_build/build_openamp/tmp/work-shared/pdm3-rev-b-zynqmp/kernel-source)
| WARNING: /media/iepl/iepl1/work/yocto_build/build_openamp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/linux-yocto/4.14.79+gitAUTOINC+f1d93b219b-r0/temp/run.do_patch.17384:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_patch (log file is located at /media/iepl/iepl1/work/yocto_build/build_openamp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/linux-yocto/4.14.79+gitAUTOINC+f1d93b219b-r0/temp/log.do_patch.17384)

Now the Xilinx document UG1186 never mentioned about this patch or driver. Also is this patch for the kernelspace implementation or userspace implementation.
And I am using tftp boot. I think that if r5 was able to boot it should show me while booting as I am serially connected to the device.
Please provide any pointers on this. Has anyone implemented this using meta-openamp layer and no petalinux.
Thanks
From: Jiaying Liang <jliang at xilinx.com>
Sent: 10 January 2019 11:14
To: Manjukumar Harthikote Matha <MANJUKUM at xilinx.com>; Pandey, Kamal <Kamal.Pandey at ifm.com>; yocto at yoctoproject.org; meta-xilinx at yoctoproject.org
Subject: RE: bitbake openamp-image-minimal fails to create image



From: yocto-bounces at yoctoproject.org<mailto:yocto-bounces at yoctoproject.org> [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Manjukumar Harthikote Matha
Sent: Monday, January 07, 2019 10:51 AM
To: Pandey, Kamal <Kamal.Pandey at ifm.com<mailto:Kamal.Pandey at ifm.com>>; yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>; meta-xilinx at yoctoproject.org<mailto:meta-xilinx at yoctoproject.org>
Subject: Re: [yocto] bitbake openamp-image-minimal fails to create image

+meta-xilinx mailing list

From: Pandey, Kamal [mailto:Kamal.Pandey at ifm.com]
Sent: Monday, January 07, 2019 8:59 AM
To: yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>; Manjukumar Harthikote Matha <MANJUKUM at xilinx.com<mailto:MANJUKUM at xilinx.com>>
Subject: RE: bitbake openamp-image-minimal fails to create image

Hi,
I solved the problem by using meta-openamp(branch should be similar to xilinx version) layer in my yocto project and enabled "libmetal" and "open-amp" packages in my image recipe. It compiled successfully.  I also add rpmsg-echo-test,  rpmsg-mat-mul , and rpmsg-proxy-app packages in the image and it successfully compiled. I am building Linux Application that uses RPMsg in user space.
Now the executable generated from echo-test or mat-mul are in my host linux master (a53-core). I have also created an r5-application using XSDK.
What is the next step to have a communication between a53 and r5. How to use the generated elf file for r5 processor.
Also I have enabled remoteproc, rpmsg, virtio  in kernel configuration.
But while using the command " $modprobe zynqmp_r5_remoteproc", I get the following error:

"modprobe: module zynqmp_r5_remoteproc not found in modules.dep"
[Wendy] It doesn't look like the zynqmp_r5_remoteproc driver is compiled or maybe it is compiled but not add into the system.

Please check the following:

*         If your linux kernel has enabled in your kernel .config

*         If you have "kernel-modules" added to your image

o   E.g.:

o   CORE_IMAGE_EXTRA_INSTALL += " \

o       kernel-modules \

o   "
Best Regards,
Wendy
How can I boot the r5 processor and where to store the elf file generated.
From: Manjukumar Harthikote Matha <MANJUKUM at xilinx.com<mailto:MANJUKUM at xilinx.com>>
Sent: 07 January 2019 13:53
To: Pandey, Kamal <Kamal.Pandey at ifm.com<mailto:Kamal.Pandey at ifm.com>>; yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
Subject: RE: bitbake openamp-image-minimal fails to create image

Hi Kamal,

Seems like the required kernel modules are missing causing the breakage.
Enable them using kernel menuconfig (bitbake virtual/kernel -c menuconfig) and then build the image

Thanks,
Manju

From: yocto-bounces at yoctoproject.org<mailto:yocto-bounces at yoctoproject.org> [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Pandey, Kamal
Sent: Sunday, January 06, 2019 11:14 PM
To: yocto at yoctoproject.org<mailto:yocto at yoctoproject.org>
Subject: [yocto] bitbake openamp-image-minimal fails to create image

Hello,
I used the meta-openamp layer for r5-a53 communication.
but when I simply ran $bitbake openamp-image-minimal, it gave me the following error:

ERROR: openamp-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/media/iepl/iepl1/work/yocto_build/build-open-amp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/openamp-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -y -c /media/iepl/iepl1/work/yocto_build/build-open-amp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/openamp-image-minimal/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/media/iepl/iepl1/work/yocto_build/build-open-amp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/openamp-image-minimal/1.0-r0/rootfs/etc/yum.repos.d --repofrompath=oe-repo,/media/iepl/iepl1/work/yocto_build/build-open-amp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/openamp-image-minimal/1.0-r0/oe-rootfs-repo --installroot=/media/iepl/iepl1/work/yocto_build/build-open-amp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/openamp-image-minimal/1.0-r0/rootfs --setopt=logdir=/media/iepl/iepl1/work/yocto_build/build-open-amp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/openamp-image-minimal/1.0-r0/temp --nogpgcheck install kernel-module-virtio-ring kernel-module-virtio-rpmsg-bus kernel-module-uio-pdrv-genirq kernel-module-virtio libopen-amp0 packagegroup-base-extended kernel-image-fitimage-4.14.79-yocto-standard run-postinsts libmetal packagegroup-core-boot kernel-module-remoteproc' returned 1:
Added oe-repo repo from /media/iepl/iepl1/work/yocto_build/build-open-amp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/openamp-image-minimal/1.0-r0/oe-rootfs-repo
Last metadata expiration check: 0:00:00 ago on Fri 04 Jan 2019 01:58:31 PM UTC.
No package kernel-module-virtio-ring available.
No package   available.
No package kernel-module-virtio available.
No package   available.
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: /media/iepl/iepl1/work/yocto_build/build-open-amp/tmp/work/pdm3_rev_b_zynqmp-pdm3-linux/openamp-image-minimal/1.0-r0/temp/log.do_rootfs.7153
ERROR: Task (/home/iepl/work/yocto_build/poky/../meta-openamp/recipes-openamp/images/openamp-image-minimal.bb:do_rootfs) failed with exit code '1'


Can someone provide me a solution to this problem.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190110/476e55c5/attachment-0001.html>


More information about the yocto mailing list