PDA

View Full Version : Configure USB-WEBCAM for Fedora 7



foxrever
24th September 2007, 07:35 AM
Hi,

I wanted install logitech - usb webcam driver for video chatting purpose via MSN or yahoo.
Can somebody help me get an idea and configure it properly for fedora 7 ? please help.

and what would be the perfect IM software for use kind of chatting via fedora 7 ?

Thank you

Dangermouse
24th September 2007, 10:11 AM
Hers one way to install your driver option 6 then option 3

su -
wget http://www.freewebs.com/dnmouse/menu_install.sh
sh menu_install.sh

foxrever
24th September 2007, 10:53 AM
Thanks for the reply. i followed what you asked me to do. according to you're script , that drivers and a software got installed. but when i open the camstream software , seems it doesn't got the device yet. how can i proceed ? please help me dear experts.

Dangermouse
24th September 2007, 11:03 AM
open camstream, then file and then device at top

foxrever
24th September 2007, 11:22 AM
I did as you said. This is what i got,

Applications -> sounds & Video -> camstream -> File -> open viewer --> device ----> NOTHING

Can you help me further , plz ?

Dangermouse
24th September 2007, 11:31 AM
Have you restarted or re plugged the the camera in

coyoteboy
24th September 2007, 11:46 AM
Doesnt appear to work for me either, no driver appears in the device box, despite restart and unplugging/replugging.

foxrever
24th September 2007, 11:47 AM
Yes i restarted the machine , re plug the device as well. but it wasn't in the device list. please help me.

Dangermouse
24th September 2007, 01:05 PM
Not all cameras are supported by these drivers, what are your cameras and i will see what i can do

foxrever
24th September 2007, 01:30 PM
mine is Logitech Quickcam Express

coyoteboy
24th September 2007, 02:59 PM
Quickcam Chat
http://www.logitech.com/index.cfm/480/3383&cl=gb,en

Would be my luck to get one that didn't work! Ta!

rbo83
24th September 2007, 09:59 PM
Here is a site for webcam drivers, including logitech. But you need to know which chipset
your cam is built with. Look for 'quickcam express' (Z-STAR chipset as far as I can tell)

http://mxhaard.free.fr/spca5xx.html

coyoteboy
25th September 2007, 11:50 AM
Logitech 119 0x046d 0x08a3 QuickCam Chat zc030x ???? Test Jpeg spca5xx/LE gspca v4l1/v4l2 *

Not sure what that means but I'll look into it!

Dangermouse
25th September 2007, 12:22 PM
Refer to this post i made a update which may help, scroll to bottom
http://forums.fedoraforum.org/forum/showthread.php?t=167097

coyoteboy
25th September 2007, 12:55 PM
Nowt with an unplug-replug. Will try a restart later when i can shut down some processes. Thanks for the help so far!

coyoteboy
29th September 2007, 01:06 PM
How do i get the spca driver to install? The rpm installs but it doesnt seem to load any modules etc when i insert the camera?

rbo83
29th September 2007, 04:53 PM
The way I got spca5xx to work was to re-compile the spcaxx module. This is what I did from scratch :

# Got the kernel sources and installed them. Did this as 'root' :
# The following x's should be the version of the kernel you have installed. You can find it in /boot/
k=kernel-2.6.xx-x.xx_FC7.src.rpm
# The following should be the site where you get your sources from
w=http://......../fedora.redhat/linux/core/updates/7/SRPMS
# Now download it (approx 45 meg) to the current directory
wget $w/$k
# Now install the kernel source rpm :
rpm -i $k

# Install the kernel-devel package to allow module re-compiling ability for Fedora
# Run this as root
yum install kernel-devel

# Now you are ready to re-compile and install the webcam spca5xx module.
# First, get the webcam tar.gz module. As of this writing, the latest was gspcav1-20070508
wc=gspcav1-20070508
wget http://mxhaard.free.fr/download.html/$wc.tar.gz
# Extract the spca5xx files
tar xfz $wc.tar.gz

# Go to the directory we just extracted :
cd $wc
# Re-compile and install the new kernel webcam module:
make
make install
# At this point the new module name is 'gspca'. So load the new gspca module:
/sbin/modprobe gspca
# Check that it has been loaded correctly with :
/sbin/lsmod | grep gspca
# Check that the device has been created with :
ls -lad /dev/video*

# NOTE: no entry needs to be added to /etc/modprobe.conf,
# the gspca module will load automatically after reboot

# Clean-up after ourselves :
cd ..
rm -fdr $wc

This is derived from another post on this site

coyoteboy
29th September 2007, 07:16 PM
I cant seem to locate the kernel source for my kernel? Found them for other Fs but not 7 (22.5-76). I hate the fact that fedora doesnt ship with source, it makes loads of things I have had to do very problematic lol.

