Xilinx / dma_ip_drivers

Xilinx QDMA IP Drivers
https://xilinx.github.io/dma_ip_drivers/
578 stars 420 forks source link

XDMA and XVSEC (and maybe QDMA): Some suggestions for clarifications in READMEs #156

Open rsnikhil opened 2 years ago

rsnikhil commented 2 years ago

I encountered various issues building, installing and loading, which might have gone easier with these suggestions.

(1) Perhaps one should add a note that drivers are built for specific kernel versions, and that 'make install' will fail if the linux headers for the currently running Linux kernel are absent.

Check linux kernel version (example debian running 4.19.0-20-amd64)

    $ uname -a
    Linux elevennuc 4.19.0-20-amd64 #1 SMP Debian 4.19.235-1 (2022-03-17) x86_64 GNU/Linux

Install linux-headers if necessary:

    $ sudo apt-get install linux-headers-4.19.0-20-all

(2) The 'make install' steps for XDMA and XVSEC seem to install the drivers in different places, e.g. on Debian:

    /lib/modules/4.19.0-20-amd64/extra/xdma.ko
    /lib/modules/4.19.0-20-amd64/updates/kernel/drivers/xvsec/xvsec.ko

Could you clarify why there is a difference?

(3) After 'make install' for XDMA and XVSEC, I had to run:

    $ sudo depmod

for the kernel to become truly aware of XDMA (I think XVSEC was ok).

[ I have not built QDMA, so I don't know if that would also benefit from these clarifications. ]