I'm looking for a few kernel modules to load i2c-dev and i2c-bcm2708. But the modprobe command returns:sudo modprobe i2c-devmodprobe: module i2c-dev not found in modules.depHow can I list all the available modules in the system? In which directory are they located?
How to list all loadable kernel modules?
linux kernel;kernel modules
Normally modprobe loads modules from sub folders located in the /lib/modules/$(uname -r). Usually all files have extension .ko, so you can list them withfind /lib/modules/$(uname -r) -type f -name \*.koHowever to load a module successfully modprobe needs its dependencies listed in the file /lib/modules/$(uname -r)/modules.dep (and a corresponding binary version modules.dep.bin). If some module is present on the system, but is not on the list then you can run command depmod which will include your module to the modules.dep/modules.dep.bin.Additionally, if the module is successfully loaded it will be listed in the file /proc/modules (also accessed via command lsmod).