AnsweredAssumed Answered

android6.0 insmod xx.ko, exec format error

Question asked by jie jia on Feb 20, 2017
Latest reply on Feb 20, 2017 by Wigros Sun

Hi,

   I have a board reference to imx6q-sabresd using android_M6.0.1_2.0.0_source.tar.gz.

   I am trying to port device drivers on this board. 

   makefile:

obj-m := sema.o
KDIR := /work/myandroid/kernel_imx/
PWD := $(shell pwd)
all:
   make -C $(KDIR) ARCH=arm CROSS_COMPILE=arm-linux-androideabi- M=$(PWD) modules
clean:
   $(MAKE) -C $(KDIR) M=$(PWD) clean

 

when insmod sema.ko:

root@sabresd_6dq:/data/local/tmp # insmod sema.ko
insmod: failed to load sema.ko: Exec format error

Outcomes