Results 1 to 2 of 2
Hey Guys, i am new in Linux and am having the above error when loading my compiled module. Someone asked me to compare the module version and kernel version to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-06-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 1
insmod: error inserting 'hello_cdev.ko': -1 Invalid module format
Hey Guys, i am new in Linux and am having the above error when loading my compiled module. Someone asked me to compare the module version and kernel version to find out whether they are the same : I did the comparisons but the problem is i don't know how to interpret my results, please assist: the sample run is show below :
uname -r
2.6.38-8-generic
modinfo hello_cdev.ko
filename: hello_cdev.ko
license: GPL
srcversion: 46A6BD6708886186C0A7FC8
depends:
vermagic: 2.6.38.8 SMP mod_unload modversions 686
sudo insmod hello_cdev.ko
[sudo] password for kanisious:
insmod: error inserting 'hello_cdev.ko': -1 Invalid module format
- 09-06-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
- 10,156
Is it possible that the module was built for either a different architecture or word size (64-bit module vs. 32-bit OS)?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
