regarding kernel version ........
Hi all !
I'm trying to create a kernel module. So I follow the steps below:
1. create my mod.c file
2. compile the file to generate the object (mod.o) file
3. next up the module by: insmod mod
But at the last step I got an error message saying :
mod.o : kernel_module version mismatch
mod.o is compiled for kernel version 2.4.20
while this kernel version is 2.4.20-8bigmem
OK... what I've found that the name of my kernel image file is 'vmlinuz2.4.20-8bigmem'. So is it due to that ?
At the time of compilation I have not specified any kernel version. So from where does this object file get the value ? Lets suppose I've an object file. Now I want to know which kernel version it is compiled for ?
Is there any way to know this ?
Thanx for any help ... :)