Hi Mark:
I tried reload host controller driver, but it didn't work! If I unload
reload the usb-ohci, sometims,it will hang on there when I run "vidcat" ,
and somtimes it captured mosiac image. Below is what I saw from the debug
message
After "insmod ov511.o "
v511.c: [ov511_probe:6181] Camera initialization successful
usb.c: ov511 driver claimed interface c120e230
ov511.c: [ov511_probe:6095] probing for device...
ov511.c: Unknown product ID
ov511.c: Camera initialization failed
ov511.c: ov511 driver version 1.34 (2.2.x) registered
After "vidcat > test.jpg"
ov511.c: [ov511_init_isoc:4473] *** Initializing capture ***
ov511.c: [ov511_stop:1058] stopping
ov511.c: [ov511_reg_write:610] 0x50:0x3D
ov511.c: [ov511_set_packet_size:1215] set packet size: 993, mult=31, alt=1
ov511.c: [ov511_reg_write:610] 0x30:0x1F
ov511.c: [ov511_reset:1043] Reset: type=0x3F
ov511.c: [ov511_reg_write:610] 0x50:0x3F
ov511.c: [ov511_reg_write:610] 0x50:0x00
ov511.c: [ov511_restart:1068] restarting
ov511.c: [ov511_reg_write:610] 0x50:0x00
ov511.c: [ov511_ioctl:4855] IOCtl: 0x803C7601
ov511.c: [ov511_ioctl:4865] VIDIOCGCAP
ov511.c: [ov511_ioctl:4855] IOCtl: 0x80887614
ov511.c: [ov511_mmap:5355] mmap: 1847296 (1C3000) bytes
ov511.c: [ov511_ioctl:4855] IOCtl: 0x40107613
ov511.c: [ov511_ioctl:5073] CMCAPTURE
ov511.c: [ov511_ioctl:5075] frame: 0, size: 320x240, format: 4
ov511.c: [ov511_mode_init_regs:1422] width:320, height:240, mode:4, sub:0
ov511.c: [ov511_stop:1058] stopping
ov511.c: [ov511_reg_write:610] 0x50:0x3D
ov511.c: [ov511_reg_write:610] 0x16:0x01
ov511.c: [ov511_i2c_write:782] 0x0E:0x04
ov511.c: [ov511_reg_write:610] 0x42:0x0E
ov511.c: [ov511_reg_write:610] 0x45:0x04
ov511.c: [ov511_reg_write:610] 0x40:0x01
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_reg_write:610] 0x43:0x13
ov511.c: [ov511_reg_write:610] 0x40:0x03
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_reg_write:610] 0x40:0x05
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_reg_read:636] 0x45:0x01
ov511.c: [ov511_i2c_read:915] 0x13:0x01
ov511.c: [ov511_reg_write:610] 0x40:0x05
ov511.c: [ov511_i2c_write:782] 0x13:0x01
ov511.c: [ov511_reg_write:610] 0x42:0x13
ov511.c: [ov511_reg_write:610] 0x45:0x01
ov511.c: [ov511_reg_write:610] 0x40:0x01
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_reg_write:610] 0x1E:0x01
ov511.c: [ov511_reg_write:610] 0x1F:0x03
ov511.c: [ov511_i2c_write:782] 0x14:0x24
ov511.c: [ov511_reg_write:610] 0x42:0x14
ov511.c: [ov511_reg_write:610] 0x45:0x24
ov511.c: [ov511_reg_write:610] 0x40:0x01
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_i2c_write:782] 0x17:0x38
ov511.c: [ov511_reg_write:610] 0x42:0x17
ov511.c: [ov511_reg_write:610] 0x45:0x38
ov511.c: [ov511_reg_write:610] 0x40:0x01
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_i2c_write:782] 0x18:0xDA
ov511.c: [ov511_reg_write:610] 0x42:0x18
ov511.c: [ov511_reg_write:610] 0x45:0xDA
ov511.c: [ov511_reg_write:610] 0x40:0x01
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_i2c_write:782] 0x19:0x05
ov511.c: [ov511_reg_write:610] 0x42:0x19
ov511.c: [ov511_reg_write:610] 0x45:0x05
ov511.c: [ov511_reg_write:610] 0x40:0x01
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_i2c_write:782] 0x1A:0xF5
ov511.c: [ov511_reg_write:610] 0x42:0x1A
ov511.c: [ov511_reg_write:610] 0x45:0xF5
ov511.c: [ov511_reg_write:610] 0x40:0x01
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_reg_write:610] 0x12:0x27
ov511.c: [ov511_reg_write:610] 0x13:0x1D
ov511.c: [ov511_reg_write:610] 0x14:0x00
ov511.c: [ov511_reg_write:610] 0x15:0x00
ov511.c: [ov511_reg_write:610] 0x18:0x03
ov511.c: [ov511_reg_write:610] 0x1A:0x27
ov511.c: [ov511_reg_write:610] 0x1B:0x1D
ov511.c: [ov511_reg_write:610] 0x1C:0x00
ov511.c: [ov511_reg_write:610] 0x1D:0x00
ov511.c: [ov511_i2c_write:782] 0x11:0x01
ov511.c: [ov511_reg_write:610] 0x42:0x11
ov511.c: [ov511_reg_write:610] 0x45:0x01
ov511.c: [ov511_reg_write:610] 0x40:0x01
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_i2c_write:782] 0x12:0x04
ov511.c: [ov511_reg_write:610] 0x42:0x12
ov511.c: [ov511_reg_write:610] 0x45:0x04
ov511.c: [ov511_reg_write:610] 0x40:0x01
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_reg_write:610] 0x43:0x12
ov511.c: [ov511_reg_write:610] 0x40:0x03
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_reg_write:610] 0x40:0x05
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_reg_read:636] 0x45:0x04
ov511.c: [ov511_i2c_read:915] 0x12:0x04
ov511.c: [ov511_reg_write:610] 0x40:0x05
ov511.c: [ov511_i2c_write:782] 0x12:0x24
ov511.c: [ov511_reg_write:610] 0x42:0x12
ov511.c: [ov511_reg_write:610] 0x45:0x24
ov511.c: [ov511_reg_write:610] 0x40:0x01
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_i2c_write:782] 0x35:0x1E
ov511.c: [ov511_reg_write:610] 0x42:0x35
ov511.c: [ov511_reg_write:610] 0x45:0x1E
ov511.c: [ov511_reg_write:610] 0x40:0x01
ov511.c: [ov511_reg_read:636] 0x40:0x05
ov511.c: [ov511_restart:1068] restarting
ov511.c: [ov511_reg_write:610] 0x50:0x00
ov511.c: [ov511_new_frame:4585] ov511->curframe = -1, framenum = 0
ov511.c: [ov511_new_frame:4600] framenum = 0, width = 320, height = 240
ov511.c: [ov511_ioctl:4855] IOCtl: 0x40047612
ov511.c: [ov511_ioctl:5134] syncing to frame 0, grabstate = 2
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: -1 -1 -1 -1 3 4 -1 6 7 8
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: 9 -1 -1 -1 13 14 -1 -1 -1 18
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: 19 -1 -1 -1 -1 24 25 -1 27 28
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: 29 30 -1 -1 -1 34 35 -1 -1 -1
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: 39 40 -1 -1 -1 -1 45 46 -1 48
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: 49 50 51 -1 -1 -1 55 56 -1 -1
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: -1 60 61 -1 -1 -1 -1 66 67 -1
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: 69 70 71 72 -1 -1 -1 76 77 -1
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: -1 -1 81 82 -1 -1 -1 -1 87 88
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: -1 90 91 92 93 -1 -1 -1 97 98
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: -1 -1 -1 102 103 -1 -1 -1 -1 108
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4263] Frame start, framenum = 0
ov511.c: [ov511_move_data:4417] pn: 109 -1 111 0 1 2 -1 -1 -1 6
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: 7 -1 -1 -1 11 12 -1 -1 -1 -1
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: 17 18 -1 20 21 22 23 -1 -1 -1
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: 27 28 -1 -1 -1 32 33 -1 -1 -1
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: -1 38 39 -1 41 42 43 44 -1 -1
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: -1 48 49 -1 -1 -1 53 54 -1 -1
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: -1 -1 59 60 -1 62 63 64 65 -1
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: -1 -1 69 70 -1 -1 -1 74 75 -1
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: -1 -1 -1 80 81 -1 83 84 85 86
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: -1 -1 -1 90 91 -1 -1 -1 95 96
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: -1 -1 -1 -1 101 102 -1 104 105 106
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4417] pn: 107 -1 -1 -1 111 112 -1 -1 -1 116
ov511.c: [ov511_move_data:4097] Moving 10 packets
ov511.c: [ov511_move_data:4205] Frame end, curframe = 0, packnum=117, hw=39,
vw=
29, recvd=55543
ov511.c: [ov511_move_data:4248] Frame done! congratulations
ov511.c: [ov511_move_data:4417] pn: 117 -1 -1 -1 -1 122 123 -1 125 126
ov511.c: [ov511_close:4812] ov511_close
ov511.c: [ov511_stop_isoc:4563] *** Stopping capture ***
ov511.c: [ov511_stop:1058] stopping
ov511.c: [ov511_reg_write:610] 0x50:0x3D
ov511.c: [ov511_set_packet_size:1215] set packet size: 0, mult=0, alt=7
ov511.c: [ov511_reg_write:610] 0x30:0x00
ov511.c: [ov511_reset:1043] Reset: type=0x3F
ov511.c: [ov511_reg_write:610] 0x50:0x3F
ov511.c: [ov511_reg_write:610] 0x50:0x00
ov511.c: [ov511_isoc_irq:4437] no device, or not open
ov511.c: [ov511_restart:1068] restarting
ov511.c: [ov511_reg_write:610] 0x50:0x00
ov511.c: [ov511_dealloc:4739] entered
ov511.c: [ov511_dealloc:4742] deallocating buffer memory later
ov511.c: [ov511_dealloc:4760] leaving
ov511.c: [ov511_buf_callback:4726] entered
ov511.c: [ov511_do_dealloc:4697] entered
ov511.c: [ov511_do_dealloc:4718] buffer memory deallocated
ov511.c: [ov511_do_dealloc:4720] leaving
ov511.c: [ov511_buf_callback:4733] leaving
Thank you for your response!
----- Original Message -----
From: "Mark McClelland" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "lei sun" <[EMAIL PROTECTED]>
Sent: Monday, March 19, 2001 3:26 AM
Subject: Re: [Linux-usb-users] still ov511 problem?
> lei sun wrote:
>
> > Hi all:
> >
> > Last time I posted regarding a ov511 camera, thanks for the
response!
> >
> > I encountered a weired situation, when I put the driver on another
> > linux machie(kernel and moduel are same, except that this one use
> > usb-ohci instead usb-uhci), it showed that "unable to get product ID"
> >
> > "camera initilization failed"
> >
> > I can run vidcat to grab the jpeg image, but it's moisac .
> >
> > The camera is from Aiptek and it worked fine in my other linux box.
> >
> >
> >
> > Anybody can give me a clue what can cause this error?
> >
> I have seen errors like this with certain combinations of computers and
> cameras. Usually it can be fixed by unloading and reloading the host
> controller driver.
>
> If that doesn't work, please load the driver with the debug=5 option,
> and send the output that appears in /var/log/messages when you plug the
> camera in. If you have usbdevfs enabled, send /proc/bus/usb/devices too.
>
> --
> Mark McClelland
> [EMAIL PROTECTED]
>
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-users