coyoteboy
29th September 2007, 08:37 PM
Woot woot to Rbo83 - eventually I managed, after significant symbolic linking and finding a newer kernel source using yumbuilder --source kernel to recompile the module, low and behold inserting the cam all works wonders :)

rbo83
30th September 2007, 06:03 PM
Glad I could help. This is where I get my sources from :

http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/source/SRPMS/

foxrever
4th October 2007, 12:16 PM
ok guys, as far as you experienced what would be best and easy to configure WEBcam for fedora? please let me know , because i wanna migrate whole thing to MS-windows to fedora/linux since i am semi linux guy. Its easy to use all in one platform.please , i need you're kind help.

rbo83
4th October 2007, 12:53 PM
Since you are on the Fedora forum, I am assuming you know Fedora is a 'bleeding edge' distribution and does not include stuff that would need to be licensed. That said, if your webcam does not work out-of-the-box in your Fedora installation, some more technical work will be required on your part. If you are computer- and linux- technically capable, it would be helpful if you start with listing exactly what you have currently installed, your hardware details, and whatever particular difficulty you are experiencing. Then maybe we can help you better.

georgeneil
30th November 2007, 10:26 AM
Hello,
I am trying to install gspca driver for fedora 7.

[root@localhost ~]# uname -r
2.6.21-1.3194.fc7

I have done the following steps.

[root@localhost gspcav1-20070508]# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/root/Download/gspcav1-20070508 CC=cc modules
make[1]: Entering directory `/usr/src/kernels/2.6.23.1-21.fc7-i686'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-21.fc7-i686'

[root@localhost gspcav1-20070508]# ls
changelog Etoms gspca_core.c~ gspca.ko gspca.o Mars-Semi Sonix Transvision
Conexant gspca_build gspca_core.o gspca.mod.c Makefile Module.symvers Sunplus utils
decoder gspca_core.c gspca.h gspca.mod.o Makefile.kld Pixart Sunplus-jpeg Vimicro

[root@localhost gspcav1-20070508]# make install
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/
/sbin/depmod -ae

[root@localhost gspcav1-20070508]# modprobe videodev

[root@localhost gspcav1-20070508]# modprobe gspca
FATAL: Error inserting gspca (/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/usb/media/gspca.ko): Unknown symbol in module, or unknown parameter (see dmesg)

[root@localhost gspcav1-20070508]# dmesg | tail
......
usb 3-1: USB disconnect, address 2
gspca: Unknown symbol strncpy
gspca: Unknown symbol paravirt_ops
gspca: Unknown symbol kmalloc_caches
gspca: Unknown symbol per_cpu__current_task

What may be the possible problems ...and how could i rectify that..?
--
Regards

George Neil

rbo83
30th November 2007, 02:27 PM
It appears that some C compiler functions are not found/defined. It could be your gcc compiler version or some missing header files in your C library or the Kernel source.

I am unfortunately not that proficient with the kernel compiler environment. Maybe someone else here can help you with this. Did you try posting to mxxhaard's site ?

FriedChips
30th November 2007, 02:39 PM
Hello,
I am trying to install gspca driver for fedora 7.

[root@localhost ~]# uname -r
2.6.21-1.3194.fc7

I have done the following steps.

[root@localhost gspcav1-20070508]# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/root/Download/gspcav1-20070508 CC=cc modules
make[1]: Entering directory `/usr/src/kernels/2.6.23.1-21.fc7-i686'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-21.fc7-i686'

[root@localhost gspcav1-20070508]# ls
changelog Etoms gspca_core.c~ gspca.ko gspca.o Mars-Semi Sonix Transvision
Conexant gspca_build gspca_core.o gspca.mod.c Makefile Module.symvers Sunplus utils
decoder gspca_core.c gspca.h gspca.mod.o Makefile.kld Pixart Sunplus-jpeg Vimicro

[root@localhost gspcav1-20070508]# make install
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/
/sbin/depmod -ae

[root@localhost gspcav1-20070508]# modprobe videodev

[root@localhost gspcav1-20070508]# modprobe gspca
FATAL: Error inserting gspca (/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/usb/media/gspca.ko): Unknown symbol in module, or unknown parameter (see dmesg)

[root@localhost gspcav1-20070508]# dmesg | tail
......
usb 3-1: USB disconnect, address 2
gspca: Unknown symbol strncpy
gspca: Unknown symbol paravirt_ops
gspca: Unknown symbol kmalloc_caches
gspca: Unknown symbol per_cpu__current_task

What may be the possible problems ...and how could i rectify that..?
--
Regards

George Neil

have you tried the uvcvideo driver as I suggested in your other post?

georgeneil
3rd December 2007, 05:46 AM
Hello rb083,
It would be very helpful if you can give me the details of the GCC compiler version and kernel version which you used while installing gspca driver in fedora core 7.

