An error is always reported when loading .ko files

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

An error is always reported when loading .ko files

1,048 Views
mine233
Contributor I

I want to load the USB driver separately, so I take out the usb_wwan.c  and option.c in imx-linux-kernel separately and compile them into modules. After normal compilation, .ko files can be generated, but errors are always reported when insmod is on the development board.

1.Error message of dmesg:

mine233_0-1655437023667.png

2.Kernel version of the development board:

mine233_1-1655437094278.png

3.The Linux kernel version I downloaded from the IMX server is also IMX_ 5.4.70_ 2.3.0

4.The cross compiler uses gcc-arm-9.2-2019.12-x86_ 64-aarch64-none-linux-gnu. tar. xz

How to solve this problem

thank you

Labels (2)
0 Kudos
Reply
1 Reply

1,040 Views
khang_letruong
Senior Contributor III

Hi @mine233 ,

Looks like the USB driver was not built with the same source (and same configuration such as debug enabled/disabled ...) of running kernel or USB driver had been built at a moment before the running kernel was (re-)built.

0 Kudos
Reply