Trying to understand modules
Most of you know I have been using a Logitech 3000 Pro webcam with my Linux system for quite a while. Most of you also know with the 2.6 kernel the pwc module is now maintained at http://www.saillard.org/linux/pwc/ Probably the biggest change is there is no longer a separate pwcx module. The pwc.ko module is capable of the large picture by itself. Now the question: I've been happily running my cam for a few months, since I first set up my SuSE 9.2 system. My module is located at /lib/modules/2.6.8-24.14-default/kernel/drivers/usb/media/pwc.ko, where it has worked fine for months. To load the module I type modprobe pwc. Suddenly yesterday for no apparent reason this command gave me: FATAL: Module pwc not found. WHAT DOES THAT MEAN? I looked all over Google for an explanation, and did not find one. How is it "not found" when it is sitting right there in the same place it has been all along? I recopied pwc.ko. No difference. I plugged and unplugged the cam in different ports, no difference. I booted the computer with the cam plugged in as well as plugging in the cam after booting, all to no avail. Finally I got the idea to do insmod pwc.ko and it loads, but the command only works when I am in the /lib/modules/2.6.8-24.14-default/kernel/drivers/usb/media/ directory. The cam works again. I rmmodded and insmodded a few times to be sure. My question is what caused this change? Why is it "found" with insmod but not modprobe? Why must I be in the directory for insmod to work? (Even in the directory, modprobe gives the "FATAL" message.) Thank you. Bryan ******************************************************** Powered by SuSE Linux 9.2 Professional KDE 3.3.0 KMail 1.7.1 This is a Microsoft-free computer Bryan S. Tyson bryantyson@earthlink.net ********************************************************
On Mon, 2005-06-13 at 21:23 -0400, Bryan Tyson wrote:
Most of you know I have been using a Logitech 3000 Pro webcam with my Linux system for quite a while. Most of you also know with the 2.6 kernel the pwc module is now maintained at http://www.saillard.org/linux/pwc/
Probably the biggest change is there is no longer a separate pwcx module. The pwc.ko module is capable of the large picture by itself.
Now the question: I've been happily running my cam for a few months, since I first set up my SuSE 9.2 system. My module is located at /lib/modules/2.6.8-24.14-default/kernel/drivers/usb/media/pwc.ko, where it has worked fine for months. To load the module I type modprobe pwc. Did you run depmod -a after you copied the module?
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
On Monday 13 June 2005 23:22, Ken Schneider wrote:
Did you run depmod -a after you copied the module?
Yes, and it made no difference. Bryan ******************************************************** Powered by SuSE Linux 9.2 Professional KDE 3.3.0 KMail 1.7.1 This is a Microsoft-free computer Bryan S. Tyson bryantyson@earthlink.net ********************************************************
On Tuesday 14 June 2005 04:23, Bryan Tyson wrote:
Most of you know I have been using a Logitech 3000 Pro webcam with my Linux system for quite a while. Most of you also know with the 2.6 kernel the pwc module is now maintained at http://www.saillard.org/linux/pwc/
Probably the biggest change is there is no longer a separate pwcx module. The pwc.ko module is capable of the large picture by itself.
Did you have to compile this module yourself, or did it come with SUSE?
On Tuesday 14 June 2005 05:47, Silviu Marin-Caea wrote:
On Tuesday 14 June 2005 04:23, Bryan Tyson wrote:
Most of you know I have been using a Logitech 3000 Pro webcam with my Linux system for quite a while. Most of you also know with the 2.6 kernel the pwc module is now maintained at http://www.saillard.org/linux/pwc/
Did you have to compile this module yourself, or did it come with SUSE?
No, it did not come with SuSE. I tried downloading from saillard.org but at the time I could not get it to compile. I found one already compiled for SuSE at another site and all I had to do was drop it into the correct folder. Bryan ******************************************************** Powered by SuSE Linux 9.2 Professional KDE 3.3.0 KMail 1.7.1 This is a Microsoft-free computer Bryan S. Tyson bryantyson@earthlink.net ********************************************************
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2005-06-13 at 21:23 -0400, Bryan Tyson wrote:
Now the question: I've been happily running my cam for a few months, since I first set up my SuSE 9.2 system. My module is located at /lib/modules/2.6.8-24.14-default/kernel/drivers/usb/media/pwc.ko, where it has worked fine for months. To load the module I type modprobe pwc.
Suddenly yesterday for no apparent reason this command gave me: FATAL: Module pwc not found. WHAT DOES THAT MEAN? I looked all over Google for an explanation, and did not find one. How is it "not found" when it is sitting right there in the same place it has been all along?
Wild guess. What version is your running kernel exactly? (uname -r). - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFCr3fftTMYHG2NR9URAr+nAJ9G1ermOPI/x4fDZrVpTGBmWQ07WACdEJL2 19ed5A+tYx0je8cv8GkHZOQ= =6s0l -----END PGP SIGNATURE-----
On Wed, 15 Jun 2005 10:35 am, Carlos E. R. wrote:
The Monday 2005-06-13 at 21:23 -0400, Bryan Tyson wrote:
My module is located at /lib/modules/2.6.8-24.14-default/kernel/drivers/usb/media/pwc.ko, where it has worked fine for months. To load the module I type: modprobe pwc
Suddenly yesterday for no apparent reason this command gave me: FATAL: Module pwc not found.
Wild guess. What version is your running kernel exactly? (uname -r).
Carlos might have it, we had a kernel upgrade recently, check the running kernel matches the installed one. ls -la /boot/vmlinuz* cat /proc/version You'll have no joy loading modules if the version numbers differ. -- Michael James michael.james@csiro.au System Administrator voice: 02 6246 5040 CSIRO Bioinformatics Facility fax: 02 6246 5166 Internet Explorer is fine for downloading Firefox, but after that....
On Tuesday 14 June 2005 21:13, Michael James wrote:
Carlos might have it, we had a kernel upgrade recently, check the running kernel matches the installed one. ls -la /boot/vmlinuz* cat /proc/version You'll have no joy loading modules if the version numbers differ.
I looked and sure enough, my kernel used to be 2.6.8-24.14-default but now is 2.6.8-24.16-default. This would have been through the automatic update as I did not manually upgrade my kernel. Thank you! Bryan ******************************************************** Powered by SuSE Linux 9.2 Professional KDE 3.3.0 KMail 1.7.1 This is a Microsoft-free computer Bryan S. Tyson bryantyson@earthlink.net ********************************************************
On Tuesday 14 June 2005 20:35, Carlos E. R. wrote:
Wild guess. What version is your running kernel exactly? (uname -r).
Congratulations, your guess was right! I looked and sure enough, my kernel used to be 2.6.8-24.14-default but now is 2.6.8-24.16-default. This would have been through the automatic update as I did not manually upgrade my kernel. Thank you! Bryan ******************************************************** Powered by SuSE Linux 9.2 Professional KDE 3.3.0 KMail 1.7.1 This is a Microsoft-free computer Bryan S. Tyson bryantyson@earthlink.net ********************************************************
participants (5)
-
Bryan Tyson
-
Carlos E. R.
-
Ken Schneider
-
Michael James
-
Silviu Marin-Caea