stevea
3rd December 2007, 06:24 AM
You don't need the GCC version - this thread is idiotic and going into the weeds.

A/ You do NOT need kernel source to build a driver. Just:
yum -y kernel-devel kernel-headers
If you don't have the development tools then also
yum -y groupinstall "Development Tools"

B/ Whichever gcc came with your fedora rev willl build kernel modules.

C/ I already answered this question in a duplicate thread here
http://forums.fedoraforum.org/forum/showthread.php?t=173950&highlight=paravirt_ops
This guy's kernel does not even contain some symbols used by that driver.
strcpy, paravirt_ops etc.
He needs a driver for his kernel rev, or he needs to switch kernels.

georgeneil
3rd December 2007, 07:13 AM
To check the reliability of the build environment i have i just tried the basic hello programs available from

http://www.linuxdevcenter.com/pub/a/linux/2007/07/05/devhelloworld-a-simple-introduction-to-device-drivers-under-linux.html?page=2

there even the Hello, World! Using /proc program is giving me the resuls as follows

[root@localhost hello_proc]# uname -rm
2.6.21-1.3194.fc7 i686

[root@localhost hello_proc]# gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)

[root@localhost hello_proc]# make
make -C /lib/modules/2.6.21-1.3194.fc7/build M=/root/Download/hello_proc modules
make[1]: Entering directory `/usr/src/kernels/2.6.23.1-21.fc7-i686'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-21.fc7-i686'

[root@localhost hello_proc]# insmod ./hello_proc.ko
insmod: error inserting './hello_proc.ko': -1 Unknown symbol in module

[root@localhost hello_proc]# dmesg | tail
hello_proc: Unknown symbol strcpy
hello_proc: Unknown symbol strlen

What you think are the problems..?

FriedChips
3rd December 2007, 08:06 AM
use modprobe instead of insmod, as far as I know insmod is depricated and possibly no longer works.

edit: and don't you also need to do "make install" first :confused:

rbo83
3rd December 2007, 02:45 PM
georgeneil,

stevea is probably right, but it might be a good idea to ascertain the source of the problem before doing anything else.

After quick check, I found your undefined symbols in the kernel source. In my kernel source rpm, they are located in the /usr/src/kernels/2.6.xxx......i686/include/asm-i686 directory.

A clue is : your paravirt_ops error is defined by the CONFIG_PARAVIRT parameter - see file /boot/config-2.6.........FC7).

Other clue : 'hello world' test uses 2.6.21-1.3194.fc7 i686 and
the message : Entering directory '/usr/src/kernels/2.6.23.1-21.fc7-i686' is a different source directory (2.6.21 vs 2.6.23). So it has probably nothing to do with the gspca driver.

It is possible that :

1-) The 'make' is not using the right source directories
2-) Your kernel headers / source are corrupted (strcpy and strlen are pretty fundamental C functions)
3-) The driver uses symbols not compiled in your kernel
4-) you are running a kernel version different from the source you are compiling
5-) the damned martians

So first verify that your kernel headers and source match your running fedora version, and that they are not corrupted (try to find the missing symbols in your source).

stevea, am I reading this wrong?

Hope this helps

armandocl
24th December 2007, 09:41 AM
Bus 001 Device 001: ID 0000:0000
lsusb

Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 002 Device 002: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam
Bus 002 Device 001: ID 0000:0000


dows my camera works ?

syedsmt
24th December 2007, 10:24 AM
Is any one know this error , what do I need to solve this problem. I already yum install kernel-devel
for the Fedora 7. But still give error.

[root@localhost gspcav1-20070508]# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/root/gspcav1-20070508 CC=cc modules
make: *** /lib/modules/2.6.21-1.3194.fc7/build: No such file or directory. Stop.
make: *** [default] Error 2

[root@localhost gspcav1-20070508]# make install
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

rbo83
24th December 2007, 03:21 PM
You either have the wrong kernel-devel or kernel-headers, or both, version installed. They do not match your running system. Check which kernel you are running at the console :

dmesg | grep 'Linux version'

Compare with the error message in your post where it says it cannot find
/lib/modules/2.6.21-1.3194.fc7/build with which version is in /lib/modules

rbo83
24th December 2007, 03:24 PM
To armandocl : If it does not work out of the box, then check the device id of your camera 0ac8:301b at the gspca web site as described earlier in this post.

armandocl
28th December 2007, 03:33 AM
To armandocl : If it does not work out of the box, then check the device id of your camera 0ac8:301b at the gspca web site as described earlier in this post.


thanks for the info.


:)

wstahw
3rd February 2008, 10:55 PM
The following device:
Bus 003 Device 003: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam
works fine for me.

I installed gspca rpm and blacklisted zc0301 driver in /etc/modprobe.d/blacklist by
adding the line:

blacklist zc0301