[linux-avc2210k] Re: segfault when running avcctrl

  • From: John Dally <john@xxxxxxxxxxxx>
  • To: linux-avc2210k@xxxxxxxxxxxxx
  • Date: Thu, 6 Apr 2006 20:28:45 +0100

Ok added that udev entry, but no device is created - I wonder if it's because 
of the usb id:-
Bus 002 Device 005: ID 03f3:008b Adaptec, Inc. 

From init.c it seems to be looking for 0088 or 008c rather than 008b??

        Cheers

                John

On Thu, 06 Apr 2006 20:06:15 +0100
Dr J A Gow <J.A.Gow@xxxxxxxxxxxxxxxxx> wrote:

> Ok, I forgot to tell you all something!
> 
> The device is probably working. The device registers as a different name and 
> udev will create the required /dev/avcapX node :- providing you add the 
> following line to /etc/udev/rules.d/10-local.rules (this is what I forgot to 
> mention):
> 
> KERNEL=="avc2x10k*",  NAME="avcap%m", GROUP="<whatever-your-group-is"
> 
> Then restart udev by typing 'udevstart' at root.
> 
> Replug the device, and the avcap0 device should appear. It may be worth
> checking the permissions and changing them if necessary. Then avcctrl will 
> run.
> 
>       John.
> 
> 
> 
> 
> 
> 
> 
> 
> John Dally wrote:
> > OK - I now have the device and have my next problem, which may well be 
> > caused by my misuse of the tools. Are there docs how to use them anywhere? 
> > Here is what I've tried...
> > 
> > I've put the firmware in place:-
> > ls /var/lib/firmware
> > avcuwm1n.ux  avcuwm1p.ux  avcuwm2n.ux  avcuwm2p.ux  avcuwram.ux
> > 
> > I've created the device with:-
> > mknod /dev/avcap0 c 199 0
> > chmod a+rw /dev/avcap0
> > 
> > I get the following in /var/log/messages when I plug in the device and 
> > modprobe avc2210k:-
> > Apr  6 18:52:47 jdally usb 2-6: new high speed USB device using ehci_hcd 
> > and address 7
> > Apr  6 18:52:48 jdally usb 2-6: configuration #1 chosen from 1 choice
> > 
> > Apr  6 18:52:53 jdally AVC2x10K : MPEG capture driver starting
> > Apr  6 18:52:53 jdally usbcore: registered new driver avc2x10k
> > 
> > Which looks promising, but when I run avcctrl with -v -i 0 - I get:-
> > 
> > lib init
> > AVCCONFInit running
> > retrieve int array
> > string =1,2
> > got int array rc=0
> > retrieve int array
> > string =3,4
> > got int array rc=0
> > error handler init running
> > aarg
> > DEVOpenDevice - dpath=|/dev/avcap0|  <-- extra debug I added to find out 
> > which device is used
> > error: unable to open device (null)
> > lib term
> > 
> > 
> >     Any ideas??
> > 
> >             Cheers
> > 
> >                     John
> > 
> > 
> > 
> > 
> > 
> > 
> 
> 

Other related posts: