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:
2.Kernel version of the development board:
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
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.