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: question for EDMA

Part Number: 66AK2G02
Other Parts Discussed in Thread: 66AK2H12

Tool/software: Linux

SOC 66ak2h12,use edma as 66ak2g in Linux.

after os start,i can find /dev/edma3 and /proc/iomem tpcc,but i don't know how to set my edma channel?

  • Hi,

    Have you checked the kernel documentation on this one? The file is Documentation/dma/dmatest.txt (www.kernel.org/.../dmatest.txt):
    Example of usage:
    % modprobe dmatest channel=dma0chan0 timeout=2000 iterations=1 run=1

    ...or:
    % 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

    ...or on the kernel command line:

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

    Hint: available channel list could be extracted by running the following
    command:
    % ls -1 /sys/class/dma/

    Once started a message like "dmatest: Started 1 threads using dma0chan0" is
    emitted. After that only test failure messages are reported until the test
    stops.

    Note that running a new test will not stop any in progress test.

    The following command returns the state of the test.
    % cat /sys/module/dmatest/parameters/run

    There is additional information in the txt file. Have a look at it.

    Best Regards,
    Yordan