This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM65X: RPMessage local endpoint issue

Part Number: PROCESSOR-SDK-AM65X

Hi Team,

I am trying to create multiple rpmessage endpoints to communicate with A53 processes. Steps followed are:

At R5F side:

Here we want endpoints ready for 2 processes, so create and announce for both.

  1. RPMessage_create(1)
  2. RPMessage_announce(1)
  3. RPMessage_create(2)
  4. RPMessage_announce(2)
  5. RPMessage_recv(1) //Wait to receive message from process 1
  6. RPMessage_recv(2) //Wait to receive message from process 2

Starting R5F0 shows both endpoints created and it blocks to receive data from process 1

At A53 side

Getting error in rpmsg_char_open() function as it fails for _rpmsg_char_get_local_endpt() with return -1.

It uses deref link path for /sys/class/rpmsg/rpmsg0/src and gets endpoint < 0  : /sys/devices/platform/bus@100000/bus@100000:bus@28380000/bus@100000:bus@28380000:r5fss@41000000/41000000.r5f/remoteproc/remoteproc18/remoteproc18#vdev0buffer/virtio0/virtio0.rpmsg_chrdev.-1.14/rpmsg/rpmsg_ctrl0/rpmsg1/src

Why it gives local endpoint error?

Thanks,

Prashant