Re: compiling kernel module

2015-03-04 Thread Erez D
On Wed, Mar 4, 2015 at 11:09 AM, Leon Romanovsky l...@leon.nu wrote: i tried downloading source from lenovo. they have instructions to compile with: ./mk x2ap n k however i cannot find 'mk' anywhere, not in their tar, not in android sdk nor ndk etc. ./mk is a symlink to ./makeMtk script

Re: compiling kernel module

2015-03-04 Thread Leon Romanovsky
i tried downloading source from lenovo. they have instructions to compile with: ./mk x2ap n k however i cannot find 'mk' anywhere, not in their tar, not in android sdk nor ndk etc. ./mk is a symlink to ./makeMtk script which is part of Mediatek build system. The script is located at

Re: compiling kernel module

2015-03-04 Thread Leon Romanovsky
On Wed, Mar 4, 2015 at 11:12 AM, Erez D erez0...@gmail.com wrote: On Wed, Mar 4, 2015 at 11:09 AM, Leon Romanovsky l...@leon.nu wrote: i tried downloading source from lenovo. they have instructions to compile with: ./mk x2ap n k however i cannot find 'mk' anywhere, not in their tar, not

Re: compiling kernel module

2015-03-04 Thread Erez D
On Wed, Mar 4, 2015 at 11:55 AM, Leon Romanovsky l...@leon.nu wrote: On Wed, Mar 4, 2015 at 11:12 AM, Erez D erez0...@gmail.com wrote: On Wed, Mar 4, 2015 at 11:09 AM, Leon Romanovsky l...@leon.nu wrote: i tried downloading source from lenovo. they have instructions to compile

Re: compiling kernel module

2015-03-04 Thread Leon Romanovsky
On Wed, Mar 4, 2015 at 2:21 PM, Erez D erez0...@gmail.com wrote: On Wed, Mar 4, 2015 at 11:55 AM, Leon Romanovsky l...@leon.nu wrote: On Wed, Mar 4, 2015 at 11:12 AM, Erez D erez0...@gmail.com wrote: On Wed, Mar 4, 2015 at 11:09 AM, Leon Romanovsky l...@leon.nu wrote: i tried

compiling kernel module

2015-03-03 Thread Erez D
hi i have a rooted lenovo vibe x2. i want to compile a kernel module for it. i did a 'make ARCH=arm CROSS_COMPILE=... M=subdir' and got my module.ko when i insmod, i get: exec format error and dmesg: version magic '3.10.35 mod_unload modversions ARMv7 p2v8 ' should be '3.10.35 SMP preempt