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/66AK2G02:EDMA 问题

Guru**** 2551110 points
Other Parts Discussed in Thread: 66AK2H12

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/608361/linux-66ak2g02-question-for-edma

器件型号:66AK2G02
主题中讨论的其他器件:66AK2H12

工具/软件:Linux

SoC 66ak2h12、在 Linux 中将 EDMA 用作66ak2g。

操作系统启动后、我可以找到/dev/edma3和/proc/iomem tpcc、但我不知道如何设置 EDMA 通道?

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

    您是否已检查了这个上的内核文档? 文件为 Documentation/DMA/dmatest.txt (www.kernel.org/.../dmatest.txt):)
    使用示例:
    % modprobe dmatest channel=dma0chan0 timeout=2000 iterations=1 run=1

    ...或:
    % modprobe dmatest
    % echo dma0chan0 >/sys/module/dmatest/parameters/channel
    % echo 2000 >/sys/module/dmatest/parameters/timeout
    % echo 1 >/sys/module/dmatest/parameters/iterations
    % echo 1 >/sys/module/dmatest/parameters/run

    ...或在内核命令行上:

    dmatest.channel=dma0chan0 dmatest.timeout=2000 dmatest.iterations=1 dmatest.run=1

    提示:可以通过运行以下命令来提取可用的通道列表
    命令:
    % ls -1 /sys/class/dma

    启动后、会显示"dmatest:started 1 threads using dma0chan0"之类的消息
    发射的。 之后、只有测试失败消息才会报告、直至测试完成
    停止。

    请注意、运行新测试不会停止任何正在进行的测试。

    以下命令返回测试的状态。
    % cat /sys/module/dmatest/parameters/run

    txt 文件中有其它信息。 请看一下。

    此致、
    Yordan