ts-7000
[Top] [All Lists]

[ts-7000] Re: Can't get USB Webcam to work in tskernel-2.4.26-ts11

To:
Subject: [ts-7000] Re: Can't get USB Webcam to work in tskernel-2.4.26-ts11
From: "jcunningham63" <>
Date: Mon, 18 Jun 2007 02:46:26 -0000
--- In  David Hawkins <> wrote:

> In 2.4 you need to manually create the /dev/ nodes (they're
> eventually part of your base filesystem). In 2.6 udev and
> scripts can be used to automatically create them.
> 
> Check out; man mknod
> 
> mknod /dev/video c $major $minor
> 
> where major and minor are as-expected by the video
> driver.
> 
> Dave
>

Hi Dave,

Thanks for the info. I'm back and working on this problem again. I've
tried creating /dev/video and /dev/video0 using mknod with major=81
and minor=0, having obtained these after googling a bit: I don't know
if they're right and I don't know how to tell what they should be
otherwise. 

Here's the status:

# uname -a
Linux ts7200 2.4.26-ts11 #7 Sun Jun 17 17:08:52 PDT 2007 armv4l GNU/Linux

I am using the videodev and pwc drivers that came with this kernel. I
tried applying the patch
http://www.saillard.org/linux/pwc/patches/linux-2.4.27_pwc-10.0.4.patch
but this is against the 2.4.27 kernel and I couldn't find one for
2.4.26 (other than applying it by hand - which I considered and
rejected because of high likelihood of making mistakes with that
number of changes). Still, I believe I read on this list and elsewhere
that this version of the drivers should work with my camera which is a
Philips 900. 

Both drivers load fine. Here's the output:

Linux video capture interface: v1.00                                 
                    
pwc Philips webcam module version 9.0.2-unofficial loaded.
pwc Supports Philips PCA645/646, PCVC675/680/690,
PCVC720[40]/730/740/750 & PCVC830/840.    
pwc Also supports the Askey VC010, various Logitech Quickcams, Samsung
MPC-C10 and MPC-C30, 
pwc the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite
VCS-UC300 and VCS-UM100.  
usb.c: registered new driver Philips webcam                          
                      

Seems like it should work. The way I am trying to test it is with
setpwc-1.2 which I compiled using the same toolchain. Setpwc runs
without arguments:

:setpwc-1.2# ./setpwc
setpwc v1.2, (C) 2003-2006 by 

But if I attempt to read the state of the camera I get this:

:setpwc-1.2# ./setpwc -p
setpwc v1.2, (C) 2003-2006 by 
Error while accessing device /dev/video0: No such device

Yet, 

:setpwc-1.2# ls -l /dev/video*
crw-rw-rw-  1 root root 81, 0 Jun 17 19:28 /dev/video
crw-rw-rw-  1 root root 81, 0 Jun 17 17:47 /dev/video0

I also wrote a program using the PWC API that reads the camera and it
fails when it tries to use /dev/video0 as well. Both my program and
setpwc work fine on my Gentoo desktop (2.6.19 kernel) with the same
camera. 

So I am stumped. Any help trying to figure out how to make this work
would be *greatly* appreciated. 

Regards,
Jeff




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU