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.

memory map problem for edma

Dear all,

In my application I use mmap to map the frame buffer memory to user space memory

fdHandle = open ("/dev/fb0", O_RDWR);

memADDR = mmap (0, nBufferSize * IL_CLIENT_FB_INPUT_BUFFER_COUNT,  (PROT_READ | PROT_WRITE), MAP_SHARED, (int32_t)fbHandle, 0))

And I am able to successfully copy to this memory using memcpy. Now I am using edma for my memory copy operations, and I try to get the physical address with the following function:

Memory_translate(memADDR, Memory_XltFlags_Virt2Phys)

But the return of this function is 0. Is there any way I can obtain the physical address of the frame buffer memory, to enable the edma to copy from one memory position to the frame buffer?

Thanks,

Danillo