I am running Slackware 12.1 with kernel-generic-smp-126.96.36.199-smp. I need to make a package for the module for my webcam. The source code for the module is:
The driver qcmessenger.ko is compiled by issuing "make all" in the sources. Directly issuing "insmod qcmessenger.ko" works, the module is loaded and the cam works perfectly. I want to make a package for the module. I tried simply copying qcmessenger.ko to /lib/modules/$KERNEL/kernel/drivers/media/video/usbvideo, but then "modprobe qcmessenger" does not find the module. What should I do? I think I should run "depmod -a" in the doinst.sh, but I am not sure.
I am looking forward to your suggestions.