Installing a Kernel
To install and use the pispy logic analyzer tool, we must first build and install a kernel loadable module. This rpidma module provides safe and automatic access to the Pi’s DMA peripheral and its interrupts for the pispy tool.
Ideally, you would “just” compile the module itself and install it. However, kernel loadable modules depend on various parts of the entire kernel source tree. Furthermore, loadable kernel modules must match the kernel release that is running. You used to be able to short-circuit this with the use of the modprobe -f option, but this no longer works (it silently fails). This brings us back ...