Matt> Your linux/drivers/usb/storage/unusual_devs.h files aren't the
Matt> same between the two systems.  The device isn't actually
Matt> compliant.  It only works because of an entry in that file.

OK, I got the unusual_devs.h file from 2.4.20 and compiled that
version (and the newer usb.h) into my kernel.  Now, the device gets
recognized, but I still have issues.  Here are the console logs from
when I plugged in the Apacer with a Sandisk CF card in it, and tried
to do fdisk:

# dmesg -n 8
# hub.c: port 1 connection change
hub.c: port 1, portstatus 101, change 1, 12 Mb/s
hub.c: port 1, portstatus 103, change 10, 12 Mb/s
hub.c: USB new device connect on bus1/1, assigned device number 3
usb.c: kmalloc IF 803bdec0, numif 1
usb.c: new device strings: Mfr=1, Product=2, SerialNumber=3
usb.c: USB device number 3 default language ID 0x409
Manufacturer: DataFab Systems Inc.
Product: USB CF+SM
SerialNumber: DD1B6F5C1B
usb-storage: act_altsettting is 0
usb-storage: id_index calculated to be: 60
usb-storage: Array length appears to be: 86
usb-storage: Vendor: Datafab Systems, Inc.
usb-storage: Product: USB to CF + SM Combo (LC1)
usb-storage: USB Mass Storage device detected
usb-storage: Endpoints: In: 0x8109f9b4 Out: 0x8109f9a0 Int: 0x00000000 (Period 0)
usb-storage: New GUID 07c4a109000000dd1b6f5c1b
usb-storage: Transport: Datafab Bulk-Only
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 ff 00 20 80 00 00 00 00
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  INQUIRY.  Returning bogus response<7>usb-storage: 
Fixing INQUIRY data to show SCSI rev 2
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
  Vendor: Datafab   Model: USB to CF + SM C  Rev: 8000
  Type:   Direct-Access                      ANSI SCSI revision: 02
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage: 12 20 00 00 ff 00 20 80 00 00 00 00
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  INQUIRY.  Returning bogus response<7>usb-storage: 
Fixing INQUIRY data to show SCSI rev 2
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
  Vendor: Datafab   Model: USB to CF + SM C  Rev: 8000
  Type:   Direct-Access                      ANSI SCSI revision: 02
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Bad LUN (0/2)
usb-storage: *** thread sleeping.
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.
Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
Attached scsi removable disk sdc at scsi1, channel 0, id 0, lun 1
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 00 00 00 10
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  TEST_UNIT_READY.
usb-storage: datafab_determine_lun:  locating...
usb-storage: datafab_bulk_write:  len = 8
usb-storage: datafab_raw_bulk:  Transfered 8 of 8 bytes
usb-storage: datafab_bulk_read:  len = 512
usb-storage: datafab_raw_bulk:  Warning. Transferred only 2 bytes
usb-storage: datafab_bulk_write:  len = 8
usb-storage: datafab_raw_bulk:  Transfered 8 of 8 bytes
usb-storage: datafab_bulk_read:  len = 512
usb-storage: datafab_raw_bulk:  Warning. Transferred only 2 bytes
usb-storage: datafab_bulk_write:  len = 8
usb-storage: datafab_raw_bulk:  Transfered 8 of 8 bytes
usb-storage: datafab_bulk_read:  len = 512
usb-storage: datafab_raw_bulk:  Transfered 512 of 512 bytes
usb-storage: datafab_bulk_write:  len = 8
usb-storage: datafab_raw_bulk:  Transfered 8 of 8 bytes
usb-storage: datafab_bulk_read:  len = 512
usb-storage: datafab_raw_bulk:  Transfered 512 of 512 bytes
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command READ_CAPACITY (10 bytes)
usb-storage: 25 00 00 00 00 00 00 00 00 00 00 10
usb-storage: Invoking Mode Translation
usb-storage: datafab_bulk_write:  len = 8
usb-storage: datafab_raw_bulk:  Transfered 8 of 8 bytes
usb-storage: datafab_bulk_read:  len = 512
usb-storage: datafab_raw_bulk:  Transfered 512 of 512 bytes
usb-storage: datafab_transport:  READ_CAPACITY:  250880 sectors, 512 bytes per sector
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
SCSI device sdb: 250881 512-byte hdwr sectors (128 MB)
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command MODE_SENSE (6 bytes)
usb-storage: 1a 00 3f 00 ff 00 00 00 00 00 00 10
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  MODE_SENSE_10 detected
usb-storage: datafab_handle_mode_sense:  Current values
usb-storage: -- converting 10 byte sense data to 6 byte
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
sdb: Write Protect is off
 /dev/scsi/host1/bus0/target0/lun0:<7>usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command READ_10 (10 bytes)
