UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor frolando
Visitor
475 Views
Registered: ‎10-16-2018

SDK 2019.1 - OpenAMP echo test on R0 - ERROR: Failed to create endpoint.

Hi!,

I'm going to configure the echo test firmware (baremetal) for ZynqMP R0.

I've create the the demo example form wizard make this changes:

1. Changed RING_TX and RING_RX on rsc_table.c

2. Checked size of psu_ddr_S_AXI_BASEADDR on ldscript

2. Added .resource_table 0x3ed20000 to lscript.ld

Build the example and run it with remote proc and it fail to create the endpoint:

 echo echo_test_baremetal.elf > /sys/class/remoteproc/remoteproc0/firmware
# echo start > /sys/class/remoteproc/remoteproc0/state
[  510.745729] remoteproc remoteproc0: powering up ff9a0100.zynqmp_r5_rproc
[  510.753824] remoteproc remoteproc0: Booting fw image echo_test_baremetal.elf, size 811876
[  510.762400] zynqmp_r5_remoteproc ff9a0100.zynqmp_r5_rproc: RPU boot from TCM.
Starting application...
                       Initialize remoteproc successfully.
creating remoteproc virtio
initializing rpmsg shared buffer pool
initializing rpmsg vdev
initializing rpmsg vdev
Try to create rpmsg endpoint.
                             ERROR: Failed to create endpoint.
                                                              Stopping application...
                                                                                     [  510.770619] virtio_rpmsg_bus virtio0: rpmsg host is online
[  510.798654] remoteproc remoteproc0: registered virtio0 (type 7)
[  510.804514] remoteproc remoteproc0: remote processor ff9a0100.zynqmp_r5_rproc is now up

What's wrong?

Thanks in advance!

0 Kudos
5 Replies
Moderator
Moderator
432 Views
Registered: ‎05-10-2017

Re: SDK 2019.1 - OpenAMP echo test on R0 - ERROR: Failed to create endpoint.

Please use the 2019.1 user guide here

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_1/ug1186-zynq-openamp-gsg.pdf

You don't to change the RING_TX and RING_RX. You can use the default template that is there in SDK

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Visitor frolando
Visitor
415 Views
Registered: ‎10-16-2018

Re: SDK 2019.1 - OpenAMP echo test on R0 - ERROR: Failed to create endpoint.

Ok, today I'll trying without any changes. Thanks!

About the link of the user guide: it's exactly where i found the changes to make:

Region Capture.png

0 Kudos
Moderator
Moderator
399 Views
Registered: ‎05-10-2017

Re: SDK 2019.1 - OpenAMP echo test on R0 - ERROR: Failed to create endpoint.

Do you want to run the OpenAMP example with RPMsg in Linux userspace?

I assumed you were talking about kernel space because you were using remoteproc to load the firmware.

If you are in userspace, you will need to package you elf in a bif as shown in the document (on page 45) and rpu firmware will get loaded by fsbl.

I've attached the lscript.ld, rsc_table.c and bif files for your reference

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Visitor frolando
Visitor
390 Views
Registered: ‎10-16-2018

Re: SDK 2019.1 - OpenAMP echo test on R0 - ERROR: Failed to create endpoint.


@jovitac wrote:

Do you want to run the OpenAMP example with RPMsg in Linux userspace?

I assumed you were talking about kernel space because you were using remoteproc to load the firmware.

If you are in userspace, you will need to package you elf in a bif as shown in the document (on page 45) and rpu firmware will get loaded by fsbl.

I've attached the lscript.ld, rsc_table.c and bif files for your reference


Hi jovitac,

thank for your suggestion, today I'll going to make some tests.

We would like to use the user space approach but deployng our R5 firmware with remoteproc, isn't possible?

Thanks!

0 Kudos
Visitor kdpatinos
Visitor
252 Views
Registered: ‎03-15-2017

Re: SDK 2019.1 - OpenAMP echo test on R0 - ERROR: Failed to create endpoint.

Did You solve your issue?

I had the same error, but with ZYNQ 7000 (PYNQ board)

 

regards,

 

Kevin

Kevin Patino
0 Kudos