PDA

Bekijk de volledige versie : WebCam - SPCA50x drivers



lada
13-02-2005, 00:16
Hi everyone,
I have recently managed to compile the SPCA50x driver (http://mxhaard.free.fr/download.html) for Asus. The driver claims my camera (Mustek Gsmart Mini2), however when I try to grab a picture using a userland app like videodog (http://planeta.terra.com.br/informatica/gleicon/video4linux/videodog.html ) or palantir (http://www.fastpath.it/products/palantir/) Asus reboots :(

I'm just wondering if maybe someone has also experimented with this driver and made it work... The firmware I'm using is 1.9.2.7-3c (Asus 500gx).

Thanks
LP

lada
13-02-2005, 21:58
Here (http://artax.karlin.mff.cuni.cz/~prosl0am/spca50x.o) is the driver (which I believe is broken, but have tested it only with that Gsmart Mini so far), and here (http://artax.karlin.mff.cuni.cz/~prosl0am/videodog) is the app that should grab images.



insmod spca50x.o
./videodog -x 320 -y 240 -w 3 -d /dev/v4l/video0 -f test.jpg

Could you please try it with your camera? The list of supported cameras is here (http://mxhaard.free.fr/spca5xx.html).

lada
15-02-2005, 21:21
OK, the problem was in some magic MIPS-specific compiler options. Now the driver is working! :D

Download:
http://artax.karlin.mff.cuni.cz/~prosl0am/spca50x.o

It's working fine with palantir
http://wl500g.info/showthread.php?t=1362

and also with manually launched rcamd. How do I "integrate" this driver to Asus and make the "USB Application - Web Camera" work with it?

Oleg
16-02-2005, 13:46
Well, integration means changing web pages, probably httpd variables and modifying rc...
Does it work out of box or you've modifed sources somehow?
I would like to integrate this to the firmware, but I'm busy at the moment. In fact kernel module should be integrated to the kernel sources and should not be separate part.
Could you please make kernel patch?

hugo
16-02-2005, 16:45
this module is developed specificaly to be out of kernel (to avoid pwc mistake??) :o

lada
16-02-2005, 18:51
Does it work out of box or you've modifed sources somehow?
Out of the box. Makefile (http://artax.karlin.mff.cuni.cz/~prosl0am/Makefile) was the only thing that needed some edits.


Could you please make kernel patch?
I'm afraid my little Linux experience does not permit (I am just a hobbyist when it comes to Linux/GNU stuff). Sorry :(

Oleg
16-02-2005, 19:04
this module is developed specificaly to be out of kernel (to avoid pwc mistake??) :o
yes, but adding it to our kernel sources simplifies firmware compiling.

lada
16-02-2005, 21:49
If you integrate it to the firmware, could you please add one new image size option to the web page? My camera happens to support 176x144 instead of 160x120...

If there's anything I could do to help, please let me know (but it has to be something more beginner-like than patching the kernel ;) )

Thank You!

RoofCat
18-02-2005, 08:06
OK, the problem was in some magic MIPS-specific compiler options. Now the driver is working! :D

Download:
http://artax.karlin.mff.cuni.cz/~prosl0am/spca50x.o

I've tried this version of compiled spca50x with my Genius VideoCAM Express V2 (USB ids (0x0458, 0x7004)) with no success (yet?) I got router reboot (or hang) while trying to capture image using mvc application. I have not tried videdog since I got an expression that mvc is using v4l interface for capture, so it should be working. I've also tried to get some debug out of spca50x.o adding debug switch to insmod line with no success - may be debug is not compiled?

I'll try videodog with spca50x.o this weekend and let you know if it helps. It would be really nice to use spca50x.o on asus, so if I can help by trying it wiith my cam - I am ready, let me know

And thank you for your efforts

regards
RoofCat

lada
18-02-2005, 22:48
Debug messages are not compiled to make the module smaller - sorry, I should have mentioned that. Try the "debug" version of the module, which has debug messages included:

artax.karlin.mff.cuni.cz/~prosl0am/spca50x-debug.o

WlanMan
26-02-2005, 20:13
Hi

Thank you for the module compilation :D.
I have also the Genius V2 cam, can you tell me which version of the driver did you compiled ? The last time i tryed it, this cam wasnīt supported as far is needet for all-day operation since it didnīt adjusted the shutter speed for propper brightness controll which is needet for the way the cam works, with no dram and direkt video aray to usb transfers. This makes the framerate heavily light-dependant :mad:.

I am trying it just the moment.

As i suspekted, the picture is unusable, i can hardly recognise anything, spurios pixels and a greyish picuture at all.

Also, Palantir crashes after a short time of operation.

[admin@(none) palantir]$ ./bin/palantir -s 160x120 -m -e
Feb 26 21:18:32 [main] -- palantir 2.5.5-Mips starting --
Feb 26 21:18:32 [main] Definitions for 1 devices found
Feb 26 21:18:32 [main] No serial port specified
Feb 26 21:18:32 [main] No named pipe specified
Feb 26 21:18:33 [video] Card: Genius VideoCAM Express V2 (/dev/v4l/video0)
Feb 26 21:18:33 [video] Capabilities: 1 (capture )
Feb 26 21:18:33 [video] Size: (160x120)-(352x288)
Feb 26 21:18:33 [video] Channel no. 0 ('SPCA561') tuners: 0, flags: 0, type: 2, norm: 0
Feb 26 21:18:33 [video] brightness: 1920 hue: 65 colour: 60368
Feb 26 21:18:33 [video] contrast: 38464 whiteness: 27468
Feb 26 21:18:33 [video] depth: 24 palette: 4
Feb 26 21:18:33 [video] Actual capture box is 160x120 (requested 160x120)
Feb 26 21:18:33 [video] Video buffer size: 4915232, frames: 4
Feb 26 21:18:33 [main] Starting device thread
Feb 26 21:18:33 [main] Listening on port 3000
Feb 26 21:18:33 [main] Control queue timeout set to 30 s
Feb 26 21:18:37 [main] 192.168.1.20:1699 #0: connection accepted, spawning server.
Feb 26 21:18:37 [main] 1 client(s) connected
Feb 26 21:18:37 [main] Capture thread started
Feb 26 21:18:37 [http] 192.168.1.20:1699: video server started
Feb 26 21:18:37 [http] 192.168.1.20:1699: requested URL `/'
Feb 26 21:18:37 [http] 192.168.1.20:1699: User-Agent: Mozilla/5.0 (Windows; U; W
indows NT 5.1; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0
Feb 26 21:18:38 [http] 192.168.1.20:1699: streaming mode: continuous, open loop
Terminated
[admin@(none) palantir]$


This is a fault of the cam support of the driver, not depending on your nice work. I think other better supported cams should work fine with this driver and he should be integrated into the main modified firmware line.

Seems to be a memory leak problem or similar, cause it kills various processes as well.


Feb 26 21:01:06 login[434]: root login on `pts/0'
Feb 26 21:01:28 kernel: usb.c: registered new driver spca50x
Feb 26 21:01:28 kernel: drivers/usb/spca50x.c: spca5xx driver 56.02.06 registered
Feb 26 21:01:43 kernel: hub.c: new USB device 00:04.0-1.2, assigned address 5
Feb 26 21:01:43 kernel: drivers/usb/spca50x.c: USB SPCA5XX camera found. Type Genius VideoCAM Express V2 (SPCA561A)
Feb 26 21:02:48 kernel: Out of Memory: Killed process 442 (videodog).
Feb 26 21:05:17 kernel: usb.c: deregistering driver spca50x
Feb 26 21:05:17 kernel: drivers/usb/spca50x.c: driver spca5xx deregistered
Feb 26 21:05:49 kernel: usb.c: registered new driver spca50x
Feb 26 21:05:49 kernel: drivers/usb/spca50x.c: USB SPCA5XX camera found. Type Genius VideoCAM Express V2 (SPCA561A)
Feb 26 21:05:49 kernel: drivers/usb/spca50x.c: [spca50x_probe:7258] Camera type GBRG
Feb 26 21:05:49 kernel: drivers/usb/spca50x.c: spca5xx driver 56.02.06 registered
Feb 26 21:13:14 kernel: drivers/usb/spca561.h: [spca561_init:515] Find spca561 USB Product ID 7004
Feb 26 21:13:17 kernel: Out of Memory: Killed process 51 (dnsmasq).
Feb 26 21:14:52 kernel: drivers/usb/spca561.h: [spca561_init:515] Find spca561 USB Product ID 7004
Feb 26 21:14:59 kernel: Out of Memory: Killed process 467 (palantir).
Feb 26 21:15:00 kernel: Out of Memory: Killed process 468 (palantir).
Feb 26 21:15:00 kernel: Out of Memory: Killed process 469 (palantir).
Feb 26 21:15:38 kernel: drivers/usb/spca561.h: [spca561_init:515] Find spca561 USB Product ID 7004
Feb 26 21:15:45 kernel: Out of Memory: Killed process 425 (upnp).
Feb 26 21:18:32 kernel: drivers/usb/spca561.h: [spca561_init:515] Find spca561 USB Product ID 7004
Feb 26 21:18:46 kernel: Out of Memory: Killed process 484 (palantir).
Feb 26 21:18:46 kernel: Out of Memory: Killed process 485 (palantir).
Feb 26 21:18:46 kernel: Out of Memory: Killed process 486 (palantir).
Feb 26 21:18:46 kernel: Out of Memory: Killed process 487 (palantir).
Feb 26 21:18:46 kernel: Out of Memory: Killed process 488 (palantir).

Greets

Oleg
26-02-2005, 21:14
Well, I've Genius V2 also, and yes it's pretty useless at this time. Also, driver is looking terrible for me...

WlanMan
26-02-2005, 22:00
Well, I've Genius V2 also, and yes it's pretty useless at this time. Also, driver is looking terrible for me...

Inside of driver, no idea.
I just wonder why the hell we all habe this crapy cam, i bought mine with the router for 15eur reduced price, and now it sits here and collects dust :)

Nevetheless, including the driver would be nice for all which have cams which support this driver, maybe not in the web gui ...

Greets

Oleg
26-02-2005, 22:14
Well, in fact I've also Creative WebCam NX, which is supported by zc030x driver and most likely I will include this driver as soon as it would be finally cleared and bugs inside it fixed. This driver is looking pretty good to me.

RoofCat
28-02-2005, 09:07
Hello,

So it looks like spca50x is completely useless with Videocam Express V2... Pity :(, I had an idea to finally find usage for this cam.

Roofcat

belemer
25-03-2005, 20:47
I try to using spca50x.o

I have genius videocam express v2

systemlog says
Mar 25 08:01:50 kernel: drivers/usb/spca50x.c: USB SPCA5XX camera found. Type Genius VideoCAM Express V2 (SPCA561A)

but ./videodog -x 320 -y 240 -w 3 -d /dev/v4l/video0 -f /var/tmp/display.jpg
making a non jpg file every bytes in 0x format (upper 4 bit is 0)

WlanMan
03-05-2005, 16:12
Hi

Driver seems to have now some improvements to the spca561 support, since the developer now owns one :).
Also there are some endian fixes that may make it now working on mips.
Can someone who had done it before compile it ?

Greets

Oleg
03-05-2005, 16:55
The spca cameras are very cheap, and the image quality is VERY poor. The sensitivity is very low too, so the framerate is always low.
Consider buying philips cam with CCD sensor instead. It's supported and gives nice image.

lada
07-05-2005, 08:52
Can someone who had done it before compile it ?
Greets

I've just compiled the latest driver (http://artax.karlin.mff.cuni.cz/~prosl0am/spca5xx.o) , but when I connect my camera, I get



Unhandled kernel unaligned access in unaligned.c::emulate_load_store_insn, line 487:
$0 : 00000000 1000fc00 c0100010 00000001 00000058 00000001 00000000 00000380
$8 : 81436600 81f3d8f8 00000000 c0137f19 c0121850 2ab5e4a0 00000000 c0137f35
$16: 00000001 c0137d68 00000001 00000001 c00f1990 00000059 81436600 00000000
$24: 00000000 2abc0790 80e78000 80e79d78 c009e430 c008d50c
Hi : 00000000
Lo : 00000780
epc : c0120084 Not tainted
Status: 1000fc03
Cause : 00000010
Process insmod (pid: 142, stackpage=80e78000)
Stack: 801dbcf4 000001d2 801dbf24 00000001 c0137d48 c0137d68 81f3d8f8
00000001 c00f1990 00000001 c008d50c 00000001 00243603 80ed3260 80e9a2fc
80ed3260 81436628 00000018 c008d21c 00000001 81436600 c008cf14 81bc5f20
00000007 80d35000 10082060 100b9d80 c008cf98 c008d21c 00000001 81d8d800
c008cf14 81d8d718 0000000d 81d8d600 c008cf14 c008cfd4 c008cf98 800111cc
00000000 ...
Call Trace: [<c0137d48>] [<c0137d68>] [<c00f1990>] [<c008d50c>] [<c008d21c>]
[<c008cf14>] [<c008cf98>] [<c008d21c>] [<c008cf14>] [<c008cf14>] [<c008cfd4>]
[<c008cf98>] [<800111cc>] [<8005a3d0>] [<c009e438>] [<c008cf14>] [<c009e438>]
[<c008c1a8>] [<c0137d48>] [<c008c108>] [<c009b164>] [<c011fc68>] [<c01203e4>]
[<800d73e8>] [<8001259c>] [<800163f4>] [<c0100060>] [<800085a4>]

Code: 12400083 ac440004 26550058 <c243005c> 2462ffff e242005c 1040fffc 2462ffff 0000000f


It is my understanding that the driver is designed primarily for x86 where memory access alignment is no issue. However, this looks like that OS is trying to emulate unaligned acesses and fails. I am running 1.9.2.7-5 on gx.

brunobf
14-09-2005, 23:45
Hi all :D

Oh well... If only I had checked this forum first...
I've spent sometime trying to fix the spca5xx driver and crosscompiling it for my asus. I have a LG-LIC300 camera, and to make it work under my x86 box, I had only to fix the correct sensor for it. So the driver works in gnomemeeting...
I then begun to integrate it into oleg's firmware. I kind of made it part of the kernel, and after some fixes of #ifdefs, everything compiles fine. I'm now stuck at the same point at which lada was. My router hangs or reboots.
I could use a hand in 2 issues...

1) This module has some defines like, SPCA50X_ENABLE_OSD, and stuff like that. Where shoud those go in the kernel build env ? I know I could just put them all in a header and include it, but what would be prettier ? Place them in the config options (make menuconfig) ?

2) Also, I would reaaally love to know what MIPS optimization flag is making it crash, and how I could add that flag in the whole kernel build env. (I'm no kernel hacker expert)

If you are still interested Oleg, I could send you the patches so you can include it all when it begins to work :)

Thanks ;)
bbf

