关于IMX6SX多核通信的问题

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

关于IMX6SX多核通信的问题

Jump to solution
1,631 Views
jingyangxie
Contributor V

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

Labels (2)
0 Kudos
1 Solution
1,276 Views
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.

View solution in original post

0 Kudos
12 Replies
1,276 Views
caibai
Contributor III

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

1,276 Views
jingyangxie
Contributor V

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

0 Kudos
1,276 Views
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

1,276 Views
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 Kudos
1,276 Views
jingyangxie
Contributor V

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

0 Kudos
1,276 Views
BiyongSUN
NXP Employee
NXP Employee

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

Untitled.png

0 Kudos
1,276 Views
jingyangxie
Contributor V

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

0 Kudos
1,277 Views
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 Kudos
1,276 Views
jingyangxie
Contributor V

hi,Biyong

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

0 Kudos
1,276 Views
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 Kudos
1,276 Views
jingyangxie
Contributor V

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

0 Kudos
1,276 Views
jingyangxie
Contributor V

自己顶一下

0 Kudos