I have a problem with modprobe
command... I compiled the hello world module and loaded it with insmod
, it works fine and when I do lsmod
,
Insert this in your Makefile
$(MAKE) -C $(KDIR) M=$(PWD) modules_install
it will install the module in the directory /lib/modules//extra/
After make , insert module with modprobe module_name (without .ko extension)
OR
After your normal make, you copy module module_name.ko into directory /lib/modules//extra/
then do modprobe module_name (without .ko extension)