brunobf
15-09-2005, 00:41
Follow Up:

According to lada's Makefile, the flags I could detect that he added were:



-msoft-float -EL -m4710a0kern

I still dunno on how to add specific flags to a particular object in the kernel build system, if anyone knows, please help... but I ended up building the required binaries by hand with the following command (kernel build system with extra flags):




mipsel-linux-gcc -D__KERNEL__ -I/opt/broadcom/src/linux/linux/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -I/opt/broadcom/src/linux/linux/../../include
-DBCMDRIVER -I /opt/broadcom/src/linux/linux/include/asm/gcc -G 0
-mno-abicalls -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap -m4710a0kern
-DMODULE -mlong-calls -fno-common -nostdinc -iwithprefix include
-DKBUILD_BASENAME=spcadecoder -msoft-float -EL -m4710a0kern -c -o
spcadecoder.o spcadecoder.c



I then compiled videodog to test it, and simply using "videodog -s -d /dev/video" caused the whole thing to hang.

It doesn't emit any errors or anything, just freezes... and I can't access it's kernel msg log :P Any suggestions on how to debug this ?

By any chance, do those flags affect only gcc, or do they influence the linker also ? Cause I let the kernel itself link the files by itself (without those flags)...

ankn99
15-09-2005, 12:32
Hi, I'm stuck at this point too.

