MY TARGET MACHINE: I have flashed linux kernel version 4.9 (L4T 32.4.4) Ubuntu 18.04 , in my Jetson NX SOM module carrier board.
IN MY HOST (linux) MACHINE
- I have created a driver file “gpio-ls1-led.c”
- And made changes in all the required file like MAKEFILE , Kconfig,tegra_defconfig,created a dtsi file and included it in main (tegra194-p3668-all-p3509-0000.dts) file. Even my compilation and build is successful.
My question is , How can i compile + build and Insert the module for my target machine from my local machine.
Because usually if we try to insert the module (sudo insmod gpio-ls1-led.ko ) from our local machine , then it shows the error of insmod: ERROR: could not insert module gpio-ls1-led.ko: Invalid module format
What changes we can do in Makefile or other files.