Problem in First-Patch-Tutorial
From: Alexander Kapshuk <hidden>
Date: 2017-03-12 16:45:23
On Sun, Mar 12, 2017 at 5:34 PM, [off-list ref] wrote:
On Sun, 12 Mar 2017 15:49:31 +0200, Alexander Kapshuk said:quoted
Are these drivers, drivers/iio/dummy/{iio_dummy_evgen,iio_dummy}.ko, something of your own making, as I'm not seeing them in the kernel source tree? The 'modules_install' make target installs drivers that have been compiled as modules as opposed to those compiled into the kernel, into /lib/modules/`uname -r`. For your own modules added to the kernel source tree, or built out-of-tree, that would involve putting appropriate entries into Kconfig and/or Makefiles. Modeprobe expects your module to be found in /lib/modules/`uname -r`. Otherwise, your module won't get loaded.One other thing to remember is that although 'make modules_install' will take all the .ko files from in-tree modules and put them in their proper place in /lib/modules/`uname-r` and then run 'depmod', many out-of-tree Makefiles manage to forget to do that last step. modprobe is a wrapper around insmod - and the file produced by 'depmod' are what the wrapper uses to find the module.
Thanks for elaborating on that.