Driver Compilation on Host for Linux L4.9.88 for i.MX

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

Driver Compilation on Host for Linux L4.9.88 for i.MX

729 次查看
mayanksirotiya
Contributor I

Hello,

I have i.MX 8QuadXPlus MEK. It came with a preloaded SD card with Linux L4.9.88.

I would like to compile my driver on my Host Ubuntu machine and then load it to i.MX board running with L4.9.88 kernel version.

For furnishing the same, I have tried following :-

NOTE: There is no imx_v7_defconfig inside arm64 configs, hence I have copied the same from arm/configs. Please let me know if this is correct?

  • Once the compilation succeeds, copy the *.ko's on board, and try to insert the modules using insmod. Unfortunately this fails to load.

Could you please share the nice steps for building and loading the driver on host machine like Ubuntu? Or is there any other simpler way of furnishing the same?

Thanks,

1 回复

667 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello mayank,

For compile the Kernel:
$ make ARCH=arm64 defconfig
$ make -j8 ARCH=arm64

regards