Compiled fine :D , insmod fine :D , no picture :( , unplug the Device and my WLHDD hangs with a kernel Ooops :confused: (told syslog to put the messages to my linux Box) :D

A firend has a INTEL-CAM that I still got for testing.

But debuging the Problem its way above my horizont :mad:

Greetings from Berlin

brunobf
15-09-2005, 16:52
Hmm...

When using an INTEL-CAM, the author of the driver suggests you use an aditional parameter usbgrabber=1 (if it has a id 0x733:0x430). Did you try doing that ?

Well, in any case, I'm posting my latest binaries here if anyone wants to try them. There are 2 modules, the regular usbvideo.o, and spca.o which has both spca5xx and spcadecoder modules together. The driver does include debugging, and spits a lot of stuff into syslog.

cheers :D

audiophil
19-09-2005, 19:52
Wouldn't it be an idea to make the "supported" cameras work instead of adding new devices? I.e. the Logitech Quickcam 4000 does not work in security mode (as many users have posted) and is even bundled with the router!

brunobf
23-09-2005, 03:17
Well, for starters, it would be impossible to me to actually make that happen, audiophil, since I don't own one of those. And so you'll reach the most obvious conclusion, which I'll leave up for you...

I had found also, another driver which claimed to support Sonix cameras. But it required a 2.6 kernel. I'm gonna take a look at to see if it's easy to recode it into the 2.4 tree.

vampire
05-06-2006, 12:13
Hi there, havent seen anything on this thread for quite awhile so was just hoping someone out there with the right enviroment and abit of time and skill might be able to compile the latest full spca and spcacat driver seeing that it seems like it might be the last one for 2.4.

anyway much appreciated if someones able to do this for me (and also others) as last driver that worked for me was 57.02 (Flexcam 100, SPCA561A chipset) but it didnt seem to work on anythign else other then palantir cos cam didnt support JPEG out which i'm assuming the other apps are dependent on???

sorry for the big ask/begging :-)

