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.

[参考译文] Linux/AM5728:/dev/dev 中未显示任何 rpmsg_PRU 驱动程序

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/594590/linux-am5728-no-rpmsg_pru-drivers-are-showing-up-in-dev

器件型号:AM5728

工具/软件:Linux

我已经将电路板设置为通过网络连接引导、方法是从主机 PC 获取内核映像和 DTB 文件、并通过 NFS 装载其根文件系统。 我正在使用4.4.32版内核、并已编译内核、启用了所有默认 AM57xx 选项、包括 PRUSS 和 RPmsg 选项。 我将默认的 rootfs tarball 解压到主机 PC 上的 NFS 共享中。

编译内核映像和模块并确保所有内容都安装到正确的目录后、我启动板、但我的系统中没有/dev/rpmsg_pru31形式的器件。 但是、如果我重新启动电路板并使用其闪存中存储的默认固件、则会显示这些器件。

是否需要执行一些特殊操作才能显示这些器件节点?

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

    您能否检查一下内核配置文件中是否设置了以下节点:

    CONFIG_RPMSG=m
    CONFIG_RPMSG_RPC=m
    CONFIG_RPMSG_PRU=m

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

    茨韦托林

    我打开了我的.config 文件并验证了您指定的节点是否确实都设置为"m":

    编号
    # Remoteproc 驱动程序
    编号
    CONFIG_REMOTEPROC=m
    CONFIG_OMAP_REMOTEPROC=m
    CONFIG_OMAP_REMOTEPROC_Watchdog=y
    未设置# CONFIG_STE_MODE_RPROC
    CONFIG_PRUSS_REMOTEPROC=m

    编号
    # Rpmsg 驱动程序
    编号
    CONFIG_RPMSG=m
    CONFIG_RPMSG_RPC=m
    CONFIG_RPMSG_PRU=m

    Scott

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

    您能否在内核日志中搜索一些与"rpmsg_PRU"相关的错误或可疑消息?

    BR
    Tsvetolin Shulev
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我没有看到任何看起来像亲吻的东西。 为了便于您查看、我在引导消息中看到了以下与 PRU 相关的部分:

    [12.545049] ti-pruss 4b200000.pruss:创建 PRU 内核和其他子平台器件
    [12.547677] ti-pruss 4b280000.pruss:创建 PRU 内核和其他子平台器件
    [12.5745] OMAP-SHIM 4b101000.sham:OMAP 版本4.3上的硬件加速器
    [12.6118A] remoteproc4:4b234000.pru0可用
    [12.611824] remoteproc4:注意:remoteproc 仍在开发中并被视为实验。
    [12.611827] remoteproc4:二进制格式尚未最终确定、并且尚不能保证向后兼容性。
    [12.648920] remoteproc4:registered virtio3 (类型7)
    [12.648961] PRU-rproc 4b234000.pru0:PRU rproc 节点/ocp/pruss@4b200000/pru0@4b234000已成功探测
    [12.649252] remoteproc5:4b238000.pru1可用
    [12.649254] remoteproc5:注意:remoteproc 仍在开发中并被视为实验。
    [12.649256] remoteproc5:二进制格式尚未最终确定、并且尚不能保证向后兼容性。
    [12.663978] remoteproc5:registered virtio4 (type 7)
    [12.664015] PRU-rproc 4b238000.pru1:PRU rproc 节点/ocp/pruss@4b200000/pru1@4b238000探测成功
    [12.664356] remoteproc6:4b2b4000.pru0可用
    [12.664359] remoteproc6:注意:remoteproc 仍在开发中并被视为实验。
    [12.664361] remoteproc6:二进制格式尚未最终确定、并且尚不能保证向后兼容性。
    [12.678483] remoteproc6:registered virtio5 (type 7)
    [12.678528] PRU-rproc 4b2b4000.pru0:PRU rproc 节点/ocp/pruss@4b280000/pru0@4b2b4000已成功探测
    [12.678789] remoteproc7:4b2b8000.pru1可用
    [12.678792] remoteproc7:注意:remoteproc 仍在开发中并被视为实验。
    [12.678794] remoteproc 7:二进制格式尚未最终确定、并且尚不能保证向后兼容性。
    [12.69623] remoteproc7:registered virtio6 (type 7)
    [12.6927] PRU-rproc 4b2b8000.pru1:PRU rproc 节点/ocp/pruss@4b280000/pru1@4b2b8000探测成功
    [13.011976] remoteproc3:registered virtio7 (type 7)

    [14.369383] remoteproc4:引导 FW 映像 am57xx-pru1_0-FW、大小75536
    [14.376203] ti-prusss 4b200000.pruss: configured system_events = 0x000000030000 intr 通道= 0x00000005 host_intr = 0x00000005
    [14.388233] remoteproc4:远程处理器4b234000.pru0现已启动
    [14.394594] virtio_rpmsg_bus virtio3:rpmsg 主机处于联机状态
    [14.400278] remoteproc5:加电4b238000.pru1
    [14.405662] remoteproc5:引导 FW 映像 am57xx-pru1_1-FW、大小为75536
    [14.412476] ti-prusss 4b200000.pruss: configured system_events = 0x0000000c0000 intr 通道= 0x0000000a host_intr = 0x0000000a
    [14.424487] remoteproc5:远程处理器4b238000.pru1现已启动
    [14.430840] virtio_rpmsg_bus virtio4:rpmsg 主机处于联机状态
    [14.436471] remoteproc6:为4b2b4000.pru0加电
    [14.441885] remoteproc6:引导 FW 映像 am57xx-pru2_0-FW、大小为75536
    [14.448688] ti-prusss 4b280000.pruss:已配置 system_events = 0x000000030000 intr 通道= 0x00000005 host_intr = 0x00000005
    [14.460706] remoteproc6:远程处理器4b2b4000.pru0现已启动
    [14.467044] virtio_rpmsg_bus virtio5:rpmsg 主机处于联机状态
    [14.472701] remoteproc7:为4b2b8000.pru1加电
    [14.478252] remoteproc7:引导 FW 映像 am57xx-pru2_1-fw、大小75536
    [14.485022] ti-pruss 4b280000.pruss:已配置 system_events = 0x0000000c0000 intr 通道= 0x0000000a host_intr = 0x0000000a
    [14.497048] remoteproc7:远程处理器4b2b8000.pru1现已启动