I need to compile a module for raspberry Pi 2. downloaded the latest kernel from:
https://github.com/raspberrypi/linux
compiled ok, but can't load the module with modprobe due to vermagic dismatch. (modprobe -f didn't work either). my kernel is 3.18.7-v7+ and the latest source is already 3.18.11... something.
i'm not that familiar with github (i just downloaded the zip file) but there is no option to select that particular build. do i have to clone and checkout? or some other procedure? I'm trying to get it as simple as possible. i just need the kernel header files to compile the device driver module.
any pointer is deeply appreciated.