cheers

jedi
15-10-2006, 18:00
hello all
first, sorry for my poor english.
i have Vimicro Zc301P (vid: 0x0ac8 pid: 0x303b), i download spca5xx-20060501 from http://mxhaard.free.fr/download.html, the original driver working on my Gentoo (kernel 2.6.16-r7) but WL-500b (kernel 2.4.20) is fail.

i fixed spca5xx-20060501, now it working on WL-500b ok, but rcamd is unsupport spca5xx driver, so i cross-compile spcaserv for WL-500b, the spcaserv now working on WL-500b ok and you can use spcaview in you linux-box see camera video.

thank mxhaard!

download compiled bin file (http://www.wl500g.info/attachment.php?attachmentid=1034&stc=1&d=1160960706)
steps:
1. put spca5xx.o and spcaserv to WL-500b(g)
2. insmod spca5xx.o
3. ./spcaserv -d /dev/video -f jpg -s 320x240
4. in you linux-box, run spcaview (http://mxhaard.free.fr/spca50x/Download/oldrelease/spcaview-20051127.tar.gz) -w IP

-----------------------------------------------------------------------------------
i upload spca5xx-20060501.path and spcaserv-mips.tar.gz for somebody ;)
spca5xx steps:
1. download original spca5xx-20060501.tar.gz
2. tar zxvf spca5xx-20060501.tar.gz
3. download spca5xx-20060501.path, put to spca5xx-20060501 path.
4. cd spca5xx-20060501
5. patch -p1 < spca5xx-20060501.patch
6. modify KINCLUDE in Makefile, e.g. /home/xxx/wl500b_dev/broadcom/src/linux/linux
7. make
8. upload to WL-500b and insmod spca5xx.o

spcaserv steps:
1. download original spcaserv.tar.gz
2. tar zxvf spcaserv.tar.gz
3. cd spcaserv
4. make
5. upload to WL-500b and run spcaserv
./spcaserv -d /dev/video -f jpg -s 320x240

jedi
15-10-2006, 18:19
spca5xx-20060501 working on WL-500b(g) [good news]
http://www.wl500g.info/showthread.php?p=37976#post37976

jedi
23-10-2006, 10:09
:confused: something was wrong, if use spca5xx.o and run spcaserv, WL-500B crash, if use spca5xx-le.o and run spcaserv, WL-500B working fine.

giraffe
29-10-2006, 21:35
Hello,

how can this driver (spca5xx-le.o -> which works now) be used for
the built in usb webcam app of olegīs firmware?

Thanks in advance,
Wolfgang

Snaut
04-11-2006, 12:29
I've just compiled the latest driver

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).

