insmod failing to insert a simple module
Greg KH
greg at kroah.com
Thu Sep 29 08:37:03 EDT 2016
On Thu, Sep 29, 2016 at 05:57:47PM +0530, Madhu K wrote:
> Hi,
>
> I am runnig 4.0.5_rc7 kernel and I built the module for same kernel.
>
> uname -a output :
>
> Linux BLR-PCUB-01141 4.5.0-rc7 #2 SMP Wed Mar 23 15:51:13 IST 2016 x86_64
> x86_64 x86_64 GNU/Linux
"4.5.0-rc7" is different han "4.0.5_rc7" :)
>
> And my modinfo of my module is :
>
> icense: Dual BSD/GPL
> srcversion: 1D16256F51E63BC3632B65B
> depends:
> vermagic: 4.5.0-rc7+ SMP mod_unload modversions 686
That's the issue right there, the module was built for "4.5.0-rc7+" and
you are running "4.5.0-rc7". Notice the "+" character? That's the
problem here...
Run the same kernel version as your module and all should be fine.
Note, the "+" means that there are commits past the last tag in your
tree (or that it has been modified in some way since that tag). So
there is a real difference here, which is why insmod is failing.
If you really think you can ignore this, you can always tell insmod to
ignore the kernel version check. Read the man page for all of the
details there.
good luck!
greg k-h
More information about the Kernelnewbies
mailing list