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 :-
- Cloned linux-imx from linux-imx - i.MX Linux kernel , and switched to branch rel_imx_4.9.88_2.2.0_8qxp_beta2.
- Then I have set following env parameters:
- export ARCH=arm64
- export CROSS_COMPILE=aarch64-linux-gnu-
- make imx_v7_defconfig
- make -j8
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?