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.

[参考译文] CCS/BEAGLEBK:PRU RPMsg 问题

Guru**** 2542600 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/601614/ccs-beaglebk-pru-rpmsg-issue

器件型号:BEAGLEBK

工具/软件:Code Composer Studio

大家好、

我正在关注 PRU 培训中的实验5、 但在与 PRU 通信方面仍然没有成功。

初始设置:

Linux BeagleBone 4.4.5.54-ti-R93 #1 SMP、3月17日星期五13:08:22 UTC 2017 armv7l GNU/Linux

dtb=AM335x-bonebblack-overlay.dtb

Debian@BeagleBone:~$ lsmod | grep PRU
PRU_rproc 15431 0
pruss_INTC 8603 1 PRU_rproc
prusss 12026 1 PRU_rproc

AM335x-pru0-FW = PRU_HALT.OUT (位于\lib\firmware 中)

AM335x-pru1-FW = PRU_RPMsg_Echo _Interrupt1.out (位于\lib\firmware 中)

在源文件 PRU_RPMsg_Echo _Interrupt1.c 中、我有以下行:

#define CHAN_NAME "rpmsg-PRU"
#define CHAN_DESC "通道31"
#define CHAN_PORT 31

然后、使用以下命令重新加载模块 PRU_rproc:

sudo rmmod -f PRU_rproc
sudo modprobe pru_rproc

然后 dmesg 会显示我:

[1455.315192] PRU-rproc 4a334000.pru0:手动启动 PRU 内核
[1455.315255] remoteproc1:为4a334000.pru0加电
[1455.315698] remoteproc1:引导 FW 映像 AM335x-pru0-FW、大小为27224
[1455.315824] remoteproc1:远程处理器4a334000.pru0现已启动
[1455.315899] PRU-rproc 4a334000.pru0:PRU rproc 节点/ocp/pruss@4a300000/pru0@4a334000探测成功
[1455.323563] remoteproc2:4a338000。pru1可用
[1455.323622] remoteproc2:注意:remoteproc 仍在开发中、并被视为实验。
[1455.323650] remoteproc 2:二进制格式尚未最终确定、并且尚未保证向后兼容性。
[1455.331994] remoteproc2:registered virtio0 (type 7)
[1455.335380] PRU-rproc 4a33800.pru1:PRU rproc 节点/ocp/pruss@4a300000/pru1@4a338000探测成功
[1455.510257] remoteproc2:为4a338000 pru1加电
[1455.510832] remoteproc2:引导 FW 映像 AM335x-pru1-FW、大小为77884
[1455.511038] ti-prusss 4a300000.pruss:已配置 system_events = 0x08000000000000 intr 通道= 0x00000002 host_intr = 0x00000002
[1455.516699] remoteproc 2:远程处理器4a338000.pru1现已启动
[1455.517020] virtio_rpmsg_bus virtio0:rpmsg 主机处于联机状态

问题是字符设备 rpmsg_pru31未在/dev/目录 中创建、因此无法通过 /dev/rpmsg_pru31.与 PRU 通信

请帮助我解决此问题。 谢谢!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    您使用的是 TI 不支持的 Linux 版本。 请使用: www.ti.com/.../PROCESSOR-SDK-AM335X
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    很抱歉、但我不理解您的答案。 我在 Windows 主机和 TI 的 PRU 软件支持包上使用 CCS。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您在 BBB 上运行的 Linux 版本是 Linux BeagleBone 4.4.54-ti-R93。 TI 从未发布过此版本、我们不支持它。