在 imx6sx开发板环境下,A9搭载linux ,飞思卡尔将RPMsg用作ko文件来运行,接收M4的数据并像M4发送数据,但这个数据是RPMsg自身产生的,没有与linux的用户层进行数据交互,如果我想实现A9应用层数据与M4的应用层数据进行交互,应该怎么做?
Solved! Go to Solution.
In the M4 side, it is an echo server.
When echo back the data, the A9 side print out "READ finished: 13 bytes"
The source code in user space is mxc_mcc_tty_test.c im unit test.
想问一下你是用yocto开发还是用源码直接编译
您好,我是yocto下载源码和制作文件系统,然后单独编译内核,但是我在内核和文件系统中没有找到mxc_mcc_tty_test.c,我使用的BSP版本是4.1.15,您是在哪找到的
you can get mxc_mcc_tty_test.c from
tmp/work/imx6ulevk-poky-linux-gnueabi/imx-test/1_5.4.1-r0/imx-test-5.4.1/test/mxc_mcc_tty_test
bitbake imx-test
It doesn't matter using Yocto or standalone build.
Please read the document in the BSP release.
The demo shown you is in the document.
i.MX_6_Linux_Reference_Manual.pdf
Chapter 51
Remote Processor Messaging (RPMsg)
能不能把mxc_mcc_tty_test.c这个文件发给我看下,谢谢
please check the virtual tty demo. It opens the virtual tty from user space.
您好,我查看代码,搞明白了M4的收发,A9的发送就是通过系统调用write写入数据,但是M4传给A9的数据,应用层如何调取,linux ttyRPMSG驱动好像没有实现read的操作,这块不是很明白,您能解答一下吗?
In the M4 side, it is an echo server.
When echo back the data, the A9 side print out "READ finished: 13 bytes"
The source code in user space is mxc_mcc_tty_test.c im unit test.
hi,Biyong
thanks for reply,and where can I obtain the source file mxc_mcc_tty_test.c?
I have replied to you already.
The source code in user space is mxc_mcc_tty_test.c im unit test.
您好,我是yocto下载源码和制作文件系统,然后单独编译内核,但是我在内核和文件系统中没有找到mxc_mcc_tty_test.c,我使用的BSP版本是4.1.15,您是在哪找到的
自己顶一下