一、下载XDMA文件
输入命令:
sudo git clone https://github.com/Xilinx/dma_ip_drivers
cd xx_dma/dma_ip_drivers/XDMA/linux-kernel/xdma$
二 、编译:
sudo make install 在最后会遇到下面这个问题:
三、添加key 文件
cd /lib/modules/5.4.0-135-generic/build/certs
sudo vim x509.genkey
[ req ]
default_bits = 4096
distinguished_name = req_distinguished_name
prompt = no
string_mask = utf8only
x509_extensions = myexts
[ req_distinguished_name ]
CN = Modules
[ myexts ]
basicConstraints=critical,CA:FALSE
keyUsage=digitalSignature
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid