Close to a solution. Please help !
Quoted 6 lines · Daniel Gonzalez
THE DESCRIPTION:
I have the following/etc/fstabentry for the Zip
/dev/sdb4/mnt/usbzipauto noauto,user 0 0I have also tried with sda4.
Do you have support for SCSI disks available (either compiled in or as a module)?
Quoted 8 lines
THE GOOD SIGNS
[root scsi]# cat/proc/scsi/usb-storage-0/2
Host scsi2: usb-storage
Vendor: Iomega
Product: USB Zip 250
Protocol: Bulk only
Transport: Transparent SCSIGUID: 059b0030059b003003005fc1
This is a very good sign. It shows that the driver has identified the device, and attempted to communicate that information to the SCSI layer.
Quoted 1 line
[root scsi]# cat
/proc/filesystems
This isn't needed for debugging.
Quoted 3 lines
THE BAD SIGNS
[root scsi]# cat/proc/scsi/scsi
Attached devices: none
Hrm... so the SCSI layer probed for the device, but didn't find anything....
Quoted 2 lines
This after I have issued a:
[root scsi]# echo "scsi add-single-device 1 0 0 0" >/proc/scsi/scsi
This command isn't really needed anymore. Generally, when you attach a device, it will appear immediately.
Quoted 2 lines
But it could be that the creation of
/proc/scsi/usb-storage-0/2was caused by that last command. I did not pay attention to that.
No, it wasn't. usb-storage-0/2 is created by connecting the device.
What you need to do now is set syslogd to save kern.* to a logfile, and then attach the device and load all the drivers, and send me the logfile. You also need to enable USB Mass Storage debugging.
I'm suspecting that this is an endian-ness problem. I should be able to identify that relatively quickly once you send me the logfile.
Matt Dharm
--
Matthew Dharm Home: [email protected]
Senior Engineer, QCP Inc. Work: [email protected]
DP: And judging from the scores, Stef has the sma... T: LET'S NOT GO THERE!
-- Dust Puppy and Tanya
User Friendly, 12/11/1997
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 10 lines · Brad Hards
Quoted 2 lines · Daniel Gonzalez
After a very long week, I think I am close to actually access my 250 Usb Zip drive. I have now 2.3.99-pre6.
You should feel priviliged. It took me months on and off to think I might be close.
I do have some bad news though - you probably should have stayed with Paulus' tree,
since Matt did think that there was some endian bugs, and I am pretty sure
Paul had at least a floppy disk working.
Unfortunately, floppies work through completely different code paths than Zips do.
Once I have the logs, I should be able to fix this.
Matt Dharm
--
Matthew Dharm Home: [email protected]
Senior Engineer, QCP Inc. Work: [email protected]
I could always suspend a few hundred accounts and watch what happens.
-- Tanya
User Friendly, 7/31/1998
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Hi Matt,
Quoted 5 lines · Matthew Dharm
Quoted 3 lines · Daniel Gonzalez
THE DESCRIPTION:
I have the following/etc/fstabentry for the Zip
Quoted 7 lines
Quoted 3 lines
/dev/sdb4/mnt/usbzipauto noauto,user 0 0I have also tried with sda4.
Do you have support for SCSI disks available (either compiled in or as a module)?
Yes. I have done everything I considered necessary to enable SCSI (my machine has a real SCSI interface also, though I do not use it)
Quoted 30 lines
Quoted 9 lines
THE GOOD SIGNS
[root scsi]# cat/proc/scsi/usb-storage-0/2
Host scsi2: usb-storage
Vendor: Iomega
Product: USB Zip 250
Protocol: Bulk only
Transport: Transparent SCSIGUID: 059b0030059b003003005fc1This is a very good sign. It shows that the driver has identified the device, and attempted to communicate that information to the SCSI layer.
Quoted 1 line
[root scsi]# cat
/proc/filesystemsThis isn't needed for debugging.
Quoted 3 lines
THE BAD SIGNS
[root scsi]# cat/proc/scsi/scsi
Attached devices: noneHrm... so the SCSI layer probed for the device, but didn't find anything....
Quoted 2 lines
This after I have issued a:
[root scsi]# echo "scsi add-single-device 1 0 0 0" >/proc/scsi/scsiThis command isn't really needed anymore. Generally, when you attach a device, it will appear immediately.
Quoted 9 lines
Quoted 2 lines
But it could be that the creation of
/proc/scsi/usb-storage-0/2was caused by that last command. I did not pay attention to that.No, it wasn't. usb-storage-0/2 is created by connecting the device.
What you need to do now is set syslogd to save kern.* to a logfile, and then attach the device and load all the drivers, and send me the logfile. You also need to enable USB Mass Storage debugging.
Done. Find the log attached.
The activity which the logs includes is:
- connecting the Zip drive to a USB port.
- loading manually the usb-storage module (insmod)
- disconnecting and connectingthe Zip.
Quoted 4 lines
I'm suspecting that this is an endian-ness problem. I should be able to identify that relatively quickly once you send me the logfile.
Thanks for your interest. I am not familiar with the USB specification, and also
not with the linux usb code. Are you the mantainer of that subsystem?
BTW, I have sent half an hour ago another message regarding this problem. Most of the information is duplicated, though.
Quoted 11 lines
Matt Dharm
--
Matthew Dharm Home: [email protected]
Senior Engineer, QCP Inc. Work: [email protected]DP: And judging from the scores, Stef has the sma... T: LET'S NOT GO THERE!-- Dust Puppy and Tanya
User Friendly, 12/11/1997
Apr 24 16:03:07 dhcp-213-224-12-204 kernel: hub.c: port 2 connection change Apr 24 16:03:07 dhcp-213-224-12-204 kernel: hub.c: portstatus 100, change 3, High Speed Apr 24 16:03:07 dhcp-213-224-12-204 kernel: usb.c: USB disconnect on device 2 Apr 24 16:03:07 dhcp-213-224-12-204 kernel: hub.c: port 2 enable change, status 100 Apr 24 16:03:08 dhcp-213-224-12-204 kernel: hub.c: port 1 connection change Apr 24 16:03:08 dhcp-213-224-12-204 kernel: hub.c: portstatus 101, change 1, High Speed Apr 24 16:03:09 dhcp-213-224-12-204 kernel: hub.c: portstatus 103, change 10, High Speed Apr 24 16:03:09 dhcp-213-224-12-204 kernel: usb.c: USB new device connect, assigned device number 2 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: usb.c: kmalloc IF c2189d60, numif 1 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: usb.c: new device strings: Mfr=1, Product=2, SerialNumber=5 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: usb.c: USB device number 2 default language ID 0x409 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Manufacturer: Iomega Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Product: USB Zip 250 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: SerialNumber: 059B003003005FC1 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: usb.c: unhandled interfaces on device Apr 24 16:03:09 dhcp-213-224-12-204 kernel: usb.c: This device is not recognized by any installed USB driver. Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Length = 18 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: DescriptorType = 01 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: USB version = 1.10 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Vendor:Product = 059b:0030 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: MaxPacketSize0 = 64 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: NumConfigurations = 1 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Device version = 1.00 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Device Class:SubClass:Protocol = 00:00:00 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Per-interface classes Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Configuration: Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bLength = 9 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bDescriptorType = 02 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: wTotalLength = 0027 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bNumInterfaces = 01 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bConfigurationValue = 01 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: iConfiguration = 03 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bmAttributes = c0 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: MaxPower = 0mA Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Interface: 0 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Alternate Setting: 0 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bLength = 9 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bDescriptorType = 04 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bInterfaceNumber = 00 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bAlternateSetting = 00 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bNumEndpoints = 03 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bInterface Class:SubClass:Protocol = 08:06:50 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: iInterface = 04 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Endpoint: Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bLength = 7 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bDescriptorType = 05 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bEndpointAddress = 01 (out) Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bmAttributes = 02 (Bulk) Apr 24 16:03:09 dhcp-213-224-12-204 kernel: wMaxPacketSize = 0040 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bInterval = 00 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Endpoint: Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bLength = 7 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bDescriptorType = 05 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bEndpointAddress = 82 (in) Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bmAttributes = 02 (Bulk) Apr 24 16:03:09 dhcp-213-224-12-204 kernel: wMaxPacketSize = 0040 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bInterval = 00 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: Endpoint: Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bLength = 7 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bDescriptorType = 05 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bEndpointAddress = 83 (in) Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bmAttributes = 03 (Interrupt) Apr 24 16:03:09 dhcp-213-224-12-204 kernel: wMaxPacketSize = 0002 Apr 24 16:03:09 dhcp-213-224-12-204 kernel: bInterval = 20 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb.c: registered new driver usb-storage Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: USB Mass Storage device detected Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Endpoints In 2 Out 1 Int 3 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Result from usb_set_interface is 0 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: New GUID 059b0030059b003003005fc1 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Transport: Bulk Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Protocol: Transparent SCSI Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread sleeping. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: scsi2 : SCSI emulation for USB Mass Storage devices Apr 24 16:04:30 dhcp-213-224-12-204 kernel: Apr 24 16:04:30 dhcp-213-224-12-204 kernel: scsi : 3 hosts. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: us_queuecommand() called Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread awakened. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Command TEST_UNIT_READY (6 bytes) Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: 00 00 00 00 00 00 00 0d c2 7d Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bulk command S 0x43425355 T 0x15 LUN 0 L 0 F 0 CL 6 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bulk command transfer result=0 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: clearing endpoint halt for pipe 0xc0010280 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: -- transport indicates transport failure Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: scsi cmd done, result=0x70000 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread sleeping. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: us_queuecommand() called Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread awakened. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Command TEST_UNIT_READY (6 bytes) Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: 00 00 00 00 00 00 00 0d c2 7d Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bulk command S 0x43425355 T 0x16 LUN 0 L 0 F 0 CL 6 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bulk command transfer result=-32 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: clearing endpoint halt for pipe 0xc0008200 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: clearing endpoint halt for pipe 0xc0010280 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: -- transport indicates transport failure Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: scsi cmd done, result=0x70000 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread sleeping. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: us_queuecommand() called Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread awakened. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Command TEST_UNIT_READY (6 bytes) Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: 00 00 00 00 00 00 00 0d c2 7d Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bulk command S 0x43425355 T 0x17 LUN 0 L 0 F 0 CL 6 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bulk command transfer result=-32 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: clearing endpoint halt for pipe 0xc0008200 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: clearing endpoint halt for pipe 0xc0010280 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: -- transport indicates transport failure Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: scsi cmd done, result=0x70000 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread sleeping. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: us_queuecommand() called Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread awakened. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Command TEST_UNIT_READY (6 bytes) Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: 00 00 00 00 00 00 00 0d c2 7d Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bulk command S 0x43425355 T 0x18 LUN 0 L 0 F 0 CL 6 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bulk command transfer result=-32 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: clearing endpoint halt for pipe 0xc0008200 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: clearing endpoint halt for pipe 0xc0010280 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: -- transport indicates transport failure Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: scsi cmd done, result=0x70000 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread sleeping. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: us_queuecommand() called Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread awakened. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Command TEST_UNIT_READY (6 bytes) Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: 00 00 00 00 00 00 00 0d c2 7d Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bulk command S 0x43425355 T 0x19 LUN 0 L 0 F 0 CL 6 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bulk command transfer result=-32 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: clearing endpoint halt for pipe 0xc0008200 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: clearing endpoint halt for pipe 0xc0010280 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: -- transport indicates transport failure Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: scsi cmd done, result=0x70000 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread sleeping. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: us_queuecommand() called Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread awakened. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bad device number (1/0) or dev 0xc3640ea0 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread sleeping. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: us_queuecommand() called Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread awakened. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bad device number (2/0) or dev 0xc3640ea0 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread sleeping. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: us_queuecommand() called Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread awakened. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bad device number (3/0) or dev 0xc3640ea0 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread sleeping. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: us_queuecommand() called Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread awakened. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bad device number (4/0) or dev 0xc3640ea0 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread sleeping. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: us_queuecommand() called Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread awakened. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bad device number (5/0) or dev 0xc3640ea0 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread sleeping. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: us_queuecommand() called Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread awakened. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bad device number (6/0) or dev 0xc3640ea0 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread sleeping. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: us_queuecommand() called Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread awakened. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: Bad device number (7/0) or dev 0xc3640ea0 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb-storage: *** thread sleeping. Apr 24 16:04:30 dhcp-213-224-12-204 kernel: WARNING: USB Mass Storage data integrity not assured Apr 24 16:04:30 dhcp-213-224-12-204 kernel: USB Mass Storage device found at 2 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: usb.c: usb-storage driver claimed interface c2189d60 Apr 24 16:04:30 dhcp-213-224-12-204 kernel: USB Mass Storage support registered. Apr 24 16:08:04 dhcp-213-224-12-204 kernel: hub.c: port 1 connection change Apr 24 16:08:05 dhcp-213-224-12-204 kernel: hub.c: portstatus 100, change 3, High Speed Apr 24 16:08:05 dhcp-213-224-12-204 kernel: usb.c: USB disconnect on device 2 Apr 24 16:08:05 dhcp-213-224-12-204 kernel: usb-storage: storage_disconnect() called Apr 24 16:08:05 dhcp-213-224-12-204 kernel: hub.c: port 1 enable change, status 100 Apr 24 16:08:06 dhcp-213-224-12-204 kernel: hub.c: port 1 connection change Apr 24 16:08:06 dhcp-213-224-12-204 kernel: hub.c: portstatus 101, change 1, High Speed Apr 24 16:08:07 dhcp-213-224-12-204 kernel: hub.c: portstatus 103, change 10, High Speed Apr 24 16:08:07 dhcp-213-224-12-204 kernel: usb.c: USB new device connect, assigned device number 2 Apr 24 16:08:07 dhcp-213-224-12-204 kernel: usb.c: kmalloc IF c21892e0, numif 1 Apr 24 16:08:07 dhcp-213-224-12-204 kernel: usb.c: new device strings: Mfr=1, Product=2, SerialNumber=5 Apr 24 16:08:07 dhcp-213-224-12-204 kernel: usb.c: USB device number 2 default language ID 0x409 Apr 24 16:08:07 dhcp-213-224-12-204 kernel: Manufacturer: Iomega Apr 24 16:08:07 dhcp-213-224-12-204 kernel: Product: USB Zip 250 Apr 24 16:08:07 dhcp-213-224-12-204 kernel: SerialNumber: 059B003003005FC1 Apr 24 16:08:07 dhcp-213-224-12-204 kernel: usb-storage: USB Mass Storage device detected Apr 24 16:08:07 dhcp-213-224-12-204 kernel: usb-storage: Endpoints In 2 Out 1 Int 3 Apr 24 16:08:07 dhcp-213-224-12-204 kernel: usb-storage: Result from usb_set_interface is 0 Apr 24 16:08:07 dhcp-213-224-12-204 kernel: usb-storage: Found existing GUID 059b0030059b003003005fc1 Apr 24 16:08:07 dhcp-213-224-12-204 kernel: WARNING: USB Mass Storage data integrity not assured Apr 24 16:08:07 dhcp-213-224-12-204 kernel: USB Mass Storage device found at 2 Apr 24 16:08:07 dhcp-213-224-12-204 kernel: usb.c: usb-storage driver claimed interface c21892e0
Quoted 2 lines · Daniel Gonzalez
After a very long week, I think I am close to actually access my 250 Usb Zip drive. I have now 2.3.99-pre6.
You should feel priviliged. It took me months on and off to think I might be close.
I do have some bad news though - you probably should have stayed with Paulus' tree,
since Matt did think that there was some endian bugs, and I am pretty sure
Paul had at least a floppy disk working.
Quoted 4 lines
THE PROBLEM: I am not able to mount my Zip drive:
[root scsi]# mount
/mnt/usbzip/
mount:/dev/sdb4has wrong major or minor number
weird
Quoted 6 lines
THE DESCRIPTION:
I have the following/etc/fstabentry for the Zip
/dev/sdb4/mnt/usbzipauto noauto,user 0 0I have also tried with sda4.
Which should be the right device - this Powerbook is IDE, right? No SCSI attached? Then it should be on /dev/sda. But maybe /dev/sda1 if it is HFS disk? What does fdisk show as the partitions?
Quoted 10 lines
How do I get the major and minor numbers for a given device?
THE GOOD SIGNS
[root scsi]# cat/proc/scsi/usb-storage-0/2
Host scsi2: usb-storage
Vendor: Iomega
Product: USB Zip 250
Protocol: Bulk only
Transport: Transparent SCSIGUID: 059b0030059b003003005fc1
Looks good, although mine shows up slightly differently:
bradh@isp651:~ > more /proc/scsi/usb-storage-0/0 Host scsi0: usb-storage
Vendor: Iomega
Product: USB Zip 100
Protocol: Bulk only
Transport: Transparent SCSI
GUID: 059b00010000000000f41dea
Quoted 1 line
BTW, what is shm ?
SysV shared memory. You need to mount it on /var/shm
Quoted 3 lines
THE BAD SIGNS
[root scsi]# cat/proc/scsi/scsi
Attached devices: none
This is definately not so good.
Quoted 2 lines
This after I have issued a:
[root scsi]# echo "scsi add-single-device 1 0 0 0" >/proc/scsi/scsi
I don't need to do this any more. Do you get anything without it?
Quoted 4 lines
But it could be that the creation of
/proc/scsi/usb-storage-0/2was caused by that last command. I did not pay attention to that.What should I do know ?
This is showing up correctly in /proc/bus/usb/devices and /proc/bus/usb/drivers, right? The drive shows up and the usb-storage driver is associated with it?
Any more kernel debug messages?
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
This is a definate endian-ness problem. I just tested a fix on a bronze powerbook (lumbard) and it seems to work.
The fix will be in the next patch I send, tho that may be a while as I'm converting the entire driver to URBs to allow proper handling of timeouts.
Matt
Quoted 70 lines · Daniel Gonzalez
Quoted 5 lines · Matthew Dharm
Quoted 3 lines · Daniel Gonzalez
THE DESCRIPTION:
I have the following/etc/fstabentry for the ZipQuoted 7 lines
Quoted 3 lines
/dev/sdb4/mnt/usbzipauto noauto,user 0 0I have also tried with sda4.
Do you have support for SCSI disks available (either compiled in or as a module)?
Yes. I have done everything I considered necessary to enable SCSI (my machine has a real SCSI interface also, though I do not use it)
Quoted 30 lines
Quoted 9 lines
THE GOOD SIGNS
[root scsi]# cat/proc/scsi/usb-storage-0/2
Host scsi2: usb-storage
Vendor: Iomega
Product: USB Zip 250
Protocol: Bulk only
Transport: Transparent SCSIGUID: 059b0030059b003003005fc1This is a very good sign. It shows that the driver has identified the device, and attempted to communicate that information to the SCSI layer.
Quoted 1 line
[root scsi]# cat
/proc/filesystemsThis isn't needed for debugging.
Quoted 3 lines
THE BAD SIGNS
[root scsi]# cat/proc/scsi/scsi
Attached devices: noneHrm... so the SCSI layer probed for the device, but didn't find anything....
Quoted 2 lines
This after I have issued a:
[root scsi]# echo "scsi add-single-device 1 0 0 0" >/proc/scsi/scsiThis command isn't really needed anymore. Generally, when you attach a device, it will appear immediately.
Quoted 9 lines
Quoted 2 lines
But it could be that the creation of
/proc/scsi/usb-storage-0/2was caused by that last command. I did not pay attention to that.No, it wasn't. usb-storage-0/2 is created by connecting the device.
What you need to do now is set syslogd to save kern.* to a logfile, and then attach the device and load all the drivers, and send me the logfile. You also need to enable USB Mass Storage debugging.
Done. Find the log attached.
The activity which the logs includes is:
- connecting the Zip drive to a USB port.
- loading manually the usb-storage module (insmod)
- disconnecting and connectingthe Zip.Quoted 4 lines
I'm suspecting that this is an endian-ness problem. I should be able to identify that relatively quickly once you send me the logfile.
Quoted 6 lines
Thanks for your interest. I am not familiar with the USB specification, and also
not with the linux usb code. Are you the mantainer of that subsystem?BTW, I have sent half an hour ago another message regarding this problem. Most of the information is duplicated, though.
--
Matthew Dharm Home: [email protected]
Senior Engineer, QCP Inc. Work: [email protected]
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/