How to integrate new kernel modules in L4T rootfs

Hi guys,

I complie code on Jetson Nano and generate modules(*.ko), i would like to copy them into L4T rootfs,
But they are not automatically loaded by system, they ware loaded while i do depmod -a.

So, What do I do in rootfs? I want to load them automatically on system startup after flashed.

If you create a .conf file in /etc/modules-load.d/ containing the names of your modules, they should load at startup.

/etc/modules-load.d/mymodules.conf

# Loading MyModules
mymodule
myothermodule

I got it . Thank you