I recently acquired an IBM 128MB USB 2.0 memory key
<http://www-132.ibm.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=-840&langId=-1&partNumber=22P8998&storeId=1>.
The key works fine on two Windows XP boxes, but fails under Linux on
the same hardware.

The key itself reports vendor/product ID 0x0A16/0x9989.  This ID is
not listed in the Linux-USB device database at
<http://www.qbik.ch/usb/devices/index.php>, but its next-door neighbor
is.  Device ID 0x0A16/0x9988
<http://www.qbik.ch/usb/devices/showdev.php?id=1538> has the happy
green "fully supported" check mark in the database.  The description
("keychain storage device") would also describe my device, so these
two things must be nearly identical.  Yet my guy doesn't work, whereas
at least somebody claims that this other device does.

System details:

Machine #1 is an IBM ThinkPad X24 laptop with a Pentium III CPU and
two USB 2.0 connectors.  Linux environment is a stock Red Hat 8.0
system running Red Hat's prebuilt kernel 2.4.18 (Red Hat release
19.8.0).  Hot plugging is handled by hotplug-2002_04_01-13 and
apmd-3.0.2-12.  There are no other USB devices attached to the system.

When the memory key is plugged in, the hotplug loads up the
usb-storage module; the scsi_mod module had already been loaded for
ide-scsi.  The usb-uhci module had also already been loaded.  Several
messages appear in the system log.  A "usb_control/bulk_msg: timeout"
message is the first sign of trouble, followed soon thereafter by a
error message.  We then hit a series of floppy disk errors, which
seems a bit odd.  This laptop is away from its docking station and has
no floppy drive at all.

Efforts to find the key using "sfdisk /dev/sda", "sfdisk /dev/sdb",
and such hang indefinitely.

The complete system message log is as follows:

------------------------------------------------------------------------
00:58:20 kernel: hub.c: USB new device connect on bus2/1, assigned device number 2
00:58:20 kernel: usb.c: USB device 2 (vend/prod 0xa16/0x9989) is not claimed by any active driver.
00:58:24 /etc/hotplug/usb.agent: Setup usb-storage for USB product a16/9989/100
00:58:24 kernel: Initializing USB Mass Storage driver...
00:58:24 kernel: usb.c: registered new driver usb-storage
00:58:24 kernel: scsi1 : SCSI emulation for USB Mass Storage devices
00:58:45 kernel: usb_control/bulk_msg: timeout
00:58:56 kernel: scsi: device set offline - not ready or command retry failed after bus reset: host 1 channel 0 id 0 lun 0
00:58:56 kernel:   Vendor: IBM       Model: Memory Key        Rev: 1.01
00:58:56 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 00
00:58:56 kernel: USB Mass Storage support registered.
00:58:57 kernel: floppy1: Getstatus times out (0) on fdc 0
00:58:57 kernel:
00:58:57 kernel: floppy driver state
00:58:57 kernel: -------------------
00:58:57 kernel: now=5278597 last interrupt=5278597 diff=0 last called handler=00000000
00:58:57 kernel: timeout_message=lock fdc
00:58:57 kernel: last output bytes:
00:58:57 kernel:  0 90 9255
00:58:57 kernel:  8 81 9433
00:58:57 kernel:  7 80 9443
00:58:57 kernel:  0 90 9443
00:58:57 kernel:  8 81 9621
00:58:57 kernel: 12 80 11135
00:58:57 kernel:  0 90 11135
00:58:57 kernel: 13 80 11135
00:58:57 kernel:  0 90 11135
00:58:57 kernel: 1a 90 11135
00:58:57 kernel:  0 90 11135
00:58:57 kernel:  3 80 11135
00:58:57 kernel: c1 90 11135
00:58:57 kernel: 10 90 11135
00:58:57 kernel:  7 80 11135
00:58:57 kernel:  0 90 11135
00:58:57 kernel:  8 81 11313
00:58:57 kernel:  7 80 11323
00:58:57 kernel:  0 90 11323
00:58:57 kernel:  8 81 11501
00:58:57 kernel: last result at 11501
00:58:57 kernel: last redo_fd_request at 11557
00:58:57 kernel: 70  0
00:58:57 kernel: status=0
00:58:57 kernel: fdc_busy=0
00:58:57 kernel: cont=00000000
00:58:57 kernel: CURRENT=c03a2390
00:58:57 kernel: command_status=-1
00:58:57 kernel:
00:58:57 kernel: floppy1: get result error. Fdc=0 Last status=ffffffff Read bytes=0
00:58:57 kernel:
00:58:57 kernel: floppy driver state
00:58:57 kernel: -------------------
00:58:57 kernel: now=5278597 last interrupt=5278597 diff=0 last called handler=00000000
00:58:57 kernel: timeout_message=lock fdc
00:58:57 kernel: last output bytes:
00:58:57 kernel:  0 90 9255
00:58:57 kernel:  8 81 9433
00:58:57 kernel:  7 80 9443
00:58:57 kernel:  0 90 9443
00:58:57 kernel:  8 81 9621
00:58:57 kernel: 12 80 11135
00:58:57 kernel:  0 90 11135
00:58:57 kernel: 13 80 11135
00:58:57 kernel:  0 90 11135
00:58:57 kernel: 1a 90 11135
00:58:57 kernel:  0 90 11135
00:58:57 kernel:  3 80 11135
00:58:57 kernel: c1 90 11135
00:58:57 kernel: 10 90 11135
00:58:57 kernel:  7 80 11135
00:58:57 kernel:  0 90 11135
00:58:57 kernel:  8 81 11313
00:58:57 kernel:  7 80 11323
00:58:57 kernel:  0 90 11323
00:58:57 kernel:  8 81 11501
00:58:57 kernel: last result at 11501
00:58:57 kernel: last redo_fd_request at 11557
00:58:57 kernel: 70  0
00:58:57 kernel: status=0
00:58:57 kernel: fdc_busy=0
00:58:57 kernel: cont=00000000
00:58:57 kernel: CURRENT=c03a2390
00:58:57 kernel: command_status=-1
00:58:57 kernel:
00:58:57 kernel: floppy1: unexpected interrupt
------------------------------------------------------------------------


Contents of "/proc/bus/usb/devices" are as follows:

------------------------------------------------------------------------
T:  Bus=03 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=1840
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=02 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=1820
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=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0a16 ProdID=9989 Rev= 1.00
S:  Manufacturer=IBM
S:  Product=IBM USB Memory Key
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 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
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=1800
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
------------------------------------------------------------------------


Contents of "/proc/bus/usb/drivers" as as follows:

------------------------------------------------------------------------
         usbdevfs
         hub
 96-111: hiddev
         hid
         usb-storage
------------------------------------------------------------------------



Machine #2 is a custom-built desktop box with a Pentium 4 CPU and
several USB 1.0 connectors.  Linux environment is mostly stock Red Hat
8.0, but with a self-configured and self-built kernel 2.4.20 based on
Linus's official sources (no Red Hat patches).  Hot plugging is
handled by hotplug-2002_04_01-13 and acpid-1.0.1.  One other USB
device is already attached to the system: a mouse.

When the memory key is plugged in, the hotplug loads up the
usb-storage module; the scsi_mod and usb-uhci modules had already been
loaded to support other subsystems.  Several messages appear in the
system log.  We see several "usb_control/bulk_msg: timeout" messages
as well as a SCSI error message.  It also appears that the device gets
disconnected at one point, then reconnected with a new assigned
address, followed by more errors.  No messages about floppy drives,
but the floppy drive was accessed twice, briefly.  I find this rather
odd.

Efforts to find the key using "sfdisk /dev/sda", "sfdisk /dev/sdb",
and such fail immediately.  Disagnostic output reports "/dev/sda: No
such device or address" followed by "sfdisk: cannot open /dev/sda
read-write".

The complete system message log is as follows; I've added notes
marking where the floppy drive was accessed:

------------------------------------------------------------------------
01:42:24 kernel: hub.c: new USB device 00:07.3-2, assigned address 2
01:42:24 kernel: usb.c: USB device 2 (vend/prod 0xa16/0x9989) is not claimed by any active driver.
01:42:27 /etc/hotplug/usb.agent: Setup usb-storage for USB product a16/9989/100
01:42:27 kernel: Initializing USB Mass Storage driver...
01:42:27 kernel: usb.c: registered new driver usb-storage
01:42:27 kernel: usb-uhci.c: interrupt, status 2, frame# 194
01:42:28 kernel: usb_control/bulk_msg: timeout
01:42:28 kernel: scsi1 : SCSI emulation for USB Mass Storage devices
01:42:49 kernel: usb_control/bulk_msg: timeout
01:42:49 kernel: usb.c: USB disconnect on device 00:07.3-2 address 2
01:42:50 kernel: hub.c: new USB device 00:07.3-2, assigned address 3
<floppy drive accessed at or near time 01:42:50>
01:42:54 kernel: usb-uhci.c: interrupt, status 3, frame# 671
01:42:54 kernel: scsi: device set offline - not ready or command retry failed after bus reset: host 1 channel 0 id 0 lun 0
01:42:54 kernel: USB Mass Storage support registered.01:42:55 kernel: usb_control/bulk_msg: timeout
01:42:55 kernel: scsi2 : SCSI emulation for USB Mass Storage devices
<floppy drive accessed at or near time 01:42:55>
01:43:16 kernel: usb_control/bulk_msg: timeout
------------------------------------------------------------------------


Contents of "/proc/bus/usb/devices" are as follows:

------------------------------------------------------------------------
T:  Bus=02 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=dc00
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=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0a16 ProdID=9989 Rev= 1.00
S:  Manufacturer=IBM
S:  Product=IBM USB Memory Key
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc= 93/900 us (10%), #Int=  1, #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=d800
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=01 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=045e ProdID=001e Rev= 1.14
S:  Manufacturer=Microsoft
S:  Product=Microsoft IntelliMouse� Explorer
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=hid
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=10ms
------------------------------------------------------------------------


Contents of "/proc/bus/usb/drivers" as as follows:

------------------------------------------------------------------------
         usbdevfs
         hub
         hid
         usb-storage
------------------------------------------------------------------------


So then.  Any suggestions?  I'd be grateful for any advice, and am
perfectly willing to try suggested fixes (including those requiring
kernel changes) or provide any additional information that might help.

[That said, I will be traveling and have limited connectivity from
January 14 (this coming Tuesday) through the beginning of February.
If you send a message during that time and I do not reply, I haven't
lost interest.  I've just lost connectivity, and will endeavor to pick
things up again once I am back online.]




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to