Can you send a log from an attempt without the unusual_devs.h hacking?
Matt
On Mon, Jun 18, 2001 at 06:51:01PM -0600, Brian Hall wrote:
>
> Hello, I have a 32MB flash USBDrive from JMTek, and I'm trying to get
> it to work with Linux.
>
> The first time I modprobed usb-storage, after a long delay it finally
> returned and I could see the device as scsi1 and scsi2, although it
> didn't seem to be responding. After trying to add the device info to
> drivers/usb/storage/unusual_devs.h, I removed the module and tried
> again, and it simply never returns now- guess that was wrong, huh.
> Anyway, what is the method for adding a new storage device to the
> driver source so that it is recognized?
>
> I'm using the 2.4.5ac-15 kernel, with these modules:
>
> > lsmod
> Module Size Used by
> usb-storage 58704 (initializing)
> sg 24016 0 (unused)
> sd_mod 10448 0 (autoclean) (unused)
> usbvideo 23648 0
> videodev 4960 0 [usbvideo]
> es1371 26624 1
> ac97_codec 8656 0 [es1371]
> soundcore 3984 4 (autoclean) [es1371]
> analog 7136 0 (deleted)
> joydev 5984 0
> input 3456 0 [analog joydev]
> pcigame 1856 0 (unused)
> mga 91264 1
> lm78 7376 0 (unused)
> i2c-proc 6400 0 [lm78]
> i2c-piix4 4096 0 (unused)
> i2c-core 13232 0 [lm78 i2c-proc i2c-piix4]
> mga_vid 8032 0
> agpgart 14192 3
> gameport 1920 0 [es1371 analog pcigame]
> autofs 10176 0 (autoclean) (unused)
> 3c59x 24704 1 (autoclean)
> usb-uhci 21216 0 (unused)
> usbcore 53968 1 [usb-storage usbvideo usb-uhci]
> ide-scsi 7936 0
>
> >From /var/log/messages:
>
> Initializing USB Mass Storage driver...
> usb.c: registered new driver usb-storage
> usb-storage: act_altsettting is 0
> usb-storage: id_index calculated to be: 35
> usb-storage: Array length appears to be: 54
> usb-storage: USB Mass Storage device detected
> usb-storage: Endpoints: In: 0xd7dc6fa4 Out: 0xd7dc6fb8 Int: 0xd7dc6fcc
> (Period 0)
> usb-storage: New GUID 0b8651100000000000000000
> usb-storage: Transport: Control/Bulk
> usb-storage: Protocol: Reduced Block Commands (RBC)
> 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 ff 00 00 00 04 1f 10 c6
> usb-storage: Call to usb_stor_control_msg() returned 6
> usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
> usb-storage: command_abort() called
> usb-storage: usb_stor_bulk_msg() returned -2 xferred 0/255
> usb-storage: usb_stor_transfer_partial(): transfer aborted
> usb-storage: CB data stage result is 0x3
> usb-storage: -- transport indicates command was aborted
> usb-storage: Fixing INQUIRY data to show SCSI rev 2
> usb-storage: scsi command aborted
> usb-storage: *** thread sleeping.
> usb-storage: queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Command TEST_UNIT_READY (6 bytes)
> usb-storage: 00 00 00 00 00 00 00 00 04 1f 10 c6
> usb-storage: Call to usb_stor_control_msg() returned 6
> 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-uhci.c: interrupt, status 3, frame# 1257
> usb-storage: usb_stor_bulk_msg() returned -84 xferred 0/18
> usb-storage: usb_stor_transfer_partial(): unknown error
> usb-storage: CB data stage result is 0x2
> usb-storage: -- Result from auto-sense is 0
> usb-storage: -- code: 0x0, key: 0x0, ASC: 0x0, ASCQ: 0x0
> usb-storage: No Sense: no additional sense information
> usb-storage: scsi cmd done, result=0x0
> usb-storage: *** thread sleeping.
> usb-storage: queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Command INQUIRY (6 bytes)
> usb-storage: 12 00 00 00 ff 00 00 00 04 1f 10 c6
> usb-uhci.c: interrupt, status 2, frame# 1259
> usb-storage: Call to usb_stor_control_msg() returned -110
> usb-storage: -- CB transport device requiring auto-sense
> usb-storage: CB_reset() called
> usb-uhci.c: interrupt, status 2, frame# 1261
> usb-storage: CB[I] soft reset failed -110
> usb-storage: -- transport indicates transport failure
> usb-storage: Fixing INQUIRY data to show SCSI rev 2
> usb-storage: scsi cmd done, result=0x70000
> usb-storage: *** thread sleeping.
> usb-storage: device_reset() called
> usb-storage: CB_reset() called
> hub.c: port 2 connection change
> hub.c: port 2, portstatus 100, change 3, 12 Mb/s
> usb.c: USB disconnect on device 4
> usb.c: kusbd: /sbin/hotplug remove 4
> usb.c: kusbd policy returned 0xfffffffe
> usb-uhci.c: interrupt, status 2, frame# 1263
> usb-storage: CB[I] soft reset failed -110
> usb-storage: bus_reset() called
> hub.c: port 2 enable change, status 100
> hub.c: port 2 connection change
> hub.c: port 2, portstatus 101, change 1, 12 Mb/s
> hub.c: port 2, portstatus 101, change 3, 12 Mb/s
> hub.c: port 2 of hub 1 not enabled, trying reset again...
> hub.c: port 2, portstatus 103, change 0, 12 Mb/s
> hub.c: USB new device connect on bus1/2, assigned device number 5
> usb.c: kmalloc IF cb8c2d84, numif 1
> usb.c: new device strings: Mfr=0, Product=0, SerialNumber=0
> usb-storage: host_reset() requested but not implemented
> scsi: device set offline - command error recover failed: host 1 channel
> 0 id 0 lun 0
> usb-storage: queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Bad target number (1/0)
> usb-storage: *** thread sleeping.
> usb-storage: queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Bad target number (2/0)
> usb-storage: *** thread sleeping.
> usb-storage: queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Bad target number (3/0)
> usb-storage: *** thread sleeping.
> usb-storage: queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Bad target number (4/0)
> usb-storage: *** thread sleeping.
> usb-storage: queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Bad target number (5/0)
> usb-storage: *** thread sleeping.
> usb-storage: queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Bad target number (6/0)
> usb-storage: *** thread sleeping.
> usb-storage: queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Bad target number (7/0)
> usb-storage: *** thread sleeping.
> WARNING: USB Mass Storage data integrity not assured
> USB Mass Storage device found at 4
> usb.c: usb-storage driver claimed interface d6d88514
> USB Mass Storage support registered.
> usb-storage: act_altsettting is 0
> usb-storage: id_index calculated to be: 35
> usb-storage: Array length appears to be: 54
> usb-storage: USB Mass Storage device detected
> usb-storage: Endpoints: In: 0xcda49854 Out: 0xcda49868 Int: 0xcda4987c
> (Period 0)
> usb-storage: New GUID 0b8651100000000000000000
> usb-storage: Transport: Control/Bulk
> usb-storage: Protocol: Reduced Block Commands (RBC)
> usb-storage: *** thread sleeping.
> scsi2 : 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 ff 00 00 00 44 1e 0c cf
> usb-storage: Call to usb_stor_control_msg() returned 6
> usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
> usb-storage: command_abort() called
> usb-storage: usb_stor_bulk_msg() returned -2 xferred 0/255
> usb-storage: usb_stor_transfer_partial(): transfer aborted
> usb-storage: CB data stage result is 0x3
> usb-storage: -- transport indicates command was aborted
> usb-storage: Fixing INQUIRY data to show SCSI rev 2
> usb-storage: scsi command aborted
> usb-storage: *** thread sleeping.
> usb-storage: queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Command TEST_UNIT_READY (6 bytes)
> usb-storage: 00 00 00 00 00 00 00 00 44 1e 0c cf
> usb-storage: Call to usb_stor_control_msg() returned 6
> 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: command_abort() called
> usb-storage: usb_stor_bulk_msg() returned -2 xferred 0/18
> usb-storage: usb_stor_transfer_partial(): transfer aborted
> usb-storage: CB data stage result is 0x3
> usb-storage: -- auto-sense failure
> usb-storage: CB_reset() called
> usb-storage: CB_reset: clearing endpoint halt
> usb-uhci.c: interrupt, status 3, frame# 1409
> usb-storage: CB_reset done
> usb-storage: scsi cmd done, result=0x70000
> usb-storage: *** thread sleeping.
> cdrom: open failed.
> VFS: Disk change detected on device sr(11,0)
> resize_dma_pool: unknown device type -1
> Attached scsi generic sg1 at scsi2, channel 0, id 0, lun 0, type -1
> resize_dma_pool: unknown device type -1
> usb-storage: usb_stor_exit() called
> usb-storage: -- calling usb_deregister()
> usb.c: deregistering driver usb-storage
> usb-storage: -- calling scsi_unregister_module()
> usb-storage: release() called for host usb-storage
> usb-storage: -- sending US_ACT_EXIT command to thread
> usb-storage: *** thread awakened.
> usb-storage: -- US_ACT_EXIT command received
> scsi : 2 hosts left.
> Initializing USB Mass Storage driver...
> usb.c: registered new driver usb-storage
> usb-storage: act_altsettting is 0
> usb-storage: id_index calculated to be: 36
> usb-storage: Array length appears to be: 55
> usb-storage: USB Mass Storage device detected
> usb-storage: Endpoints: In: 0xcda49854 Out: 0xcda49868 Int: 0xcda4987c
> (Period 0)
> usb-storage: New GUID 0b8651100000000000000000
> usb-storage: Transport: Control/Bulk
> usb-storage: Protocol: Reduced Block Commands (RBC)
> 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 ff 00 00 00 04 53 1e c9
> usb-storage: Call to usb_stor_control_msg() returned 6
> usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
> usb-storage: command_abort() called
> usb-storage: usb_stor_bulk_msg() returned -2 xferred 0/255
> usb-storage: usb_stor_transfer_partial(): transfer aborted
> usb-storage: CB data stage result is 0x3
> usb-storage: -- transport indicates command was aborted
> usb-storage: Fixing INQUIRY data to show SCSI rev 2
> usb-storage: scsi command aborted
> usb-storage: *** thread sleeping.
> usb-storage: queuecommand() called
> usb-storage: *** thread awakened.
> usb-storage: Command TEST_UNIT_READY (6 bytes)
> usb-storage: 00 00 00 00 00 00 00 00 04 53 1e c9
> usb-storage: Call to usb_stor_control_msg() returned 6
> 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: command_abort() called
> usb-storage: usb_stor_bulk_msg() returned -2 xferred 0/18
> usb-storage: usb_stor_transfer_partial(): transfer aborted
> usb-storage: CB data stage result is 0x3
> usb-storage: -- auto-sense failure
> usb-storage: CB_reset() called
> usb-storage: CB_reset: clearing endpoint halt
> usb-uhci.c: interrupt, status 3, frame# 961
> usb-storage: CB_reset done
> usb-storage: scsi cmd done, result=0x70000
> usb-storage: *** thread sleeping.
>
> > tail /usr/src/linux/drivers/usb/storage/unusual_devs.h
> "Casio",
> "QV DigitalCamera",
> US_SC_8070, US_PR_CB, NULL,
> US_FL_FIX_INQUIRY ),
>
> UNUSUAL_DEV( 0x0b86, 0x5110, 0x0100, 0x0100,
> "JMTek",
> "Flash USBDrive",
> US_SC_SCSI, US_PR_BULK, NULL, 0 ),
>
> --
>
> http://www.bigfoot.com/~brihall
> Linux Consultant
>
> The best defense is to stay out of range.
>
>
> _______________________________________________
> [EMAIL PROTECTED]
> To unsubscribe, use the last form field at:
> http://lists.sourceforge.net/lists/listinfo/linux-usb-devel
--
Matthew Dharm Home: [EMAIL PROTECTED]
Maintainer, Linux USB Mass Storage Driver
Why am I talking to a toilet brush?
-- CEO
User Friendly, 4/30/1998
PGP signature