[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Sony Handycam as USB mass storage hang



Hi,

I am not sure that the issue is specific to debian-powerpc since I got
similar yet less frequent problems on a intel platform a while ago, but
I can't manage to download pictures from my Sony Handycam (DCR-PC120E)
on my ibook2.

I am running a freshly compile kernel 2.4.20-pre5-ben0 with
CONFIG_USB_STORAGE_DEBUG set to get some food for thoughts but had the
same issue with a 2.4.18 without this flag.

The log is quite verbose and the snipets I find significant are:

1) When I attach the camera to the USB port:

Sep  3 18:00:38 ibook kernel: hub.c: USB new device connect on bus1/1,
assigned device number 2
Sep  3 18:00:38 ibook kernel: usb-storage: act_altsettting is 0
Sep  3 18:00:38 ibook kernel: usb-storage: id_index calculated to be: 28
Sep  3 18:00:38 ibook kernel: usb-storage: Array length appears to be:
88
Sep  3 18:00:38 ibook kernel: usb-storage: Vendor: Sony
Sep  3 18:00:38 ibook kernel: usb-storage: Product: Handycam
Sep  3 18:00:38 ibook kernel: usb-storage: USB Mass Storage device
detected
Sep  3 18:00:38 ibook kernel: usb-storage: Endpoints: In: 0xcebdb2b4
Out: 0xcebdb2a0 Int: 0xcebdb2c8 (Period 255)
Sep  3 18:00:38 ibook kernel: usb-storage: Found existing GUID
054c002e0000000000000000
Sep  3 18:00:38 ibook kernel: WARNING: USB Mass Storage data integrity
not assured
Sep  3 18:00:38 ibook kernel: USB Mass Storage device found at 2
Sep  3 18:00:42 ibook /etc/hotplug/usb.agent: Setup usb-storage for USB
product 54c/2e/300

2) When I mount it as VFAT, the line in /etc/fstab is:

/dev/sda1	/mounts/sony	vfat	rw,noauto

and the log shows:
Sep  3 18:01:50 ibook kernel: Attached scsi removable disk sda at scsi0,
channel 0, id 0, lun 0
Sep  3 18:01:50 ibook kernel: usb-storage: queuecommand() called
Sep  3 18:01:50 ibook kernel: usb-storage: *** thread awakened.
Sep  3 18:01:50 ibook kernel: usb-storage: Command TEST_UNIT_READY (6
bytes)
Sep  3 18:01:50 ibook kernel: usb-storage: 00 00 00 00 00 00 00 00 00 00
bd 50
Sep  3 18:01:50 ibook kernel: usb-storage: Invoking Mode Translation
Sep  3 18:01:50 ibook kernel: usb-storage: Call to
usb_stor_control_msg() returned 6
Sep  3 18:01:50 ibook kernel: usb-storage: -- CB transport device
requiring auto-sense
Sep  3 18:01:50 ibook kernel: usb-storage: Issuing auto-REQUEST_SENSE
Sep  3 18:01:50 ibook kernel: usb-storage: Call to
usb_stor_control_msg() returned 6
Sep  3 18:01:50 ibook kernel: usb-storage: usb_stor_transfer_partial():
xfer 18 bytes
Sep  3 18:01:50 ibook kernel: usb-storage: usb_stor_bulk_msg() returned
0 xferred 18/18
Sep  3 18:01:50 ibook kernel: usb-storage: usb_stor_transfer_partial():
transfer complete
Sep  3 18:01:50 ibook kernel: usb-storage: CB data stage result is 0x0
Sep  3 18:01:50 ibook kernel: usb-storage: -- Result from auto-sense is
0
Sep  3 18:01:50 ibook kernel: usb-storage: -- code: 0x70, key: 0x0, ASC:
0x0, ASCQ: 0x0
Sep  3 18:01:50 ibook kernel: usb-storage: No Sense: no additional sense
information
Sep  3 18:01:50 ibook kernel: usb-storage: scsi cmd done, result=0x0
Sep  3 18:01:50 ibook kernel: usb-storage: *** thread sleeping.
Sep  3 18:01:50 ibook kernel: usb-storage: queuecommand() called
Sep  3 18:01:50 ibook kernel: usb-storage: *** thread awakened.
Sep  3 18:01:50 ibook kernel: usb-storage: Command READ_CAPACITY (10
bytes)
Sep  3 18:01:50 ibook kernel: usb-storage: 25 00 00 00 00 00 00 00 00 00
bd 50
Sep  3 18:01:50 ibook kernel: usb-storage: Invoking Mode Translation
Sep  3 18:01:50 ibook kernel: usb-storage: Call to
usb_stor_control_msg() returned 10
Sep  3 18:01:50 ibook kernel: usb-storage: usb_stor_transfer_partial():
xfer 8 bytes

(more available if needed).

Then, if I access to the device with (for instance) a command such as
"find /mounts/sony -type f", it shows a first file then hangs forever.
The last messages in the log are:

Sep  3 18:02:25 ibook kernel: usb-storage: usb_stor_bulk_msg() returned
0 xferred 18/18
Sep  3 18:02:25 ibook kernel: usb-storage: usb_stor_transfer_partial():
transfer complete
Sep  3 18:02:25 ibook kernel: usb-storage: CB data stage result is 0x0
Sep  3 18:02:25 ibook kernel: usb-storage: -- Result from auto-sense is
0
Sep  3 18:02:25 ibook kernel: usb-storage: -- code: 0x70, key: 0x0, ASC:
0x0, ASCQ: 0x0
Sep  3 18:02:25 ibook kernel: usb-storage: No Sense: no additional sense
information
Sep  3 18:02:25 ibook kernel: usb-storage: scsi cmd done, result=0x0
Sep  3 18:02:25 ibook kernel: usb-storage: *** thread sleeping.
Sep  3 18:02:25 ibook kernel: usb-storage: queuecommand() called
Sep  3 18:02:25 ibook kernel: usb-storage: *** thread awakened.
Sep  3 18:02:25 ibook kernel: usb-storage: Command READ_10 (10 bytes)
Sep  3 18:02:25 ibook kernel: usb-storage: 28 00 00 00 00 9e 00 00 01 00
00 00
Sep  3 18:02:25 ibook kernel: usb-storage: Invoking Mode Translation
Sep  3 18:02:55 ibook kernel: usb-storage: command_abort() called
Sep  3 18:02:55 ibook kernel: usb-storage: Call to
usb_stor_control_msg() returned -104
Sep  3 18:02:55 ibook kernel: usb-storage: -- transport indicates error,
resetting
Sep  3 18:02:55 ibook kernel: usb-storage: CB_reset() called
Sep  3 18:03:00 ibook kernel: usb_control/bulk_msg: timeout
Sep  3 18:03:00 ibook kernel: usb-storage: CB[I] soft reset failed -110
Sep  3 18:03:00 ibook kernel: usb-storage: scsi cmd done, result=0x70000
Sep  3 18:03:00 ibook kernel: usb-storage: *** thread sleeping.

The USB connection is then frozen, the find command doesn't seem to ever
end and even though all the other functions of the ibook work fine, the
only way to resume the USB is to switch the computer off and on.

Note that this same camera works perfectly under OS X and that this
doesn't seem to be a hardware issue.

Thanks for any pointers, I have googled on the error messages found in
the log and haven't found anything more than unsanswered references to
the same issues!

Eric
-- 
Rendez-vous à Paris.
                          http://www.technoforum.fr/integ2002/index.html
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------



Reply to: