Koozali.org: home of the SME Server

Problems installing USB webcam

turbine2

Problems installing USB webcam
« on: December 09, 2005, 11:17:28 AM »
Hi there, I wonder if anyone can help me. I'm trying to install a USB webcam on my server. I've been trying to follow the guide at http://www.vanhees.cc/index.php?module=ContentExpress&func=display&ceid=4 but I'm running into problems right at the start.

I've plugged the camrea in (Trust SpaceCam 150 portable) which according to the link on http://lea-linux.org/hardware/webcam.php3 is OV511 type camrea (using http://alpha.dyndns.org/ov511/cameras.html to check).

Using SSH and the root account I've put in the two commands modprobe videodev and then modprobe ov511. At the time I didn't get any feedback however using the -v option it does list some information.

Next I installed vidcat successfully.

I ran the command vidcat -d /dev/video0 -s 320x240 > test.jfif but that failed reporting that "can't open device /dev/video0". I've tried the other /dev/video devices lists in /dev but they all get the same response.

Phpsysinfo does list USB camera in "Hardware information" so I think that it's working. I know the camrea works on a simalar machine under XP so the camera itself is working.

Any ideas where I'm going wrong or what I should be looking at?

TIA

David

turbine2

Problems installing USB webcam
« Reply #1 on: December 09, 2005, 11:26:14 AM »
Forgot to say, this is SME Server 6.0.1-01

turbine2

Problems installing USB webcam
« Reply #2 on: December 10, 2005, 10:50:51 AM »
I mayhave got a little further with this (well, not further, but identified part of my problem).

I may have misunderstood the part about the camera driver and been using ov511 when what I actually needed was SN9C102.

I've downloaded the .tar file and extracted it but it wants me to compile it. I'm following the instructions in the readme but I'm not getting a lot of joy.

The first command is MAKE CLEAN. This fails with

make -C /lib/modules/uname -r/build M=/root/sn9c102-1.24 clean
make: *** /lib/modules/2.4.20-18.7/build: No such file or directory.  Stop.
make: *** [clean] Error 2

Now, I've been looking at the structure a bit here (little knowledge, dangerous, I know). I opened the makefile and there's a reference to KDIR = /lib/modules/$(KVERSION)/build

If I look in /lib/modules there is a directory there called build, or at least I think it's actually a pointer to a different directory as using ls -l
I get build -> ../../../usr/src/linux-2.4.20-18.7 but here's a catch, under /usr/src/ I don't have a linux-2.4.20-18.7 but I do have a redhat, and under redhat I do have BUILD.

Do I need to edit the makefile file so that instead of
/lib/modules/$(KVERSION)/build it has /usr/src/redhat/BUILD instead? Or do I need to do something that makes the /lib/modules/$(KVERSION)/build point to ../../../usr/src/redhat or ../../../usr/src/redhat/BUILD instead? If so, how
do I do that?

Cheers

David