RE: Basic question on debian kernel versions
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
When I build driver against the two versions the modinfo output is identical. So I am back to the question:
How do I know which driver was built for which version of debian? And even more basic question, how do I know which version of kernel I am running now?
From: Ben Hutchings [mailto:firstname.lastname@example.org]
Sent: Wednesday, April 18, 2012 7:11 PM
Subject: RE: Basic question on debian kernel versions
On Wed, 2012-04-18 at 06:32 -0700, Sarveshwar.Bandi@Emulex.Com wrote:
> Then, give that 6.0.0, 6.03 and 6.0.4, since uname -a output is the
> same, can I assume that kernel image is the same
No, there are new drivers and bug fixes. Some of the bug fixes will affect modules.
> and building driver for any of these debian version will give me the
> same driver binary?
A driver module built using an older version of linux-headers-<kversion> should run against a newer version of linux-image-<kversion>. But the reverse is not generally true. Also, there have been cases where we have accidentally broken compatibility.
This sentence contradicts itself - no actually it doesn't.