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: 
Highlighted
Observer wsipak
Observer
381 Views
Registered: ‎03-05-2019

Openamp Demo - understanding rpmsg and mailbox/shared memory

Jump to solution

Hello!

The OpenAMP demo requires these nodes in the devicetree: shared memory and zynqmp-ipi with mailbox.
I can see, that the baremetal demo for Cortex R5 uses shared memory, but are the mailboxes used by this code?
Does the Linux side use the mailbox along with shared memory, or just one of them? It seems to me like only the shared memory is used. The baremetal part for Cortex R5 does not even know the addresses of the four mailbox regions.

I am using latest tools, xsdk 2019.1 and everything works, I just do not understand which part of software uses the four regions of mailbox.

Thanks for help.

 

 

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
331 Views
Registered: ‎05-10-2017

Re: Openamp Demo - understanding rpmsg and mailbox/shared memory

Jump to solution

The mailbox functionality is explained here

https://github.com/Xilinx/linux-xlnx/blob/master/Documentation/devicetree/bindings/mailbox/xlnx%2Czynqmp-ipi-mailbox.txt

Mailboxes are used by the remoteproc driver

The setup of mailboxes for R5 takes place here

https://github.com/Xilinx/linux-xlnx/blob/xilinx-v2019.1/drivers/remoteproc/zynqmp_r5_remoteproc.c#L704

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

1 Reply
Moderator
Moderator
332 Views
Registered: ‎05-10-2017

Re: Openamp Demo - understanding rpmsg and mailbox/shared memory

Jump to solution

The mailbox functionality is explained here

https://github.com/Xilinx/linux-xlnx/blob/master/Documentation/devicetree/bindings/mailbox/xlnx%2Czynqmp-ipi-mailbox.txt

Mailboxes are used by the remoteproc driver

The setup of mailboxes for R5 takes place here

https://github.com/Xilinx/linux-xlnx/blob/xilinx-v2019.1/drivers/remoteproc/zynqmp_r5_remoteproc.c#L704

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post