明月I伊人
明月I伊人
I use petalinux 2021.1 build the module, there is two errors. axidma_dma.c: void axidma_dma_callback() func, struct siginfo error, new is struct kernel_siginfo. axidma_chrdev.c: access_ok() only has two arguments.
XDMA结构体:/* helper struct to remember the Xdma device names */ typedef struct { char * base_path; /* path to first found Xdma device */ char * c2h0_path; /* card to...
我在直接使用ioctl和mmap申请dma_heap内存时,在xdma驱动里面,这个地方报错。xdma驱动这里把缓冲区映射到散列表,要求内存是物理连续且对齐的,我在使用时,malloc内存可以,自己申请的dma_heap内存不行。
我们也遇到这个问题了,通过gst命令工具没有这个问题,通过mpp api就有这个问题,视频数据通过usb3.0进入到cpu