RE: Basic question on debian kernel versions
Well. I have tried everything possible to avoid updates. But no matter which CD I install from I always land up in same version of kernel (6.0.4). The alternate way is for me to get linux-kernel source package for the version I need to use and re-compile the kernel and build the driver against it.
But what is the best way to know the which is kernel source package for given version of debian?
From: Ben Hutchings [mailto:email@example.com]
Sent: Wednesday, April 18, 2012 7:54 PM
Subject: RE: Basic question on debian kernel versions
On Wed, 2012-04-18 at 07:13 -0700, Sarveshwar.Bandi@Emulex.Com wrote:
> I installed linux headers in both my installations (one of which I
> installed using 6.0.0 cd and other using 6.0.4 cd) using apt-get
> install and dpkg --list shows same output on both the systems:
> root@debian:~# dpkg --list |grep headers
> ii linux-headers-2.6.32-5-686 2.6.32-41squeeze2 Header files for Linux 2.6.32-5-686
> ii linux-headers-2.6.32-5-common 2.6.32-41squeeze2 Common header files for Linux 2.6.32-5
This is because the installer automatically installs updates by default.
> When I build driver against the two versions the modinfo output is
Yes, because you used exactly the same package versions. If you really want to test Debian 6.0.0, you have to tell the installer not to install updates.
> So I am back to the question:
> How do I know which driver was built for which version of debian?
Unfortunately, I don't think there is an obvious way to distinguish modules built against different versions of the same linux-headers-<kversion> package.
> And even more basic question, how do I know which version of kernel I
> am running now?
This sentence contradicts itself - no actually it doesn't.