I'm quite new to the Red Pitaya and no FPGA/Linux expert.
What I intend to do, is using one of the Pins from the GPIO-Header as interrupt line in the linux environment.
I built the FPGA sources as described here and use that as template for my own project. I understand, that I have to wire one of the GPIO pins through the PL layers to the PL-to-PS interrupt input on the Zynq block. That seems to work so far, at least the implementation in Vivado succeded.
To program the Interrupt Handler in Linux I read through this blog where the whole process is described for the BeagleBoard and seems to be pretty easy. The problem is, that on the red pitaya OS the linux-headers to compile (loadable - does this make a difference?) kernel modules are missing. The simple line
Code: Select all
apt-get install linux-headers-$(uname -r)
doesn't solve the issue unfortunately and I'm stuck at this point.
So basically my question is, is there some way to install these headers (and everything else needed to compile kernel modules)? I already searched the web and can't really believe that almost noone tried to use the GPIOs as interrupts or in general tried to mess around in the kernel on the Red Pitaya. This topic is propably most related to my question, maybe Nils can shed a bit of light on this. I know that polling would be the alternative approach, but I would really like to get interrupts going on the Red Pitaya. Also, in general it seems to be possible to use interrupts on the Zynq PS in Linux, see here. But as I said, I'm not that deep into Linux yet to see how I can accomplish this on RP.
Thanks in advance,
Christof