Altera_Forum
Honored Contributor
20 years agoSetting up a DMA Transaction in a driver
Hello everyone,
i currently working on driver, where i need to do some dma-transaction. I can do DMA and PIO directly on the Nios 2 System, without Linux ( withot an running system Linux Kernel). But now i want to run the whole system under Linux, so i started writing adriver. Everything works fine, including PIO, but i have problems with DMA. I read the chapter about setting up the dma in "Linux device drivers" by Corbet & Rubini. But simply it doesn't work: 1) request_dma(...) fails... for example 2) I wanted some uncached memory (:=alt_uncached_malloc) therefore i tried: 3) dma_pool_create(...): -> unresolved symbol error; 4) dma_alloc_coherent(...) -> Kernel bug i'm not sure, if the function are dedicated to pci. well maybe someone has an hint and can teach howto do? Best Regards.