I'm attempting to create a virtual video device on raspberry pi 2 using v4l2loopback and prior installation of the v4l2loopback on their website in the Dependencies section they say that the kernel headers must be the same as the kernel where you want to use the module but on raspberry 2 it's not the same. The kernel installed is 4.1.17-v7+ and there are no headers with the same version e available on the repository so I need to get it by myself. I came across this thread but I don't know how to get the linux headers 4.1.17-v7 from //github.com/raspberrypi/linux/ to follow shig instructions and see what happens. Could you show me how to install linux headers 4.1.17-v7 on raspberry 2?
PS: Doing the following commands, I can install the v4l2loopback-dkms but when I do the modprobe command it says that the module v4l2loopback wasn't found.
sudo apt-get install v4l2loopback-dkms
sudo modprobe v4l2loopback