Results 1 to 2 of 2
Hello friends,
im using FC9.
my kernel version is 2.6.25-14.fc9.i686 , where as my kernel source is 2.6.30(got frm friend).
I wrote a simple hello world module, while inserting the ...
- 04-21-2011 #1
Version Magic Problem
Hello friends,
im using FC9.
my kernel version is 2.6.25-14.fc9.i686, where as my kernel source is 2.6.30(got frm friend).
I wrote a simple hello world module, while inserting the module the following error is displayed.
insmod: error inserting 'Hello.ko': -1 Invalid module format
Hello: version magic '2.6.30 SMP mod_unload 686 4KSTACKS ' should be '2.6.25-14.fc9.i686 SMP mod_unload 686 4KSTACKS '
i changed the version magic string in /usr/src/linux-2.6.30/include/linux/utsrelease.h file as 2.6.25-14.fc9.i686 from 2.6.30.
the above error is not shown.. and module loaded with segmentation fault.
help me in this regard.
Jay.
- 04-21-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,961
Loading modules built on one version source into another kernel version, is as you have found, "not a good idea"... Get the correct source for your kernel, or update the kernel.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
