This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM6442:AM6442上的 Linux 回调模式 rpmsg 通信

Guru**** 1959305 points
Other Parts Discussed in Thread: AM6442
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1398702/am6442-linux-callback-mode-rpmsg-communication-on-am6442

器件型号:AM6442

工具与软件:

您好!

我实际上是在 Linux 和 R5F 内核之间的 AM6442 SK 上使用 IPC 的。 在远程内核端、我使用回调函数来管理 rpmsg。 但是、我无法在 Linux 端找到有关注册此类回调的任何信息。

目前、我使用 rpmsg_char 库将文件描述符与读取函数进行池化。 我的做法与 rpmsg_char_simple 示例(https://git.ti.com/cgit/rpmsg/ti-rpmsg-char/tree/examples/rpmsg_char_simple.c)中的做法非常相似。

我在/proc/interrupt 中看到了与 r5f 邮箱对应的中断,在通信中:

14:      2043         0    GICv3 112电平    mbox-main-r5fss0-core0

问题1:是否可以使用此中断并将其公开给用户空间以注册回调、就像在 r5f 固件中一样? 如果不可能、有另一种方法可以在 Linux 上以非阻塞方式处理 rpmsg? (我将使用 TI 在 tisdk-default-image-am64xx-evm 映像中提供的 Linux 内核和 sysroot)

此致、
Baptiste C.

x 出现错误。请重试或与管理员联系。