Re: insmod failing to insert a simple module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 29/09/2016 14:01, Madhu K wrote:
> No it is not the requirement, when I downloaded the source 
> "4.0.5-rc7+" was latest. Is there any problem with 4.0.5-rc7+?
What Greg is telling you is that for you to be able to insmod a module 
you need to be running the same kernel version as the source code 
against which you have compiled your module.

If you are running kernel 4.0.0, you won't be able to insmod your module 
that has been compiled using the "4.0.5-rc7+" source code.

Quentin
>
> Thanks,
> Madhu
>
> On Thu, Sep 29, 2016 at 4:54 PM, Greg KH <greg@xxxxxxxxx 
> <mailto:greg@xxxxxxxxx>> wrote:
>
>     On Thu, Sep 29, 2016 at 03:26:49PM +0530, Madhu K wrote:
>     > Hi All,
>     >
>     > While inserting a kernel module, insmod is failing with
>     following error.
>     >
>     >
>     > insmod: error inserting 'page_walk.ko': Invalid module format.
>     >
>     > I verified the modinfo of "page_walk.ko" it is showing version
>     magic as : 4.0.5_rc7+ SMP mod_unload modversions 686
>
>     Is the kernel version that you are currently running also 4.0.5-rc7+?
>     That is a requirement :)
>
>     > what does "mod_unload" mean here?
>
>     You have enabled the ability to unload modules.
>
>     Also look in your kernel log for any specific error messages when
>     trying
>     to load a module, it usually will be more verbous than the insmod
>     program itself.
>
>     good luck,
>
>     greg k-h
>
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux