> Try 2.3.99-pre7-2.  This has the latest USB Mass Storage code in it.  Did
> you select this to be built as a module for your kernel?

Yes I did. But with the 2.3.99-pre7-2 kernel I'm getting some better 
results, I'll describe them here. The bottom line is: the USB device is
recognized now (as being a mass storage device), scsi commands are
issued to interrogate the device, but I fail to mount any of the
/dev/sd* or /dev/scd* devices (I tried all of them w. xargs). There
does not appear a scsi devices in /proc/devices but I'm not sure if
it should. 

Relevant modules that I've loaded: usb-storage, uhci, usbcore, scsi_mod 
and isofs.

# cat /proc/bus/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI Root Hub
S:  SerialNumber=fce0
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=03f0 ProdID=0107 Rev= 2.00
S:  Manufacturer=Shuttle Technology Inc.
S:  Product=HP USB CD-Writer Plus
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl= 32ms


# cat /proc/bus/usb/drivers

         usb-storage
         hub
         usbdevfs

The USB storage scsi bridge also seems to be functioning properly:

# cat /proc/scsi/usb-storage-0/0

   Host scsi0: usb-storage
        Vendor: Shuttle Technology Inc.
      Product: HP USB CD-Writer Plus
Serial Number: None
     Protocol: 8070i
    Transport: Control/Bulk
          GUID: 03f001070000000000000000


However, I cannot mount any scsi device. When I cat /proc/devices, there's a
usb device at major 180 (is this /dev/bus/usb?) and nothing more that looks
like usb or scsi. When I cat /proc/scsi/scsi, then I see that there's a
host scsi0 with the following devices:

Attached devices: 
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: HP       Model: CD-Writer+ 8200  Rev: 1.0f
  Type:   CD-ROM                           ANSI SCSI revision: 02

for Lun = 01 to 07.

I echo'd "scsi add-single-device 1 0 0 0" > /proc/scsi/scsi but perhaps I
didn't do this at exactly the right moment (do I have to do this before
physically attaching the USB device?)

> > I noticed that Matti tried to mount it on /dev/scd0 ? I don't have
> > the unit at my work so I cannot currently try this. 
> 
> SCSI CD-ROMs appear as /dev/scdN devices.  You should always try mounting
> that.

When I try to mount:
# mount -t iso9660 /dev/scd0 /mnt/tmp
mount: /dev/scd0 has wrong major or minor number
# ls -al /dev/scd0
brw-r-----   1 root     disk      11,   0 Jul 18  1994 /dev/scd0

same for scd1 and all sd* devices.

the UHCI module:

May  8 21:18:46 toppy kernel: usb-uhci.c: $Revision: 1.228 $ time 19:54:21 May  4 2000 
May  8 21:18:46 toppy kernel: usb-uhci.c: High bandwidth mode enabled 
May  8 21:18:46 toppy kernel: usb-uhci.c: Intel USB controller: setting latency timer 
to 0 
May  8 21:18:46 toppy kernel: usb-uhci.c: USB UHCI at I/O 0xfce0, IRQ 11 

here are the messages from /usr/adm/debug:

May  8 21:18:46 toppy kernel: usb.c: kmalloc IF c32b01c0, numif 1 
May  8 21:18:46 toppy kernel: usb.c: new device strings: Mfr=0, Product=2, 
SerialNumber=1 
May  8 21:18:46 toppy kernel: usb.c: USB device number 1 default language ID 0x0 
May  8 21:18:46 toppy kernel: hub.c: ganged power switching 
May  8 21:18:46 toppy kernel: hub.c: standalone hub 
May  8 21:18:46 toppy kernel: hub.c: global over-current protection 
May  8 21:18:46 toppy kernel: hub.c: power on to power good time: 2ms 
May  8 21:18:46 toppy kernel: hub.c: hub controller current requirement: 0mA 
May  8 21:18:46 toppy kernel: hub.c: port 1 is removable 
May  8 21:18:46 toppy kernel: hub.c: port 2 is removable 
May  8 21:18:46 toppy kernel: hub.c: local power source is good 
May  8 21:18:46 toppy kernel: hub.c: no over-current condition exists 
May  8 21:18:46 toppy kernel: hub.c: enabling power on all ports 
May  8 21:18:46 toppy kernel: usb.c: hub driver claimed interface c32b01c0 
May  8 21:20:04 toppy kernel: hub.c: usb_hub_thread exiting 
May  8 21:20:27 toppy kernel: usb.c: kmalloc IF c32b0a80, numif 1 
May  8 21:20:27 toppy kernel: usb.c: new device strings: Mfr=0, Product=2, 
SerialNumber=1 
May  8 21:20:27 toppy kernel: usb.c: USB device number 1 default language ID 0x0 
May  8 21:20:27 toppy kernel: hub.c: ganged power switching 
May  8 21:20:27 toppy kernel: hub.c: standalone hub 
May  8 21:20:27 toppy kernel: hub.c: global over-current protection 
May  8 21:20:27 toppy kernel: hub.c: power on to power good time: 2ms 
May  8 21:20:27 toppy kernel: hub.c: hub controller current requirement: 0mA 
May  8 21:20:27 toppy kernel: hub.c: port 1 is removable 
May  8 21:20:27 toppy kernel: hub.c: port 2 is removable 
May  8 21:20:27 toppy kernel: hub.c: local power source is good 
May  8 21:20:27 toppy kernel: hub.c: no over-current condition exists 
May  8 21:20:27 toppy kernel: hub.c: enabling power on all ports 
May  8 21:20:27 toppy kernel: usb.c: hub driver claimed interface c32b0a80 
May  8 21:24:44 toppy kernel: uhci.c: root-hub INT complete: port1: 93 port2: 80 data: 
2 
May  8 21:24:44 toppy kernel: hub.c: port 1 connection change 
May  8 21:24:44 toppy kernel: hub.c: portstatus 101, change 1, High Speed
May  8 21:24:45 toppy kernel: hub.c: portstatus 103, change 0, High Speed 
May  8 21:24:45 toppy kernel: usb.c: kmalloc IF c32b0d80, numif 1 
May  8 21:24:45 toppy kernel: usb.c: new device strings: Mfr=1, Product=2, 
SerialNumber=0 
May  8 21:24:45 toppy kernel: usb.c: USB device number 2 default language ID 0x409 
May  8 21:24:45 toppy kernel: usb-storage.c: Searching unusual device list for (0x3f0, 
0x107, 0x200)... 
May  8 21:24:45 toppy kernel: usb-storage.c: -- found matching device: HP USB 
CD-Writer Plus 
May  8 21:24:45 toppy kernel: usb-storage.c: USB Mass Storage device detected 
May  8 21:24:45 toppy kernel: usb-storage.c: Endpoints: In: 0xc3d2a791 Out: 0xc3d2a780 
Int: 0xc3d2a7a2 (Period 32) 
May  8 21:24:45 toppy kernel: usb-storage.c: Result from usb_set_interface is 0 
May  8 21:24:45 toppy kernel: usb-storage.c: New GUID 03f001070000000000000000 
May  8 21:24:45 toppy kernel: usb-storage.c: Transport: Control/Bulk 
May  8 21:24:45 toppy kernel: usb-storage.c: Protocol: 8070i 
May  8 21:24:45 toppy kernel: usb-storage.c: *** thread sleeping. 
May  8 21:24:45 toppy kernel: usb-storage.c: us_queuecommand() called 
May  8 21:24:45 toppy kernel: usb-storage.c: *** thread awakened. 
May  8 21:24:45 toppy kernel: usb-storage.c: Command TEST_UNIT_READY (6 bytes) 
May  8 21:24:45 toppy kernel: usb-storage.c:   00 00 00 00 00 00 00 00 01 00 
May  8 21:24:45 toppy kernel: usb-storage.c: Call to usb_control_msg() returned -32 
May  8 21:24:45 toppy kernel: usb-storage.c: -- Stall on control pipe. Clearing 
May  8 21:24:45 toppy kernel: usb-storage.c: -- usb_clear_halt() returns -32 
May  8 21:24:45 toppy kernel: usb-storage.c: -- CB transport device requiring 
auto-sense 
May  8 21:24:45 toppy kernel: usb-storage.c: -- transport indicates command failure 
May  8 21:24:45 toppy kernel: usb-storage.c: Issuing auto-REQUEST_SENSE 
May  8 21:24:45 toppy kernel: usb-storage.c: Bulk xfer 0xc2bf6d00(18) 
May  8 21:24:45 toppy kernel: usb-storage.c: bulk_msg returned 0 xferred 18/18 
May  8 21:24:45 toppy kernel: usb-storage.c: CB data stage result is 0x0 
May  8 21:24:45 toppy kernel: usb-storage.c: -- Result from auto-sense is 0 
May  8 21:24:45 toppy kernel: usb-storage.c: -- code: 0x70, key: 0x6, ASC: 0x29, ASCQ: 
0x0 
May  8 21:24:45 toppy kernel: usb-storage.c: scsi cmd done, result=0x1 
May  8 21:24:45 toppy kernel: usb-storage.c: *** thread sleeping. 
May  8 21:24:45 toppy kernel: usb-storage.c: us_queuecommand() called 
May  8 21:24:45 toppy kernel: usb-storage.c: *** thread awakened. 
May  8 21:24:45 toppy kernel: usb-storage.c: Command INQUIRY (6 bytes) 
May  8 21:24:45 toppy kernel: usb-storage.c:   12 00 00 00 ff 00 00 00 01 00 
May  8 21:24:45 toppy kernel: usb-storage.c: Bulk xfer 0xc315fcc4(256) 
May  8 21:24:45 toppy kernel: usb-storage.c: bulk_msg returned 0 xferred 96/256 
May  8 21:24:45 toppy kernel: usb-storage.c: CB data stage result is 0x1 
May  8 21:24:45 toppy kernel: usb-storage.c: -- CB transport device requiring 
auto-sense 
May  8 21:24:45 toppy kernel: usb-storage.c: Issuing auto-REQUEST_SENSE 
May  8 21:24:45 toppy kernel: usb-storage.c: Bulk xfer 0xc2bf6d00(18) 
May  8 21:24:45 toppy kernel: usb-storage.c: bulk_msg returned 0 xferred 18/18 
May  8 21:24:45 toppy kernel: usb-storage.c: CB data stage result is 0x0 
May  8 21:24:45 toppy kernel: usb-storage.c: -- Result from auto-sense is 0 
May  8 21:24:45 toppy kernel: usb-storage.c: -- code: 0x70, key: 0x0, ASC: 0x0, ASCQ: 
0x0 
May  8 21:24:45 toppy kernel: usb-storage.c: scsi cmd done, result=0x0 
May  8 21:24:45 toppy kernel: usb-storage.c: *** thread sleeping. 
May  8 21:24:45 toppy kernel: usb-storage.c: us_queuecommand() called 
May  8 21:24:45 toppy kernel: usb-storage.c: *** thread awakened. 
May  8 21:24:45 toppy kernel: usb-storage.c: Command TEST_UNIT_READY (6 bytes) 
May  8 21:24:45 toppy kernel: usb-storage.c:   00 20 00 00 00 00 00 00 01 00 
May  8 21:24:45 toppy kernel: usb-storage.c: -- CB transport device requiring 
auto-sense 
May  8 21:24:45 toppy kernel: usb-storage.c: Issuing auto-REQUEST_SENSE 
May  8 21:24:45 toppy kernel: usb-storage.c: Bulk xfer 0xc2bf6d00(18) 
May  8 21:24:45 toppy kernel: usb-storage.c: bulk_msg returned 0 xferred 18/18 
May  8 21:24:45 toppy kernel: usb-storage.c: CB data stage result is 0x0 
May  8 21:24:45 toppy kernel: usb-storage.c: -- Result from auto-sense is 0 
May  8 21:24:45 toppy kernel: usb-storage.c: -- code: 0x70, key: 0x0, ASC: 0x0, ASCQ: 
0x0 
May  8 21:24:45 toppy kernel: usb-storage.c: scsi cmd done, result=0x0 
May  8 21:24:45 toppy kernel: usb-storage.c: *** thread sleeping. 
May  8 21:24:45 toppy kernel: usb-storage.c: us_queuecommand() called 
May  8 21:24:45 toppy kernel: usb-storage.c: *** thread awakened. 
May  8 21:24:45 toppy kernel: usb-storage.c: Command INQUIRY (6 bytes) 
May  8 21:24:45 toppy kernel: usb-storage.c:   12 20 00 00 ff 00 00 00 01 00 
May  8 21:24:45 toppy kernel: usb-storage.c: Bulk xfer 0xc315fcc4(256) 
May  8 21:24:45 toppy kernel: usb-storage.c: bulk_msg returned 0 xferred 96/256 
May  8 21:24:45 toppy kernel: usb-storage.c: CB data stage result is 0x1 
May  8 21:24:45 toppy kernel: usb-storage.c: -- CB transport device requiring 
auto-sense 

and really a lot more TEST_UNIT_READY and auto-REQUEST_SENSE and INQUIRY
commands (one set for each SCSI Lun?)

After these, there were seven "bad device number" messagess
May  8 21:24:45 toppy kernel: usb-storage.c: us_queuecommand() called 
May  8 21:24:45 toppy kernel: usb-storage.c: *** thread awakened. 
May  8 21:24:45 toppy kernel: usb-storage.c: Bad device number (1/0) 
May  8 21:24:45 toppy kernel: usb-storage.c: *** thread sleeping. 

for device = (1/0) to (7/0).
These were not generated by my playing around with mount, as the messages
above were generated during boot time.

After these messages:
May  8 21:24:45 toppy kernel: WARNING: USB Mass Storage data integrity not
assured 
May  8 21:24:45 toppy kernel: USB Mass Storage device found at 2 
May  8 21:24:45 toppy kernel: usb.c: usb-storage driver claimed interface c32b0d80 

I tried disconnecting and reconnecting the device after making sure I 
set the SCSI driver to single-device, but apparently the USB stack reuses
information:

May  8 22:00:16 toppy kernel: usb.c: kmalloc IF c23ad4c0, numif 1 
May  8 22:00:16 toppy kernel: usb.c: new device strings: Mfr=1, Product=2, 
SerialNumber=0 
May  8 22:00:16 toppy kernel: usb.c: USB device number 2 default language ID 0x409 
May  8 22:00:16 toppy kernel: usb-storage.c: Searching unusual device list for (0x3f0, 
0x107, 0x200)... 
May  8 22:00:16 toppy kernel: usb-storage.c: -- found matching device: HP USB 
CD-Writer Plus 
May  8 22:00:16 toppy kernel: usb-storage.c: USB Mass Storage device detected 
May  8 22:00:16 toppy kernel: usb-storage.c: Endpoints: In: 0xc3d2aa91 Out:
0xc3d2aa80 Int: 0xc3d2aaa2 (Period 32) 
May  8 22:00:16 toppy kernel: usb-storage.c: Result from usb_set_interface is 0 
May  8 22:00:16 toppy kernel: usb-storage.c: Found existing GUID 
03f001070000000000000000 
May  8 22:00:16 toppy kernel: WARNING: USB Mass Storage data integrity not assured 
May  8 22:00:16 toppy kernel: USB Mass Storage device found at 2 
May  8 22:00:16 toppy kernel: usb.c: usb-storage driver claimed interface c23ad4c0 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to