I am trying to compile some usb drivers for the pi and therefore, I need to get the headers that correspond to my present kernel
uname -r
produces 4.1.7+
Based on my experiences with Debian and Ubuntu based systems, I assumed that apt-get install linux-headers-rpi
would get me the relevant headers, but lo and behold, that meta package gets me linux-headers-3.16.0-4-common
which is not exactly what I was expecting.
Could someone explain why I have to go rummaging about on the net for the headers for the current image?