After flashing .KO is not seen in Target board

Hello ,

I have flashed linux kernel version 4.9 (L4T 32.4.4) Ubuntu 18.04 , in my Jetson NX SOM module carrier board.

  1. I have created a driver file “gpio-ls1-led.c”
  2. 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.
    $ 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
intree: Y
vermagic: 4.9.140 SMP preempt mod_unload modversions aarch64

But once i prepare the SD card image and flash it into the board, i could not find the gpio-ls1-led.ko in my Target board.

what could be the possible reason

Looks like you have several duplicated posts, check those posts instead.