I have flashed linux kernel version 4.9 (L4T 32.4.4) Ubuntu 18.04 , in my Jetson NX SOM module carrier board.
I have successfully compiled and build a gpio driver and prepared a .KO file
$ file gpio-ls1-led.ko
gpio-ls1-led.ko: ELF 64-bit LSB relocatable, ARM aarch64, version 1 (SYSV), BuildID[sha1]=0443c6a1aafdc00a92c45feaf51800058a56a178, with debug_info, not stripped
**$ modinfo gpio-ls1-led.ko** filename: /kernel/Linux_for_Tegra/source/public/kernel/kernel-4.9/kernel_build/drivers/gpio/gpio-ls1-led.ko license: GPL depends: intree: Y vermagic: 4.9.140 SMP preempt mod_unload modversions aarch64
MY DOUBT IS
As i want to test this module in target machine , so instead of preparing a SD card image and flashing it in SOM . Can i directly scp this gpio-ls1-led.ko file from (linux) to Target board (nvidia som) and try inserting module (sudo insmod gpio-ls1-led.ko).
If yes , then please tell me how to do it,
If no, then please tell me why can;t.
Thanks in advance