Re: insmod failing to insert a simple module

2016-09-29 Thread Valdis . Kletnieks
On Thu, 29 Sep 2016 17:54:55 +0530, Madhu K said: > Linux BLR-PCUB-01141 4.5.0-rc7 > vermagic: 4.5.0-rc7+ SMP mod_unload modversions 686 One is a straight 4.5.0-rc7 (and why are you using that and not the released 4.5.0, anyhow?), and the other is 4.5.0-rc7+ with a plus sign, which means

Re: insmod failing to insert a simple module

2016-09-29 Thread Greg KH
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

Re: insmod failing to insert a simple module

2016-09-29 Thread Alexander Kapshuk
On Thu, Sep 29, 2016 at 3:24 PM, Madhu K wrote: > Hi, > > 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 > > And my modinfo of my module is : > > icense:Dual BSD/GPL > srcversion:

Re: insmod failing to insert a simple module

2016-09-29 Thread Madhu K
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 And my modinfo of my module is : icense:Dual BSD/GPL srcversion: 1D16256F51E63BC3632B65B

Re: insmod failing to insert a simple module

2016-09-29 Thread Madhu K
Hi, 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 And my modinfo of my module is : icense:Dual BSD/GPL srcversion: 1D16256F51E63BC3632B65B depends: vermagic: 4.5.0-rc7+ SMP mod_unload modversions 686 So

Re: insmod failing to insert a simple module

2016-09-29 Thread Greg KH
A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Thu, Sep 29, 2016 at 05:31:52PM +0530, Madhu K wrote: > No it is not the requirement, when I downloaded the source "4.0.5-rc7+" was >

Re: insmod failing to insert a simple module

2016-09-29 Thread Quentin Lambert
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

Re: insmod failing to insert a simple module

2016-09-29 Thread Madhu K
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+? Thanks, Madhu On Thu, Sep 29, 2016 at 4:54 PM, Greg KH wrote: > On Thu, Sep 29, 2016 at 03:26:49PM +0530, Madhu K wrote: > > Hi All, > > > > While inserting

Re: insmod failing to insert a simple module

2016-09-29 Thread Greg KH
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 : >

Re: insmod failing to insert a simple module

2016-09-29 Thread Madhu K
How to check correct headers, and when I download or clone the latest kernel don't they provide the headers along with kernel ? Thanks, Madhu On Thu, Sep 29, 2016 at 4:00 PM, Pasquier, Thomas wrote: > Did you verify that you are building your module against the correct >

Re: insmod failing to insert a simple module

2016-09-29 Thread Pasquier, Thomas
Did you verify that you are building your module against the correct headers? On Thu, Sep 29, 2016 at 5:56 AM, Madhu K wrote: > Hi All, > > While inserting a kernel module, insmod is failing with following error. > > insmod: error inserting 'page_walk.ko': Invalid module

insmod failing to insert a simple module

2016-09-29 Thread Madhu K
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 what does "mod_unload" mean here?