I run the rpmsg example from NXP SDK .
from the m4 core ,there is a "result = rpmsg_lite_send_nocopy(my_rpmsg, my_ept, remote_addr, tx_buf, len);" funtion to send msg to A53 core.
from A53 kernel file imx_rpmsg_tty.c, there is no read rpmsg funtion.
Hi @jingfeng,
I hope you are doing well.
there is no read() operation available in tty_operations struct & polling function is not implemented in the demo driver.
A53 can read rpmsg from m4 using .callback function rpmsg_tty_cb.
callback function is invoked when a message is received on the channel
In rpmsg_tty_cb , void *data variable contains the msg received from M4 SDK side.
One can also refer to imx_rpmsg_pingpong.c driver for reference.
I hope it helps!
Thanks & Regards,
Dhruvit Vasavada