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.

[参考译文] PROCESSOR-SDK-AM64X:无法通过命令在终端停止 M4F

Guru**** 2539500 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1239289/processor-sdk-am64x-m4f-can-not-be-stopped-at-the-terminal-by-command

器件型号:PROCESSOR-SDK-AM64X

您好!

1.环境:

SDK:PROCESSOR_SDK_08_06_00_42


2.根据 3.7中的步骤。 适用于 AM64x 的 IPC—Processor SDK AM64X 文档 "3.7.4. 从 Linux 控制台/用户空间引导远程内核"

我 发现  M4F 无法 停止,   以下是消息:

# cat /sys/kernel/debug/remoteproc/remoteproc0/name
5000000.m4fss

# echo stop > /sys/class/remoteproc/remoteproc0/state
[ 5215.042106] k3-m4-rproc 5000000.m4fss: k3_m4_rproc_stop : timed out waiting for rproc completion event 
[ 5215.042132] remoteproc remoteproc0: can't stop rproc: -16

但是当我使用 processor_SDK_08_04_01_04时 我可以停止 M4F 内核、如下所  示 消息:

# cat /sys/kernel/debug/remoteproc/remoteproc0/name
5000000.m4fss

# echo stop > /sys/class/remoteproc/remoteproc0/state
[  523.083916] remoteproc remoteproc0: stopped remote processor 5000000.m4fss



是否 有  很好的 解决方案?

此致、

Rjh

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

    rjh、您好!

    您是否在刚才提到的章节底部看到有关还不支持正常关机的备注?

    仅对于 AM62x 和 M4F、在 SDK 8.6中、我们现在开始在技术上实现正常关机! 从 SDK 9.0开始、此功能将受到广泛支持。 该消息"等待 rproc 完成事件超时"意味着 Linux 驱动程序向 M4F 发送了一条关断警告消息(而不是仅在没有警告的情况下拉动其插头)。 这将使 M4F 有时间释放其所有资源并在关闭前进入"已知良好状态"。 您的 M4F 代码不能包含用于处理该关闭消息、因此会发出警告的代码。

    此功能仍在开发中、因此您可以在后续 SDK 版本中获得有关如何实施此功能的更正式的文档。 现在、请参考此线程、了解有关如何向 M4F 工程添加正常关闭代码的更多信息: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1216288/am625-mcu_plus_sdk_am62x_08_06_00_18-loading-m4f-examples-from-remoteproc-fail/4596078#4596078

    此致、

    尼克