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.

[参考译文] RTOS/TI-RTOS:通过 RemoteProc 进行 AM572x DSP 内核编程

Guru**** 2540720 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/619553/rtos-ti-rtos-am572x-dsp-core-programming-via-remoteproc

器件型号:TI-RTOS

工具/软件:TI-RTOS

你(们)好

我使用 的是 ti-processor-sdk-linux-am57xx-03.01.00.06和 ti-processor-sdk-rtos-am57xx-evm-03.01.00.06-Windows-x86-64安装程序

我正在尝试在 IPC_3_43_02_04/examples/DRA7XX_BIOS_elf.so 中测试该示例、我打开 cmd 窗口并使用 gmake 编译该示例。

测试时、就像这样  

一切都好。

但是、现在我想让 A15运行 Linux、并使用以下命令:

LN -s /home/root/hello_dsp1.xe66 /lib/firmware/dra7-dsp1-fw.xe66

echo 40800000.DSP >/sys/bus/platform/drivers/omap-rproc/unbind
echo 40800000.DSP >/sys/bus/platform/drivers/omap-rproc/bind
 
出错了。
 
当我使用命令"echo 40800000.dsp >/sys/bus/platform/drivers/omap-rproc/bind 时,DSP1不会加电。

root@am57xx-EVM:~# echo 40800000.dsp >/sys/bus/platform/drivers/omap-rproc/bind
[215.379370] OMAP-rproc 40800000.dsp:分配的保留存储器节点 dsp1_cma@99000000
[215.387210] remoteproc2:提供40800000.DSP
[215.392175] remoteproc2:注意:remoteproc 仍在开发中并被视为实验。
[215.401233] remoteproc 2:二进制格式尚未最终确定、并且还无法保证向后兼容性。

当我对 DSP1的 trace0执行 cat 命令时

root@am57xx-EVM:~# cat /sys/kernel/debug/remoteproc/remoteproc2/trace0
CAT:无法打开"/sys/kernel/debug/remoteproc/remoteproc2/trace0:无此类文件或目录

我有以下问题:

DRA7XX_BIOS_elf 文件夹中的示例只能通过 CCS 进行测试?

是否可以让 DRA7XX_BIOS_elf 中的示例像 DRA7XX_Linux_elf 文件夹一样使用 remoteproc?  

2.如果可能存在第2个问题,在 A15运行 Linux 时,如何使用 remoteproc 测试该示例?

我们将感谢您的任何帮助。

谢谢。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    DRA7XX_BIOS_elf 只能使用 CCS 进行测试。 对于 IPC-Remoteproc 示例、您需要在 DRA7xx_Linux _elf 文件夹下构建示例。

    如果您使用的是处理器 SDK Linux、请参阅此处的说明:
    processors.wiki.ti.com/.../Processor_SDK_IPC_Quick_Start_Guide

    下面是另一篇文章、介绍了如何通过从 Linux 中使用 remoteproc 加载来在 DSP 和 IPU 上运行 RTOS 驱动程序示例:
    processors.wiki.ti.com/.../Linux_IPC_on_AM57xx

    希望这是地狱。

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

    您好、Rahul  

    感谢您的回复。

    我将尝试您的建议。

    顺便说一下、我知道如何在 CCS 中更改 DSP 频率、但我不知道如何在内核或文件系统中更改它。

    您能告诉我如何在内 核或文件系统中更改 DSP 频率吗?

    非常感谢。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Rahul
    我已经找到了一种在 Linux 上更改 DSP 频率的方法。
    再次感谢你的帮助。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    UBoot 将 DSP 频率设置为750MHz、这在 uboot 源中。 只能通过使用 PLL 初始化序列将其右向 DPLL 寄存器值来更改运行时间。 如果要使用固定的 DSP 频率值、另一个选项是修改 uboot 代码以更改 DSP 频率。

    此致、
    Rahul