Installing spca5xx driver for webcam
I am trying to install the spca5xx driver for a webcam on my Sony Vaio PCG-FR130 notebook with Fedora Core 10 installed. Kernel Version 2.6.27.21-170.2.56.fc10.i686
Here is what I have done so far. 1) lsusb shows Bus 003 Device 004: ID 093a:2460 Pixart Imaging, Inc. Q-TEC WEBCAM 100 2)I looked in http://mxhaard.free.fr/spca5xx.html to see if spca5xx supports my webcam, it does. 3)I downloaded "for kernel up from 2.6.11 : gspcav1-20071224.tar.gz" -unzipped directory 4)In the read/install file, it said... - Before trying to compile the driver, ensure that you've configured your kernel, and updated the dependencies: 'make [config|menuconfig|xconfig]; make dep'. (I do not know what this means) -Run as root go to gspcav1 directory and run: ./gspca_build I tried this, and the output was.. REMOVE the old module if present ERROR: Module gspca does not exist in /proc/modules CLEAN gspca source tree rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \ .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \ *.symvers *.err COMPILE gspca Please Wait ....!! INSTALL gspca in the kernel binary tree mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/ rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/ install: cannot stat `gspca.ko': No such file or directory make: *** [install] Error 1 LOAD gspca in memory FATAL: Module gspca not found. PRINT COMPILATION MESSAGES if ERRORS look kgspca.err make -C /lib/modules/`uname -r`/build SUBDIRS=/home/JOtis/Download/gspca/gspcadir CC=cc modules make[1]: Entering directory `/usr/src/kernels/2.6.27.21-170.2.56.fc10.i686' CC [M] /home/JOtis/Download/gspca/gspcadir/gspca_core.o /home/JOtis/Download/gspca/gspcadir/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory /home/JOtis/Download/gspca/gspcadir/gspca_core.c: In function ‘spca5xx_ioctl’: /home/JOtis/Download/gspca/gspcadir/gspca_core.c:2463: error: implicit declaration of function ‘video_usercopy’ /home/JOtis/Download/gspca/gspcadir/gspca_core.c: At top level: /home/JOtis/Download/gspca/gspcadir/gspca_core.c:2609: error: unknown field ‘owner’ specified in initializer /home/JOtis/Download/gspca/gspcadir/gspca_core.c:2609: warning: initialization from incompatible pointer type /home/JOtis/Download/gspca/gspcadir/gspca_core.c:2611: error: unknown field ‘type’ specified in initializer /home/JOtis/Download/gspca/gspcadir/gspca_core.c: In function ‘spca50x_create_sysfs’: /home/JOtis/Download/gspca/gspcadir/gspca_core.c:2769: error: implicit declaration of function ‘video_device_create_file’ /home/JOtis/Download/gspca/gspcadir/gspca_core.c:2780: error: implicit declaration of function ‘video_device_remove_file’ /home/JOtis/Download/gspca/gspcadir/gspca_core.c: In function ‘spca5xx_probe’: /home/JOtis/Download/gspca/gspcadir/gspca_core.c:4301: error: incompatible types in assignment make[2]: *** [/home/JOtis/Download/gspca/gspcadir/gspca_core.o] Error 1 make[1]: *** [_module_/home/JOtis/Download/gspca/gspcadir] Error 2 make[1]: Leaving directory `/usr/src/kernels/2.6.27.21-170.2.56.fc10.i686' make: *** [default] Error 2 I do not know what any of these errors mean or why they were caused, can anyone help me install this driver? |
Quote:
I suggest you look at the output of Code:
zgrep GSPCA /proc/config.gz If neccessary, just do Code:
modprobe gspca_pac207 |
Quote:
I am getting the following output from "zgrep GSPCA /proc/config.gz" gzip: /proc/config.gz: No such file or directory And it also says modprobe is not a command |
JOtis02,
You need to be root or use sudo to modprobe. The command is in /sbin zgrep GSPCA /proc/config.gz failed as your kernel does not export its config file in /proc Thats a kernel build time option, it does not affect how it works. Try Code:
modprobe -l | grep spca |
Quote:
If my analysis is correct (and you are indeed using a 2.6.27 kernel), you should be able to do Code:
grep GSPCA /boot/config-2.6.27.21-170.2.56.fc10.i686 If the driver is built as a module, it will, as pointed out above, show up in Code:
/sbin/modprobe -l | grep pac207 Code:
/sbin/modprobe | grep pac207 Code:
/sbin/modprobe gspca_pac207 Code:
dmesg | grep -iC5 video |
I am using fedora FC10 with 2.6.29.3-60.fc10.x86_64 with ID 0c45:613c Microdia PC Camera (SN9C120).
Tried to install to gspca (as root) from http://mxhaard.free.fr/spca50x/Investigation/Gspca/ It came up with error: # ./gspca_build REMOVE the old module if present ERROR: Module gspca does not exist in /proc/modules CLEAN gspca source tree rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \ .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \ *.symvers *.err COMPILE gspca Please Wait ....!! INSTALL gspca in the kernel binary tree mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/ rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/ install: cannot stat `gspca.ko': No such file or directory make: *** [install] Error 1 Followed the thread here and checked: modprobe -l | grep spca Shows: /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_spca561.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_pac7311.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_spca501.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_t613.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_tv8532.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_finepix.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_mars.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_vc032x.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_sonixj.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_stk014.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_sonixb.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/stv06xx/gspca_stv06xx.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_ov519.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_conex.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_spca506.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_pac207.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_spca508.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_zc3xx.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/m5602/gspca_m5602.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_main.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_sunplus.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_spca500.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_ov534.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_spca505.ko /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_etoms.ko grep GSPCA /boot/config-2.6.29.3-60.fc10.x86_64 Shows: CONFIG_USB_GSPCA=m /sbin/modprobe -l | grep pac207 shows: /lib/modules/2.6.29.3-60.fc10.x86_64/kernel/drivers/media/video/gspca/gspca_pac207.ko dmesg | grep -iC5 video Shows: Linux video capture interface: v2.00 sn9c102: V4L2 driver for SN9C1xx PC Camera Controllers v1:1.47pre49 usb 2-2: SN9C120 PC Camera Controller detected (vid:pid 0x0C45:0x613C) I am not sure if everything is OK. I cannot use webcam in skype or not even in amsn. In skype it says "No devices found". In amsn it says "Cannot display the webcam's image. Make sure your webcam is well plugged and installed. no grabber device available" Another thing I noticed that when I try to open Cheese it flashes once and nothing happens. Any help is greatly appreciated!!! Cheers |
sanjaydebnath,
Code:
Linux video capture interface: v2.00 Check skype to see if it wants Video For Linux v1 or v2 |
Hi NeddySeagoon
Quote:
|
With cheese, I am getting:
cheese ** (cheese:3598): WARNING **: Unable to connect to dbus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. ** (cheese:3598): CRITICAL **: dbus_g_connection_register_g_object: assertion `connection != NULL' failed ** (cheese:3598): CRITICAL **: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed ** (cheese:3598): CRITICAL **: dbus_g_proxy_call: assertion `DBUS_IS_G_PROXY (proxy)' failed |
Skype is known to have problems with v4l, but it does not look like skype is the problem here. You might have an access or security error preventing you from correctly reading from the video capture device.
To see the permissions, look at the output of “ls -l /dev/video0” where video0 is the name of your capture device. |
I found that this command loads the necessary libraries and enables the webcam to work with skype. The brightness settings are slightly off, is there a way to adjust brightness levels of the webcam? Skype does not appear to have a brightness control option.
D_PRELOAD=/usr/lib/liv4/v42convert.so skype |
All times are GMT -5. The time now is 05:18 PM. |