AnsweredAssumed Answered

Where is the RPMsg document for IMX8MM?

Question asked by Takashi Kashiwagi on May 15, 2019
Latest reply on Jun 2, 2019 by Takashi Kashiwagi

Hi community,

 

I am trying to run a demo of RPMsg with 8MMINILPD4-EVK.

linux is 4.14-sumo and RTOS is FreeRTOS with rpmsg_lite.

 

The following thread is helpful, but it does not work well.

iMX8QXP: Use RPMSG to wake up M4 and A35

 

Are there any documents that might be helpful?

And where is the source code of "imx8mm_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin"?

 

As far as I checked, it was looping endlessly with rpmsg_ns_announce-> rpmsg_lite_format_message-> vq_tx_remote-> RL_ASSERT.

 

The value of buffer_len seems to be strange as follows.

[virtqueue_create_static (151)] vq->vq_nentries = 2, vq->vq_ring_size = 4126, vq->vq_ring_mem = 0x90010000
[vring_init (151)] vr->desc = 0x90010000, vr->avail = 0x90010020, vr->used = 0x90011000
[virtqueue_create_static (151)] vq->vq_nentries = 2, vq->vq_ring_size = 4126, vq->vq_ring_mem = 0x90018000
[vring_init (151)] vr->desc = 0x90018000, vr->avail = 0x90018020, vr->used = 0x90019000
[RPMsgTask (100)] rpmsg_lite_remote_init OK (0 msec)
[RPMsgTask (102)] Wating rpmsg_lite_is_link_up (0 msec)
Link is up!
[RPMsgTask (111)] rpmsg_queue_create OK (1990 msec)
[RPMsgTask (118)] rpmsg_lite_create_ept OK (1990 msec)
[virtqueue_get_available_buffer (355)] head_idx = 0, *avail_idx = 18407, *len = 3878398162
buffer = 3D9A5489, buff_len = 3878398162, idx = 18407
[virtqueue_add_consumed_buffer (373)] head_idx = 18407, vq->vq_nentries = 2,

 

Best Regards,

T.kashiwagi

Outcomes