max2950
26-12-2006, 09:51
Hey you did a great job !
I have a cheap webcam and it is working on the wl500 !



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


However, i tested it with palantir, and after sometime running the wl500 runs out of memory....

max2950
15-01-2007, 08:12
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:

JFK
24-01-2007, 05:48
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=kamery&produkt=webcam-led
) and realized, that it has the same maximum resolution (352x288) like max2950's webcam above, instead of having 640x480:

Dec 25 20:39:44 kernel: drivers/usb/spca5xx.c: [spca5xx_getcapability:1765] maxw 352 maxh 288 minw 160 minh 120

So, is resolution question of drivers?

Does anybody knows?

Regards, JFK

max2950
25-01-2007, 18:44
In most of the cases the hardware is limiting the resolution, but sometimes it might be the drivers to...:p

toze
06-02-2007, 21:21
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

max2950
09-02-2007, 21:10
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.

Modrak
12-03-2007, 16:02
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.



[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.

And another try with spcaserv

[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.

dyonisos
01-06-2007, 20:30
is it possible to modify the spca5xx driver to support VGA 640x480 resolution? Has anybody a wl-500gP compiled object which supports VGA?

beatmag
03-06-2007, 07:58
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?

dyonisos
03-06-2007, 22:59
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?

Modrak
03-06-2007, 23:46
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.

beatmag
11-06-2007, 07:45
does it crash is what I was asking................??

is it 24/7 stable......?

Stiv32
18-07-2007, 21:43
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?

dyonisos
19-07-2007, 22:01
Yes, the spca5xx.o driver works with Oleg. For me the spca5xx-le.o does not work. I am using Oleg 7g.

Saros
11-02-2008, 15:18
How can i use it with 500w? I need step by step manual

oxygen121
11-02-2008, 19:16
sorry for my bad english.
Please make new version driver for wl500.
On page http://mxhaard.free.fr/download.html current version drivers 1.00.20 date: 24/12/2007

pripps
25-02-2008, 20:36
Hello

It seems to work for me, but I do not know how to chek it from a Windows machine?

KR

pepek
02-04-2008, 22:52
Hello,
I have problem with my webcam Trust WB-1400T on WL-500gP.
I have insmod /tmp/harddisk/modules/spca5xx.o in post-mount. Modul was installed but the camera wasn't not detected :(.

Where can be problem ? I have Oleg firmware 1.9.2.7-9.

dyonisos
31-07-2008, 16:28
the WB-1400T need a PAC207 controller/driver and will not work with spca5xx.

ncruz
14-09-2008, 19:57
Here's a new version of the driver, the latest for v4l.

I couldn't get it to work with my QC express (0x092f), the source is ok but I always get no driver registered for this device...

Maybe someone can try it and get better results.

vvs123
04-06-2009, 08:07
The same spca5xx driver with some fixes: http://wl500g.info/showpost.php?p=147904&postcount=29

You can give it a try, no guaranty it'll work though.

polius
19-06-2009, 13:59
hello all
first, sorry for my poor english.
i have Vimicro Zc301P (vid: 0x0ac8 pid: 0x303b), i download spca5xx-20060501 from http://mxhaard.free.fr/download.html, the original driver working on my Gentoo (kernel 2.6.16-r7) but WL-500b (kernel 2.4.20) is fail.

i fixed spca5xx-20060501, now it working on WL-500b ok, but rcamd is unsupport spca5xx driver, so i cross-compile spcaserv for WL-500b, the spcaserv now working on WL-500b ok and you can use spcaview in you linux-box see camera video.

thank mxhaard!

download compiled bin file (http://www.wl500g.info/attachment.php?attachmentid=1034&stc=1&d=1160960706)
steps:
1. put spca5xx.o and spcaserv to WL-500b(g)
2. insmod spca5xx.o
3. ./spcaserv -d /dev/video -f jpg -s 320x240
4. in you linux-box, run spcaview (http://mxhaard.free.fr/spca50x/Download/oldrelease/spcaview-20051127.tar.gz) -w IP

-----------------------------------------------------------------------------------
i upload spca5xx-20060501.path and spcaserv-mips.tar.gz for somebody ;)
spca5xx steps:
1. download original spca5xx-20060501.tar.gz
2. tar zxvf spca5xx-20060501.tar.gz
3. download spca5xx-20060501.path, put to spca5xx-20060501 path.
4. cd spca5xx-20060501
5. patch -p1 < spca5xx-20060501.patch
6. modify KINCLUDE in Makefile, e.g. /home/xxx/wl500b_dev/broadcom/src/linux/linux
7. make
8. upload to WL-500b and insmod spca5xx.o

spcaserv steps:
1. download original spcaserv.tar.gz
2. tar zxvf spcaserv.tar.gz
3. cd spcaserv
4. make
5. upload to WL-500b and run spcaserv
./spcaserv -d /dev/video -f jpg -s 320x240

Can you help me? How I can upload spca5xx.o to WL-500?