usb-storage: 28 00 00 00 00 00 00 00 08 00 00 00
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  READ_10: read block 0x0000  count 8
usb-storage: datafab_read_data:  sending following command
usb-storage: datafab:  00 08 00 00 00 e0 20 01 
usb-storage: datafab_bulk_write:  len = 8
usb-storage: datafab_raw_bulk:  Transfered 8 of 8 bytes
usb-storage: datafab_bulk_read:  len = 4096
usb-storage: datafab_raw_bulk:  Transfered 4096 of 4096 bytes
usb-storage: datafab_read_data results:  4096 bytes
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
 p1
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command TEST_UNIT_READY (6 bytes)
usb-storage: 00 20 00 00 00 00 00 00 00 00 00 10
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  TEST_UNIT_READY.
usb-storage: datafab_bulk_write:  len = 8
usb-storage: datafab_raw_bulk:  Transfered 8 of 8 bytes
usb-storage: datafab_bulk_read:  len = 512
usb-storage: datafab_raw_bulk:  Transfered 512 of 512 bytes
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command READ_CAPACITY (10 bytes)
usb-storage: 25 20 00 00 00 00 00 00 00 00 00 10
usb-storage: Invoking Mode Translation
usb-storage: datafab_bulk_write:  len = 8
usb-storage: datafab_raw_bulk:  Transfered 8 of 8 bytes
usb-storage: datafab_bulk_read:  len = 512
usb-storage: datafab_raw_bulk:  Transfered 512 of 512 bytes
usb-storage: datafab_transport:  READ_CAPACITY:  250880 sectors, 512 bytes per sector
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
SCSI device sdc: 250881 512-byte hdwr sectors (128 MB)
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command MODE_SENSE (6 bytes)
usb-storage: 1a 20 3f 00 ff 00 00 00 00 00 00 10
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  MODE_SENSE_10 detected
usb-storage: datafab_handle_mode_sense:  Current values
usb-storage: -- converting 10 byte sense data to 6 byte
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
sdc: Write Protect is off
 /dev/scsi/host1/bus0/target0/lun1:<7>usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command READ_10 (10 bytes)
usb-storage: 28 20 00 00 00 00 00 00 08 00 00 00
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  READ_10: read block 0x0000  count 8
usb-storage: datafab_read_data:  sending following command
usb-storage: datafab:  00 08 00 00 00 e0 20 01 
usb-storage: datafab_bulk_write:  len = 8
usb-storage: d
# fdisk /dev/scsi/host1/bus0/target/ 0/lun1 0/disc
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command START_STOP (6 bytes)
usb-storage: 1b 00 00 00 01 00 b0 2a c0 48 04 81
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  Gah! Unknown command: 27 (0x1b)
usb-storage: Bulk reset requested
usb-storage: Bulk soft reset completed
usb-storage: -- transport indicates transport failure
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command START_STOP (6 bytes)
usb-storage: 1b 00 00 00 01 00 b0 2a c0 48 04 81
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  Gah! Unknown command: 27 (0x1b)
usb-storage: Bulk reset requested
usb-storage: Bulk soft reset completed
usb-storage: -- transport indicates transport failure
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command START_STOP (6 bytes)
usb-storage: 1b 00 00 00 01 00 b0 2a c0 48 04 81
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  Gah! Unknown command: 27 (0x1b)
usb-storage: Bulk reset requested
usb-storage: Bulk soft reset completed
usb-storage: -- transport indicates transport failure
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command START_STOP (6 bytes)
usb-storage: 1b 00 00 00 01 00 b0 2a c0 48 04 81
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  Gah! Unknown command: 27 (0x1b)
usb-storage: Bulk reset requested
usb-storage: Bulk soft reset completed
usb-storage: -- transport indicates transport failure
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command START_STOP (6 bytes)
usb-storage: 1b 00 00 00 01 00 b0 2a c0 48 04 81
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  Gah! Unknown command: 27 (0x1b)
usb-storage: Bulk reset requested
usb-storage: Bulk soft reset completed
usb-storage: -- transport indicates transport failure
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
VFS: Disk change detected on device sd(8,16)
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 00 00 3e 80
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  TEST_UNIT_READY.
usb-storage: datafab_bulk_write:  len = 8
usb-storage: datafab_raw_bulk:  Transfered 8 of 8 bytes
usb-storage: datafab_bulk_read:  len = 512
usb-storage: datafab_raw_bulk:  Transfered 512 of 512 bytes
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command READ_CAPACITY (10 bytes)
usb-storage: 25 00 00 00 00 00 00 00 00 00 3e 80
usb-storage: Invoking Mode Translation
usb-storage: datafab_bulk_write:  len = 8
usb-storage: datafab_raw_bulk:  Transfered 8 of 8 bytes
usb-storage: datafab_bulk_read:  len = 512
usb-storage: datafab_raw_bulk:  Transfered 512 of 512 bytes
usb-storage: datafab_transport:  READ_CAPACITY:  250880 sectors, 512 bytes per sector
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
SCSI device sdb: 250881 512-byte hdwr sectors (128 MB)
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command MODE_SENSE (6 bytes)
usb-storage: 1a 00 3f 00 ff 00 00 00 00 00 3e 80
usb-storage: Invoking Mode Translation
usb-storage: datafab_transport:  MODE_SENSE_10 detected
usb-storage: datafab_handle_mode_sense:  Current values
usb-storage: -- converting 10 byte sense data to 6 byte
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
sdb: Write Protect is off
 /dev/scsi/host1/bus0/target0/lun0: I/O error: dev 08:10, sector 0
 I/O error: dev 08:10, sector 0
 unable to read partition table
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
usb-storage: 1e 00 00 00 01 00 00 00 f4 ff ff ff
usb-storage: Invoking Mode Translation
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
 I/O error: dev 08:10, sector 0
 I/O error: dev 08:10, sector 0

Unable to read /dev/scsi/host1/busb-storage: queuecommand() called
us0/target0/lun0usb-storage: *** thread awakened.
/disc
usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
usb-storage: 1e 00 00 00 00 00 3e 80 20 d1 3e 80
usb-storage: Invoking Mode Translation
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
# 



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to