If I download the source code as:
git clone git://kernel.ubuntu.com/ubuntu/ubuntu-precise.git
In Makefile I can see
VERSION = 3
PATCHLEVEL = 2
SUBLEVEL = 55
EXTRAVERSION =
If I do this:
apt-get source linux-image-$(uname -r)
In Makefile I can see
VERSION = 3
PATCHLEVEL = 8
SUBLEVEL = 13
EXTRAVERSION = .19
None of the above two matches with my running kernel:
#lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise
Also:
3.8.0-38-generic #56~precise1-Ubuntu SMP Thu Mar 13 16:23:47 UTC 2014 i686 i686 i386 GNU/Linux
I understand I should have the exactly same source code that is running for developing and loading a driver using insmod. So how do I download the matching source code