Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 08-28-2012, 04:59 AM   #1
LQ Newbie
Registered: Apr 2012
Posts: 29

Rep: Reputation: Disabled
insmod error version magic

I am trying to compile module for android. When I compile for the emulator I can get it working. However there are problems when compiling it for the device. The module compiles properly, when I try to install it I get this error.

insmod: init_module 'ioctl.ko' failed (Exec format error)

this is the dmesg out put,

ioctl: version magic ' preempt mod_unload ARMv7 ' should be ' preempt mod_unload ARMv7

On some forums it was said the problem is in the make file. What places should I change in the make file(if the problem is in make file)?

Thanks in advance
Old 08-28-2012, 05:41 AM   #2
LQ Newbie
Registered: Apr 2012
Posts: 29

Original Poster
Rep: Reputation: Disabled
Found the solution:

I edited the make file's from EXTRAVERSION = .7 to EXTRAVERSION = .7-I900XXJVP-CL264642 that is why I got the wrong error msg in the dmesg !

You should make it #EXTRAVERSION = .7

and in the .config file find CONFIG_LOCALVERSION. Change this to CONFIG_LOCALVERSION=-I900XXJVP-CL264642

It should solve the problem(at least it solved for me)


insmod, linux module, magic, makefile, version

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
version magic error geetha_sg Slackware 7 07-06-2008 11:11 PM
insmod fail and see"version magic **should be**" steven7610 Linux - Kernel 1 08-31-2007 11:20 AM
Version magic!?! iansoundz Linux - General 0 07-07-2005 01:24 AM
version magic error fotisaueb Linux - General 0 08-24-2004 11:02 AM
Building Kernel (mdkcustom) -- Magic Version error! NachoKB Mandriva 1 08-05-2004 03:29 PM

All times are GMT -5. The time now is 03:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration