5,599,190 Members 36,032 Now Online
XDA Developers Android and Mobile Development Forum

[Q] module_layout error? help

Tip us?
 
niabi
Old
#1  
Senior Member - OP
Thanks Meter 11
Posts: 206
Join Date: May 2008
Default [Q] module_layout error? help

Been trying for a few days to compile my own module for Geniatech ATV120 (same kernel as ATV1200), I've gotten as far as compile the modules and first I got Exec Error, but after making the changes to get the exact kernel version I now get “disagrees about version of symbol module_layout” so I wanted to know how the hid-sony.ko made by @fma965 (on this thread http://forum.xda-developers.com/show....php?t=2262421) since it works perfectly on my atv120, so I did this:

modinfo hid-sony.ko and I got this

filename: hid-sony.ko
license: GPL
alias: hid:b0003v0000054Cp0000024B
alias: hid:b0005v0000054Cp00000268
alias: hid:b0003v0000054Cp0000042F
alias: hid:b0003v0000054Cp00000268
depends:
vermagic: 3.0.8-g525c782 SMP preempt mod_unload modversions ARMv7


I did the same for my module

filename: joydev.ko
license: GPL
description: Joystick device interfaces
author: Vojtech Pavlik <vojtech@ucw.cz>
alias: input:b*v*p*e*-e*1,*k*2C0,*r*a*m*l*s*f*w*
alias: input:b*v*p*e*-e*1,*k*130,*r*a*m*l*s*f*w*
alias: input:b*v*p*e*-e*1,*k*120,*r*a*m*l*s*f*w*
alias: input:b*v*p*e*-e*3,*k*r*a*6,*m*l*s*f*w*
alias: input:b*v*p*e*-e*3,*k*r*a*8,*m*l*s*f*w*
alias: input:b*v*p*e*-e*3,*k*r*a*0,*m*l*s*f*w*
depends:
vermagic: 3.0.8-g525c782 SMP preempt mod_unload modversions ARMv7

so everything seem correct, when to load it with insmod on my ATV120 and I got the “disagrees about version of symbol module_layout” error

ok, back to ubuntu. ran this:

modprobe --dump-modversions hid-sony.ko
0x4e362f07 module_layout

I noticed the module layout so I ran the same on my module
modprobe --dump-modversions joydev.ko
0x82bedd05 module_layout

that seems to be my problem, I know nothing about module layouts, but doing some google research I found I need the same Module.symvers but for the life of me I just cannot get the same one, seeing as @fma965 you are the only one that has been able to compile a module with this kernel, do you still have thie Module.symvers? or can you tell me what kernel you used? or anybody else have any info I could use?

Thanks!
Samsung Galaxy S3 (i747) Dandroidv2.6 LL1
Samsung Galaxy S with Elite JOP40D 4.2.1 RC1 (retired)
Acer ICONIA A500 Flexreaper ICS
 
fma965
Old
#2  
fma965's Avatar
Recognized Contributor
Thanks Meter 1321
Posts: 2,994
Join Date: Nov 2011
Location: Cornwall, UK

 
DONATE TO ME
hi i haven't had time to read all this but wanted to reply asap, i no longer have the kernel source nor any associated files, i can't even remember how i did it, sorry for the lack of help as i was hoping to give helpful information.

IF YOU WANT ME TO REPLY MAKE SURE YOU TYPE "@Fma965" OR "QUOTE" MY POST

LG G2 SPECIFIC STUFF
Stock Firmware Mirror --- ROM Patcher

XPERIA PLAY SPECIFIC STUFF
My Website --- My Twitter --- My Threads

The Following User Says Thank You to fma965 For This Useful Post: [ Click to Expand ]
 
niabi
Old
#3  
Senior Member - OP
Thanks Meter 11
Posts: 206
Join Date: May 2008
Quote:
Originally Posted by fma965 View Post
hi i haven't had time to read all this but wanted to reply asap, i no longer have the kernel source nor any associated files, i can't even remember how i did it, sorry for the lack of help as i was hoping to give helpful information.
hey, no problem Thanks for the reply!

happy holidays
Samsung Galaxy S3 (i747) Dandroidv2.6 LL1
Samsung Galaxy S with Elite JOP40D 4.2.1 RC1 (retired)
Acer ICONIA A500 Flexreaper ICS
Tags
atv120, atv1200, geniatech, kernel, modules
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes