An error is always reported when loading .ko files

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

An error is always reported when loading .ko files

1,068 次查看
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

标签 (2)
0 项奖励
回复
1 回复

1,060 次查看
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 项奖励
回复