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
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)
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
My Stuff: WL-500g, Mapower H31x 10GB HD, Philips Webcam Vesta PRO, TerraTec Webcam PRO, USB Hub
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.
I've just compiled the latest driver , but when I connect my camera, I getOriginally Posted by WlanMan
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.Code: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
Hi all
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
Follow Up:
According to lada's Makefile, the flags I could detect that he added were:
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):Code:-msoft-float -EL -m4710a0kern
I then compiled videodog to test it, and simply using "videodog -s -d /dev/video" caused the whole thing to hang.Code: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
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)...
Hi, I'm stuck at this point too.
Compiled fine , insmod fine , no picture , unplug the Device and my WLHDD hangs with a kernel Ooops (told syslog to put the messages to my linux Box)
A firend has a INTEL-CAM that I still got for testing.
But debuging the Problem its way above my horizont
Greetings from Berlin
Greetings from 1XXXX (Berlin/Germany)
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
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!
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.
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
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
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 -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
Last edited by jedi; 15-10-2006 at 18:17.
spca5xx-20060501 working on WL-500b(g) [good news]
http://www.wl500g.info/showthread.php?p=37976#post37976
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.
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