Results 1 to 2 of 2
Thread: Version Magic Problem
Enjoy an ad free experience by logging in. Not a member yet? Register.
Version Magic Problem
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.
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
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!