How can we get the different version.h files under different source directories?
Dear All, I am building the new kernel images for the 2.6.6 and 2.6.8 kernel versions on Intel x86 machine which was already installed using 2.6.5-7.71 kernel version with SuSE 9.1 CDs. I downloaded the kernel tar files from the following link. http://www.kernel.org/pub/linux/kernel/v2.6/ I build the images on the same machine for the new 2.6.6 and 2.6.8 kernels. Now I am able to boot using the new kernel images. But there is a same version.h file under all the source directories. I have seen the version.h file under the following source directories. 1. /usr/src/linux-2.6.5-7.71/include/linux/ 2. /usr/src/linux-2.6.6/include/linux/ 3. /usr/src/linux-2.6.8/include/linux/ The contents of the version.h file are as follows. -------------------------------------------------- #define UTS_RELEASE "2.6.5-7.71-default" #define LINUX_VERSION_CODE 132613 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) Due the same version.h file, when I try to load the module (which was compiled using the 2.6.8 kernel image on x86 machine which was installed using 2.6.5-7.71 kernel CDs) on another machine which was installed using 2.6.8 kernel CDs, I got the following error.
tifm: version magic '2.6.5-7.71-default 586 REGPARM gcc-3.3' should be '2.6.8 PENTIUM4 gcc-3.2' insmod: error inserting 'tifm.ko': -1 Invalid module format
I understood that the bug is: we can assume that the module was compiled for 2.6.5-7.71-default with gcc 3.3 version where as we are trying to load the module on a machine which is having 2.6.8 kernel with gcc 3.2 version. My doubt is: Why all the source directories does include the same version.h file? How can we get the different version.h files under different source directories? Please give me an idea or solution, how to resolve the problem? Regards, Srinivas G
participants (1)
-
Srinivas G.