usb mass storage fails in 2.5.18
A message that is not in the archive (sent off-list or not yet received): [email protected]
OK. Did that. Got a *lot* more stuff from dmesg. But still doesn't work. Still nothing in /proc/bus/usb.
FWIW, the camera is a Sony DSC-p71 - not one of the cameras listed in dmesg. Do I need to edit unnatural? It does work, however, in 2.4.18.
Anything else you'd like me to try?
thanks for the help.
jay
usb snips from dmesg:
hcd.c: usb-uhci-hcd @ 00:04.2, Intel Corp. 82371AB PIIX4 USBhcd.c: irq 14, io base 0000d400hcd.c: new USB bus registered, assigned bus number 1usb-uhci-hcd.c: Detected 2 portshcd.c: 00:04.2 root hub device address 1usb.c: kmalloc IF dbbcbec0, numif 1usb.c: new device strings: Mfr=3, Product=2, SerialNumber=1usb.c: USB device number 1 default language ID 0x0
Manufacturer: Linux 2.5.18 usb-uhci-hcd
Product: Intel Corp. 82371AB PIIX4 USB
SerialNumber: 00:04.2hub.c: USB hub found at /hub.c: 2 ports detectedhub.c: standalone hubhub.c: ganged power switchinghub.c: global over-current protectionhub.c: Port indicators are not supportedhub.c: power on to power good time: 2mshub.c: hub controller current requirement: 0mAhub.c: port removable status: RRhub.c: local power source is goodhub.c: no over-current condition existshub.c: enabling power on all portsusb.c: hub driver claimed interface dbbcbec0usb.c: kusbd: /sbin/hotplug add 1usb.c: kusbd policy returned 0xfffffffe
Initializing USB Mass Storage driver...usb.c: registered new driver usb-storage
USB Mass Storage support registered.
......hub.c: port 1, portstatus 101, change 1, 12 Mb/shub.c: hub / port 1 connection changehub.c: hub / port 1, portstatus 101, change 1, 12 Mb/shub.c: port 1, portstatus 101, change 0, 12 Mb/shub.c: port 1, portstatus 101, change 0, 12 Mb/shub.c: port 1, portstatus 101, change 0, 12 Mb/shub.c: port 1, portstatus 101, change 0, 12 Mb/shub.c: port 1, portstatus 103, change 0, 12 Mb/shub.c: new USB device 00:04.2-1, assigned address 2usb.c: kmalloc IF dbb392e0, numif 1usb.c: new device strings: Mfr=1, Product=2, SerialNumber=0usb.c: USB device number 2 default language ID 0x409
Manufacturer: Sony
Product: Sony DSC
usb-storage: act_altsettting is 0
usb-storage: id_index calculated to be: 20
usb-storage: Array length appears to be: 67
usb-storage: Vendor: Sony
usb-storage: Product: DSC-S30/S70/S75/505V/F505/F707
usb-storage: USB Mass Storage device detected
usb-storage: Endpoints: In: 0xdbb4e3f4 Out: 0xdbb4e3e0 Int: 0xdbb4e408 (Period 255)
usb-storage: New GUID 054c00100000000000000000
usb-storage: Transport: Control/Bulk
usb-storage: Protocol: Transparent SCSI
usb-storage: *** thread sleeping.
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage: 12 00 00 00 24 00 00 00 00 00 00 00
usb-storage: Invoking Mode Translation
usb-storage: Call to usb_stor_control_msg() returned 6
usb-storage: usb_stor_transfer_partial(): xfer 36 bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred 36/36
usb-storage: usb_stor_transfer_partial(): transfer complete
usb-storage: CB data stage result is 0x0
usb-storage: -- CB transport device requiring auto-sense
usb-storage: Issuing auto-REQUEST_SENSE
usb-storage: Call to usb_stor_control_msg() returned 6
usb-storage: usb_stor_transfer_partial(): xfer 18 bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred 18/18
usb-storage: usb_stor_transfer_partial(): transfer complete
usb-storage: CB data stage result is 0x0
usb-storage: -- Result from auto-sense is 0
usb-storage: -- code: 0x70, key: 0x5, ASC: 0x20, ASCQ: 0x0
usb-storage: Illegal Request: invalid command operation code
usb-storage: scsi cmd done, result=0x2
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Bad target number (1/0)
[REPEATED 7 TIMES]
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2usb.c: usb-storage driver claimed interface dbb392e0usb.c: kusbd: /sbin/hotplug add 2hub.c: port 2, portstatus 101, change 1, 12 Mb/shub.c: hub / port 2 connection changehub.c: hub / port 2, portstatus 101, change 1, 12 Mb/shub.c: port 2, portstatus 101, change 0, 12 Mb/shub.c: port 2, portstatus 101, change 0, 12 Mb/shub.c: port 2, portstatus 101, change 0, 12 Mb/shub.c: port 2, portstatus 101, change 0, 12 Mb/shub.c: port 2, portstatus 103, change 0, 12 Mb/shub.c: new USB device 00:04.2-2, assigned address 3usb.c: kmalloc IF dbb39460, numif 1usb.c: new device strings: Mfr=0, Product=0, SerialNumber=0hub.c: USB hub found at 2hub.c: 4 ports detectedhub.c: part of a compound devicehub.c: ganged power switchinghub.c: global over-current protectionhub.c: Port indicators are not supportedhub.c: power on to power good time: 20mshub.c: hub controller current requirement: 10mAhub.c: port removable status: RRRFhub.c: local power source is goodhub.c: no over-current condition existshub.c: enabling power on all portsusb.c: hub driver claimed interface dbb39460usb.c: kusbd: /sbin/hotplug add 3hub.c: port 1, portstatus 100, change 0, 12 Mb/shub.c: port 2, portstatus 100, change 0, 12 Mb/shub.c: port 3, portstatus 100, change 0, 12 Mb/shub.c: port 4, portstatus 101, change 1, 12 Mb/shub.c: hub 2 port 4 connection changehub.c: hub 2 port 4, portstatus 101, change 1, 12 Mb/shub.c: port 4, portstatus 101, change 0, 12 Mb/shub.c: port 4, portstatus 101, change 0, 12 Mb/shub.c: port 4, portstatus 101, change 0, 12 Mb/shub.c: port 4, portstatus 101, change 0, 12 Mb/shub.c: port 4, portstatus 103, change 10, 12 Mb/shub.c: new USB device 00:04.2-2.4, assigned address 4usb.c: kmalloc IF dbb395e0, numif 1usb.c: skipped 1 class/vendor specific interface descriptorsusb.c: new device strings: Mfr=0, Product=0, SerialNumber=0usb.c: unhandled interfaces on deviceusb.c: USB device 4 (vend/prod 0x452/0x51) is not claimed by any active driver.
Length = 18
DescriptorType = 01
USB version = 1.00
Vendor:Product = 0452:0051
MaxPacketSize0 = 8
NumConfigurations = 1
Device version = 2.06
Device Class:SubClass:Protocol = 00:00:00
Per-interface classes
Configuration:
bLength = 9
bDescriptorType = 02
wTotalLength = 0022
bNumInterfaces = 01
bConfigurationValue = 01
iConfiguration = 00
bmAttributes = 40MaxPower = 100mA
Interface: 0
Alternate Setting: 0
bLength = 9
bDescriptorType = 04
bInterfaceNumber = 00
bAlternateSetting = 00
bNumEndpoints = 01 bInterface Class:SubClass:Protocol = 03:00:00
iInterface = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 81 (in)
bmAttributes = 03 (Interrupt)
wMaxPacketSize = 0008
bInterval = 20usb.c: kusbd: /sbin/hotplug add 4hub.c: port 1, portstatus 100, change 0, 12 Mb/shub.c: port 2, portstatus 100, change 0, 12 Mb/shub.c: port 3, portstatus 100, change 0, 12 Mb/shub.c: port 4, portstatus 103, change 0, 12 Mb/shub.c: port 1, portstatus 103, change 0, 12 Mb/shub.c: port 2, portstatus 103, change 0, 12 Mb/s
Quoted 19 lines · [email protected] wrote:
In 2.5.16 - 2.5.18 there is one bad bug in usb-storage fixed by the 1-char patch below. Other things are wrong, but try this first.
Andries
--- /linux/2.5/linux-2.5.18/linux/drivers/usb/storage/transport.c Tue May
21 07:07:37 2002
+++ /linux/2.5/linux-2.5.18a/linux/drivers/usb/storage/transport.c Sun May
26 00:32:48 2002(quoted diff) +1
-1@@ -430,7 +430,7 @@ /* fill the URB */ FILL_CONTROL_URB(us->current_urb, us->pusb_dev, pipe, - (unsigned char*) &dr, data, size, + (unsigned char*) dr, data, size, usb_stor_blocking_completion, NULL); /* submit the URB */