I have a Zynq Ultrascale board and I want to use its DMA interface from Aarch64 processor which is running Linux as OS. for this purpose I should place .ko driver file in kernel and load it into Linux kernel.
currently, I use Petalinux and build driver .ko file by it, and Petalinux place this .ko file in rootfs and Petalinux kernel.
now, I want to move from Petalinux to Ubuntu and use Ubuntu on Zynq board, so I want to know could I build a DMA driver separately from the ubuntu kernel and add it to its kernel afterward?
formerly, Petalinux built my driver while it built whole linux kernel. but I want to build only driver and use existing kernel(without building ubuntu kernel)
if yes and I could build the driver separately, how could I build a driver for Ubunto?