关于IMX6SX多核通信的问题

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

关于IMX6SX多核通信的问题

跳至解决方案
3,538 次查看
jingyangxie
Contributor V

    在 imx6sx开发板环境下,A9搭载linux ,飞思卡尔将RPMsg用作ko文件来运行,接收M4的数据并像M4发送数据,但这个数据是RPMsg自身产生的,没有与linux的用户层进行数据交互,如果我想实现A9应用层数据与M4的应用层数据进行交互,应该怎么做?

标签 (2)
0 项奖励
回复
1 解答
3,183 次查看
BiyongSUN
NXP Employee
NXP Employee

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.

在原帖中查看解决方案

0 项奖励
回复
12 回复数
3,183 次查看
caibai
Contributor III

想问一下你是用yocto开发还是用源码直接编译

3,183 次查看
jingyangxie
Contributor V

您好,我是yocto下载源码和制作文件系统,然后单独编译内核,但是我在内核和文件系统中没有找到mxc_mcc_tty_test.c,我使用的BSP版本是4.1.15,您是在哪找到的

0 项奖励
回复
3,183 次查看
qinghuazhu
Contributor III

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

3,183 次查看
BiyongSUN
NXP Employee
NXP Employee

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)

0 项奖励
回复
3,183 次查看
jingyangxie
Contributor V

能不能把mxc_mcc_tty_test.c这个文件发给我看下,谢谢

0 项奖励
回复
3,183 次查看
BiyongSUN
NXP Employee
NXP Employee

please check the virtual tty demo. It opens the virtual tty from user space.

Untitled.png

0 项奖励
回复
3,183 次查看
jingyangxie
Contributor V

您好,我查看代码,搞明白了M4的收发,A9的发送就是通过系统调用write写入数据,但是M4传给A9的数据,应用层如何调取,linux ttyRPMSG驱动好像没有实现read的操作,这块不是很明白,您能解答一下吗?

0 项奖励
回复
3,184 次查看
BiyongSUN
NXP Employee
NXP Employee

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.

0 项奖励
回复
3,183 次查看
jingyangxie
Contributor V

hi,Biyong

thanks for reply,and where can I obtain the source file mxc_mcc_tty_test.c?

0 项奖励
回复
3,183 次查看
BiyongSUN
NXP Employee
NXP Employee

I have replied to you already.

The source code in user space is mxc_mcc_tty_test.c im unit test.

0 项奖励
回复
3,183 次查看
jingyangxie
Contributor V

您好,我是yocto下载源码和制作文件系统,然后单独编译内核,但是我在内核和文件系统中没有找到mxc_mcc_tty_test.c,我使用的BSP版本是4.1.15,您是在哪找到的

0 项奖励
回复
3,183 次查看
jingyangxie
Contributor V

自己顶一下

0 项奖励
回复