<p>I'm trying to get a kernel module to load at boot.</p>

<p>If I run <code>insmod /path/to/module.ko</code>, it works fine. But this has to be repeated every time I reboot.</p>

<p>If I run <code>modprobe /path/to/module.ko</code>, it can't find the module.
I know modprobe uses a configuration file, but I can't get it to load the module even after adding /path/to/module.ko to /etc/modules.</p>

<p>What is the proper configuration?</p>

You can make a symbolic link of your module to the standard path, so depmod will see it and you'll be able load it as any other module.
```
```
sudo ln -s /path/to/module.ko /lib/modules/`uname -r`
sudo depmod -a
sudo modprobe module
```
```
If you add the module name to /etc/modules it will be loaded any time you boot.
Anyway I think that the proper configuration is to copy the module to the standard paths.