Web lists-archives.com

[Spca50x-devs] problems with an arm build, debugging tips




If this is in inappropriate place for general gspca dev discussions, I 
apologize, if anyone could point me in the right direction it would be 
appreciated.

I'm attempting to get the gspca driver functional on an arm processor, 
specifically the cirrus ep9302.

I've got gspca for the ep9302 compiling and installed but it's giving me some 
problems, I thought I'd throw them at list and see if anyone had any good 
ideas where to dig in the code.

background info
*********************************************************************************
First I installed gspca on my PC and got some test software.
I'm using the v4lgrab example out of the mainline kernel doc's, which works 
great for me because it returns data in a raw format.

It works great on my PC, no problems noticed.

So I installed it on my arm system, compiled the kernel and user space app 
with eabi to insure ioctl/syscall compatiblity and installed it.

ioctl calls appear to succeed but I'm getting data errors
(debug dump at the end)

essentially it looks like I'm incomplete isochronous urbs.
My current hypothesis is that the camera is trying to stream back data faster 
than the usb system of the arm can actually handle.

questions and help requests
************************************************************
So what to do... I could use some experienced tips here.
My current plan is to try to figure out how and why the polling rate of the 
software is set, then jack that up and see if it helps.

An even better idea would probably be to turn down the streaming rate of the 
camera, but with no documentation for the hardware other than reverse 
engineered streams this may be a trick.

Is this nuts? Anybody have any other other ideas.

thanks for all you help, 
any successes will be returned under the GPL.

NZG

debug dumps from the arm
********************************************
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca5xx_open:1945] opening
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_alloc:1701] entere
d
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_alloc:1721] frame[
0] @ c219e000
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_alloc:1721] frame[
1] @ c22ca008
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_alloc:1727] leavin
g
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/Sunplus/spca561.h: 
[spca561_init:493] Fin
d spca561 USB Product ID 561
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca5xx_setMode:1305] spca
5xx set mode asked w 160 h 120 p 4
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca5xx_setMode:1386] Foun
d code 3 method 0
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca5xx_setMode:1388] Soft
 Win width height 160 x 120
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca5xx_setMode:1390] Hard
 Win width height 160 x 120
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca5xx_set_light_freq:190
9] Sensor currently not support light frequency banding filters.
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[gspca_init_transfert:1002]
 get iso nbalt 7
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[gspca_set_isoc_ep:908] ent
er get iso ep
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[gspca_set_isoc_ep:915] tes
t ISO EndPoint  129
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[gspca_set_isoc_ep:923] ISO
 EndPoint found 0x81 AlternateSet 7
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[gspca_init_transfert:1009]
 packet size 1023
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[gspca_init_transfert:1056]
 Submit URB Now
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca5xx_open:1991] Open do
ne
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x00.  curframe= 0
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1628] sp
ca50x: Found Frame Start!, framenum = 0
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x01.  curframe= 0
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x02.  curframe= 0
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x03.  curframe= 0
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x00.  curframe= 0
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1628] sp
ca50x: Found Frame Start!, framenum = 0
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1647] De
code frame last -265120
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_next_frame:1518] F
rame 0 State 0
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_next_frame:1527] P
icture setting change Pass to decoding
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x01.  curframe= 1
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x02.  curframe= 1
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x03.  curframe= 1
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x04.  curframe= 1
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x05.  curframe= 1
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x00.  curframe= 1
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1628] sp
ca50x: Found Frame Start!, framenum = 1
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1647] De
code frame last 430
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_next_frame:1518] F
rame 1 State 8
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x01.  curframe= 1
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x02.  curframe= 1
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x03.  curframe= 1
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1623] sp
ca50x: Packet seqnum = 0x04.  curframe= 1
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[outpict_do_tasklet:1549] T
asklet ask spcadecoder hdrwidth 160 hdrheight 120 method 0
/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [0] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [1] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [2] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [3] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [4] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [5] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [6] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [7] len=1017, status=-114

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [8] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [9] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [10] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [11] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [12] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [13] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [14] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [15] len=1009, status=-114

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [0] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [1] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [2] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [3] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [4] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [5] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [6] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [7] len=1017, status=-114

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [8] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [9] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [10] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [11] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [12] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [13] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC data error: [14] len=0, status=-18

/home/nathan/lab/Arm/iPac-9302/ipac-linux/linux-2.6.22-ep93xx-e1.3/drivers/media/video/gspcav1/gspca_core.c: 
[spca50x_move_data:1596] IS
OC 





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs