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.

[参考译文] AM625:M4F Remoteproc 错误

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1526031/am625-m4f-remoteproc-error

器件型号:AM625

工具/软件:

尊敬的 TI 团队:

我成功通过 U-Boot 控制台引导 M4F、但 Linux 引导后、remoteproc_core.c 驱动程序无法连接 M4F 内核。 实际上、它会抛出以下资源表错误:

# dmesg | grep remoteproc
[    7.729990] remoteproc remoteproc0: 5000000.m4fss is available
[    7.798948] remoteproc remoteproc0: attaching to 5000000.m4fss
[    7.845382] remoteproc remoteproc0: rsc table is truncated
[    7.865245] remoteproc remoteproc0: Failed to process resources: -22
[    7.879791] k3-m4-rproc 5000000.m4fss: error -EINVAL: failed to register device with remoteproc core
[    7.902572] remoteproc remoteproc0: releasing 5000000.m4fss

我当前使用的 是内核 6.15、我已经应用了所有这些补丁。

您知道什么可能导致此错误吗?

提前感谢。

此致、
Lucas Azeituno

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

    你好、Lucas、

    首先、请注意、我们只能在这些论坛上支持 TI 软件和 TI 硬件。 在这种情况下、我可以回答有关最新 AM62x Linux SDK 11.0 支持的最高 6.12 Linux 内核的问题。

    您正在将什么固件加载到 M4F 内核中? 我先从一个“已知良好“的固件(如 IPC Echo 工程)开始、然后、一旦工作正常、就可以开始进行更改: https://github.com/TexasInstruments/mcupsdk-core-k3/tree/k3_main/examples/drivers/ipc/ipc_rpmsg_echo_linux 

    在多核开发过程中、您会发现 AM62x Academy 的多核模块非常有用。 缺少资源表是我们看到错误 22 的一个原因。 此部分可能是一个很好的起点:
    多核>远程内核上的应用开发
    https://dev.ti.com/tirex/explore/node?node=A__ATWfO3c7FkPk06K9x1nvpA__AM62-ACADEMY__uiYMDcq__LATEST

    此致、

    Nick

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

    您好、Nick、

    我尝试了 6.12、但我尝试了 hello_world 示例。

    现在我使用 ipc_rpmsg_echo_linux 进行了测试、结果正常。 您知道为什么 hello_world 无法按预期运行吗?

    话虽如此、我遇到了另一个 IPC 示例问题:通过 U-Boot 控制台引导 IPC 示例后、Linux 连接了 Cortex-M4:

    # dmesg | grep remoteproc
    [    7.891252] remoteproc remoteproc0: 5000000.m4fss is available
    [    7.923487] remoteproc remoteproc0: attaching to 5000000.m4fss
    [    8.022931] remoteproc remoteproc0: remote processor 5000000.m4fss is now attached
    

    但是、我无法运行 rpmsg_char_simplet 测试。 我遵循了 自述文件、但当我尝试执行它时、示例失败:

    # ./rpmsg_char_simple -r 9 -p 14
    _rpmsg_char_find_ctrldev: rpmsg directory doesn't exist under virtio0.rpmsg_chrdev.-1.14
    Can't create an endpoint device: No such file or directory
    TEST STATUS: FAILED

    如果没有弄错、根据 rproc_id.h、M4F 的 ID 为 9。 您是否知道我可能出错的原因、或者如何使此示例正常工作?

    感谢您的快速答复和迄今为止的帮助。

    此致。

    Lucas Azeituno

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

    你好、Lucas、

    hello_world 与 ipc_rpmsg_echo_linux

    hello_world 不起作用、因为该工程中没有资源表。 您需要添加它。 请阅读 AM62x 学院
    多核>远程内核上的应用开发
    https://dev.ti.com/tirex/explore/node?node=A__ATWfO3c7FkPk06K9x1nvpA__AM62-ACADEMY__uiYMDcq__LATEST

    rpmsg_char_simple  

    供参考、您可以在 AM62x Academy 中找到更多信息
    Linux > IPC 示例
    https://dev.ti.com/tirex/explore/node?node=A__AXINfJJ0T8V7CR5pTK41ww__AM62-ACADEMY__uiYMDcq__LATEST

    我不确定-p 14 是否会导致问题、请尝试在没有问题的情况下运行。

    如果这不起作用、请提供您的终端输出。 我们看到 Linux 连接到 M4F 内核,但我想看到有关 virtio 基础设施初始化的信息。

    此致、

    Nick

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

    您好、Nick、

    感谢您的解释。 我不知道 Hello World 示例没有资源表。

    相关 rpmsg_char_simple ,我现在不能测试它,因为我专注于另一个项目,但无论如何感谢帮助。

    此致。