cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
429 Views
Registered: ‎04-08-2019

Set rpmsg channel for echo test

Hello,

I am runing Petalinux 2018.3 on ZCU102 and when I create echo test for RPU core 0 or 1 I want to set which rpmsg channel it will use. For example I want to use channel /dev/rpmsg0 only for r5 core 0 and /dev/rpmsg1 only for r5 core 1. How is this possible?

Thank you for your time,
Thanos

0 Kudos
2 Replies
Highlighted
Moderator
Moderator
407 Views
Registered: ‎05-10-2017

The order in which you start the RPU determines which /dev/rpmsgX device is being used with that RPU.
If RPU-0 was started first, /dev/rpmsg0 is used for RPU-0.
If however RPU-1 was started first, it would have been associated with /dev/rpmsg0 and RPU-0 would have been using /dev/rpmsg1.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Adventurer
Adventurer
380 Views
Registered: ‎04-08-2019

Hello Jovitac,

Thank you for your answer. My question was if it is possible to set which channel we want to use. For example when I create the code for echo test for cortex-r5 in Xilinx SDK there was a variable in "platform_create_rpmsg_vdev" function that allow you to set the channel but because all the examples are lacking of comments I do not know which format the address must have. Do you have any help-fix about that?

Thank you for your time,
Thanos

0 Kudos