An error is always reported when loading .ko files

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

An error is always reported when loading .ko files

1,054件の閲覧回数
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,046件の閲覧回数
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 件の賞賛
返信