Re: [Spca50x-devs] gspcav1-20071224 Sonix (sn9c1xx) embedded problem
- Date: Sat, 29 Mar 2008 09:00:47 -0700
- From: Dan Pattison <dan.pattison@xxxxxxxxxxx>
- Subject: Re: [Spca50x-devs] gspcav1-20071224 Sonix (sn9c1xx) embedded problem
I have been examining the differences between the 0.57.06LE driver and
the 01.00.20 driver that pertains to the SONIX sn9cxxx/hv7131 portions.
I am trying to find any differences in the two drivers that may be
causing the delay when ServFox is first run. I am running ServFox in an
init script with these arguments:
start_daemon /usr/local/sbin/servfox -s 640x480 1>/dev/null
Using a O-Rite MC311P camera the 0.57.06LE driver works with ServFox
causing no delay when ServFox is started.
Using a O-Rite MC311P camera the 01.00.20 driver works with ServFox
causing a 2 minute (approx) delay when ServFox is started.
I have tried copying some of the functions from the old driver over top
of the new driver, but so far nothing has stopped the delay, although
the camera still works. Perhaps the driver author can comment on this?
Why might the delay happen with the new driver and not the old driver
with everything else being equal? What functions are different that may
be causing a timeout? Can anyone offer a suggestion or give any advise?
Please I would like to have this camera work with the new driver without
causing a delay when starting ServFox.
Dan Pattison wrote:
> Hello List:
> I am using Etrax MCM embedded processor running 2.6.19 kernel. I have
> upgraded the spca driver from version 0.57.06LE to gspcav1-20071224 to
> take advantage of newer cameras available. I use servfox 1.2 to view
> camera output. For testing I use O-Rite MC311P. The camera gets detected
> drivers/usb/media/gspcav1-20071224/gspca_core.c: USB GSPCA camera found.
> SONIX JPEG (sn9c1xx)
> usbcore: registered new interface driver gspca
> drivers/usb/media/gspcav1-20071224/gspca_core.c: gspca driver 01.00.20
> I have servfox set to start automatically on bootup. The problem is, in
> the boot process, the board will freeze for up to two minutes after
> starting servfox. During this time, network activity is non existent and
> even the console shell is stalled. After a time, the board continues to
> boot. This line is the next line to print out in the boot process:
> syslog: Spcaserv Listening on Port 7070
> The board and camera seems to work fine after this.
> This same camera (O-Rite MC311P) works fine with the 0.57.06LE driver
> and servfox, it does not slow down the boot process. Below is console
> output using 00.57.06LE driver.
> drivers/usb/media/spca5xx/spca_core.c: USB SPCA5XX camera found. SONIX
> sn9c102p + Hv7131R
> usbcore: registered new interface driver spca5xx
> drivers/usb/media/spca5xx/spca_core.c: spca5xx driver 00.57.06LE registered
> When using the new gspcav1-20071224 driver:
> If I disable servfox from automatically starting at boot, then sometimes
> when starting servfox manually (after the board has fully booted) the
> board will freeze for up to two minutes and sometimes it will not freeze
> at all. After it comes out of its frozen state, everything seems to work
> just fine. I upgraded servfox to 1.3, still same results. I tried with
> and without USB hub, still same results.
> When I try the new gspcav1-20071224 driver with a LabTec camera:
> drivers/usb/media/gspcav1-20071224/gspca_core.c: USB GSPCA camera
> There is no boot delay whatsoever. I can start and stop and restart
> servfox without any delay. There is no boot delay when servfox is set to
> start on boot.
> Does anyone have a patch available that will fix the freezing/boot up
> delay for SONIX(sn9c1xx) cameras, or have any suggestions that I can try?
> Thank you and,
> Best Regards,
> Dan Pattison
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> Spca50x-devs mailing list
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
Spca50x-devs mailing list