I have written a simple hello world kernel module, compiled it and install in /lib/modules/kernel_version/extra/
path.
With insmod
its getting loaded properly, but with modprobe
i am getting an error
modprobe: FATAL: Module hello_world.ko not found.
I have installed all the per-requisite.
Here is Makefile to compile and install:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules_install
Please tell me how to get is done.
Thanks in Advance.