Good afternoon! You do not prompt how it compiled under a kernel 2.4.20? Thanks. SIMPLY I now try to compile the driver under the videocamera on a router! (Creative pc-CAM 600).
Printable View
Hey you did a great job !
I have a cheap webcam and it is working on the wl500 !
However, i tested it with palantir, and after sometime running the wl500 runs out of memory....Code:Dec 25 20:39:44 kernel: usb.c: registered new driver spca5xx
Dec 25 20:39:44 kernel: drivers/usb/spca5xx.c: USB SPCA5XX camera found. Pixart PAC207BCA
Dec 25 20:39:44 kernel: drivers/usb/spca5xx.c: [spca5xx_probe:5480] Camera type GBRG
Dec 25 20:39:44 kernel: drivers/usb/spca5xx.c: [spca5xx_getcapability:1765] maxw 352 maxh 288 minw 160 minh 120
Dec 25 20:39:44 kernel: drivers/usb/spca5xx.c: spca5xx driver 00.60.00 registered
I tested again your driver together with palantir 2.6, and it seems to work OK with this version. However i had it only running about 1 hour, i'll give it a long test run soon...:cool:
This drivers are exactly, what I needed! I wanted to try some cheaper webcams with my WL-500gP, and now it seems, that there are a lot of cheap cameras I can buy and use!
Btw, I have one question:
does maximum resolution of taken images depend on webcam (hardware) or depend on this drivers? I tried spca5xx with borrowed Soledo webcam (Model NO 300S-F, 0x04fc 0x0561 EzCam III spca561a
http://www.soledo.cz/?produkty=kamer...ukt=webcam-led
) and realized, that it has the same maximum resolution (352x288) like max2950's webcam above, instead of having 640x480:
So, is resolution question of drivers?Code:Dec 25 20:39:44 kernel: drivers/usb/spca5xx.c: [spca5xx_getcapability:1765] maxw 352 maxh 288 minw 160 minh 120
Does anybody knows?
Regards, JFK
In most of the cases the hardware is limiting the resolution, but sometimes it might be the drivers to...:p
I'm trying this is my wl-500gx but it dosen't work. What are the steps involved in compiling this driver? What do i need in my router?
Toze
You need olegs firmware and an usb drive where you copy the driver. In addition you need to create a post-mount script that loads the driver after boot.
Could you recompile the LE driver (the regular one from the first post crashes whole wl500gX when I try to use spcaserv or palantir) to support vendor/device 0x045c/0x6001 - Genius QuickCam NB please ?
I currently don't have a computer to setup the proper workspace to crosscompile it myself.
And another try with spcaservCode:[admin@router root]$ insmod spca5xx.o
Using spca5xx.o
[admin@router root]$ dmesg
...
usb.c: registered new driver spca5xx
drivers/usb/spca5xx.c: USB Genius VideoCAM NB found. SONIX sn9c102 + Tas 5110
drivers/usb/spca5xx.c: [spca5xx_probe:5480] Camera type SN9C
drivers/usb/spca5xx.c: [spca5xx_getcapability:1765] maxw 352 maxh 288 minw 160 minh 120
drivers/usb/spca5xx.c: spca5xx driver 00.60.00 registered
[admin@router root]$ wget http://ibook.mdr.local/~ondra/palantir
Connecting to 10.20.30.3[10.20.30.3]:80
palantir 100% |*****************************| 229 KB 00:00 ETA
[admin@router root]$ chmod 755 palantir
[admin@router root]$ ./palantir -d /dev/video
Mar 12 17:04:53 [config] Default config file `/usr/local/share/palantir/palantir.conf' not found
Mar 12 17:04:53 [main] -- palantir 2.6 starting --
Mar 12 17:04:53 [main] Definitions for 0 devices found
Mar 12 17:04:53 [main] No serial port specified
Mar 12 17:04:53 [main] No named pipe specified
Mar 12 17:04:54 [video] Card: Genius VideoCAM NB (/dev/video)
Mar 12 17:04:54 [video] Capabilities: 1 (capture )
Mar 12 17:04:54 [video] Size: (160x120)-(352x288)
Mar 12 17:04:54 [video] Channel no. 0 ('SN9C102') tuners: 0, flags: 0, type: 2, norm: 65535
Mar 12 17:04:54 [video] brightness: 32768 hue: 0 colour: 0
Mar 12 17:04:54 [video] contrast: 32768 whiteness: 0
Mar 12 17:04:54 [video] depth: (24) palette: 4
Mar 12 17:04:54 [video] Actual capture box is 320x240 (requested 320x240)
Mar 12 17:04:54 [video] Video buffer size: 2457616, frames: 2
Mar 12 17:04:54 [audio] Can't open audio device /dev/dsp
Mar 12 17:04:54 [main] Audio initialization failed. Audio channel will be disabled
Mar 12 17:04:54 [main] Listening on port 3000
Mar 12 17:04:54 [main] Control queue timeout set to 30 s
Connection closed by foreign host.
Code:[admin@router root]$ chmod 755 spcaserv
[admin@router root]$ ./spcaserv -d /dev/video -f jpg -s 320x240
size width: 320 height: 240
Spcaview version: 1.1.4 date: 27:11:2005 (C) mxhaard@magic.fr
video /dev/video
Camera found: Genius VideoCAM NB
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=24 palette=4
Bridge found: SN9C102
is_spca SPCA505
is_spca SPCA506
is_spca SPCA501
is_spca SPCA508
is_spca SPCA504
is_spca SPCA500
is_spca SPCA504B
is_spca SPCA533
is_spca SPCA504C
is_spca SPCA561
is_spca SPCA536
is_spca SN9C102
StreamId: 5 Camera
try palette 21 depth 8
Couldnt set palette first try 21
Damned second try fail
try palette 15 depth 12
Available palette 15
try palette 4 depth 24
Available palette 4
try palette 3 depth 16
Available palette 3
try palette 5 depth 32
Available palette 5
probe size in
skip size 640 x 480
skip size 384 x 288
Available Resolutions width 352 heigth 288
Available Resolutions width 320 heigth 240
Available Resolutions width 192 heigth 144
Available Resolutions width 176 heigth 144
Available Resolutions width 160 heigth 120
Format asked 15 check 8
VIDIOCSPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=12 palette=15
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=12 palette=15
grabbing method default MMAP asked
VIDIOCGMBUF size 2457616 frames 2 offets[0]=0 offsets[1]=1228808
Connection closed by foreign host.
is it possible to modify the spca5xx driver to support VGA 640x480 resolution? Has anybody a wl-500gP compiled object which supports VGA?
is it stable??
does that mean, I have to create scripts to do the downloading of the image, and then to host it on a website of somesort from the router? because its not part of the original webcam support?
Yes, spca5xx is working ok. It gives you more even cheaper webcam options not part of the original stock firmware.
I do not understand your question. What are you trying to achieve?
Mmm...could someone who already has the toolchain set up recompile the driver for me with Vendor ID 0x0C45 and Device ID 0x6001 ? The module posted doesn't seem to pick it up, it's a Genius VideoCAM NB with the sn9c102 chip.
does it crash is what I was asking................??
is it 24/7 stable......?
I try this module but without success :
pwc Philips webcam module version 9.0.2 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.
pwc Default image size set to vga [640x480].
usb.c: registered new driver Philips webcam
pwc Philips webcam decompressor routines version 9.0-BETA-2
pwc Supports all cameras supported by the main module (pwc).
pwc Adding decompressor for model 645.
pwc Adding decompressor for model 646.
pwc Adding decompressor for model 675.
pwc Adding decompressor for model 680.
pwc Adding decompressor for model 690.
pwc Adding decompressor for model 720.
pwc Adding decompressor for model 730.
pwc Adding decompressor for model 740.
pwc Adding decompressor for model 750.
usb.c: registered new driver spca5xx-le
Unhandled kernel unaligned access in unaligned.c::emulate_load_store_insn, line 481:
$0 : 00000000 1000fc00 c0123010 00000001 08a2046d 00000000 00000001 00000003
$8 : 81b80600 81a3f2c0 c0139750 c0139728 c01230b4 2abb24a8 00000000 c01396e6
$16: 81b80600 c0131224 81a3f2c0 00000001 c0139628 00000000 81b80600 00000000
$24: 00000000 2ac14e20 80b2a000 80b2bd80 c009ee40 c008c47c
Hi : 00000000
Lo : 00000040
epc : c012d608 Not tainted
Status: 1000fc03
Cause : 00000010
Process insmod (pid: 219, stackpage=80b2a000)
Stack: 00000001 0000003e 1005e640 80010d6c 80002488 00003e52 c0139608
c0131224 81a3f2c0 c008c47c 0000003c 0000003e 80010ddc 00000060 81b80628
00000000 c008c2f4 00000000 81b80600 c008bfa0 80b20220 0000000a 80a68000
10048060 1005e640 c008c024 c008c2f4 00000000 81cbec00 c008bfa0 81cbef24
0000000e 81cbee00 c008bfa0 c008c060 c008c024 800111ec 00000000 000100a0
00a10090 ...
Call Trace: [<80010d6c>] [<80002488>] [<c0139608>] [<c0131224>] [<c008c47c>]
[<80010ddc>] [<c008c2f4>] [<c008bfa0>] [<c008c024>] [<c008c2f4>] [<c008bfa0>]
[<c008bfa0>] [<c008c060>] [<c008c024>] [<800111ec>] [<c009ee48>] [<c008bfa0>]
[<c009ee48>] [<c008b1a8>] [<c0139608>] [<c008b108>] [<c009aec4>] [<c0130be8>]
[<c012dba4>] [<8018c1ac>] [<800d86c8>] [<800125bc>] [<800301b8>] [<c0123060>]
[<c0130ca0>] [<800085c4>]
Code: 8c8400e8 3c02c012 24423010 <8c83000c> 8c720000 c0440000 00862021 e0440000 1080fffc
It is possible make it work with newest Oleg firmware?
Yes, the spca5xx.o driver works with Oleg. For me the spca5xx-le.o does not work. I am using Oleg 7g.