insmod: ERROR: could not insert module xdma.ko: Invalid module format

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

insmod: ERROR: could not insert module xdma.ko: Invalid module format

2,519 Views
156614400
Contributor III

insmod: ERROR: could not insert module xdma.ko: Invalid module format

1  I can build the PCIE driver  on x86 ubuntu,  can insmod xdma.ko.  the driver source is  at ./driver/  folder.

      cd  ./driver

      make

      insmod xdma.ko

2  then I build the driver on lx2160a enwirement,   also I can rebuild the source, but when I copy xdma.ko to lx2160ardb board,  can not insmod ,  "insmod: ERROR: could not insert module xdma.ko: Invalid module format".

3  I change the kernel file , ./flexbuild_lsdk2004/packages/linux/linux/include/linux/vermagic.h,   

#define VERMAGIC_STRING "5.4.3 SMP preempt mod_unload modversions aarch64"

modinfo xdma.ko , 

vermagic:       5.4.3 SMP preempt mod_unload modversions aarch64

this message  is same with  message of other KO module  loaded on 2160a board.

4  find ./flexbuild_lsdk2004/build/  -name *.ko

modinfo ko file , they can be loaded on board.

6 the attached file Makefile   can be used to replace the   ./driver/Makefile

5 so , I want to know my PCIE driver source,   which place be put on ??   

can  be built truely, can be insmod truely

0 Kudos
2 Replies

2,437 Views
156614400
Contributor III

if have error, 

make   or  

make ARCH=arm64

0 Kudos

2,437 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello wenbin zhou,

 

Would you please provide detailed procedure about how you built xdma.ko in  lx2160a environment?



Thanks,

Yiping

0 Kudos