usb/75928: Cytronix SmartMedia card (SMC) reader has problems when card changed

Arne Wörner arne_woerner at yahoo.com
Fri Jan 7 12:30:46 PST 2005


>Number:         75928
>Category:       usb
>Synopsis:       Cytronix SmartMedia card (SMC) reader has problems when card changed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 07 20:30:35 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Arne Wörner
>Release:        R5.3
>Organization:
>Environment:
FreeBSD neo.riddick.homeunix.org. 5.3-RELEASE FreeBSD 5.3-RELEASE #20: Wed Jan  5 20:33:11 UTC 2005     aw at neo.riddick.homeunix.org.:/opt/src/sys/i386/compile/RIDDICK  i386

slight modifications in dev/bktr

>Description:
Since today I have a Cytronix SmartMedia card reader (CR-T2-US; USB vendor  ID 0xC45, USB product ID 0x1064). The card is accessible via /dev/da0

Whenever I remove the SmartMedia card and reinsert it, "dd" says, that the device is not configured.

Whenever I execute "smartctl -a /dev/da0" _two_ times, "dd" can read the da0 device again...

I think there is a mistake in the SCSI-USB combination, so that the media change is handled incorrectly. Probably my device does not comply to the UMASS standard (if there is any such std). Since I do not have so much knowledge about SCSI/USB I am quite happy, that I have found that trick...
>How-To-Repeat:
[SmartMediaCard -SMC- is mounted and working fine...]
neo# umount /media/smc
neo# mount
/dev/vinum/base on / (ufs, local)
devfs on /dev (devfs, local)
/dev/vinum/user on /usr (ufs, local, soft-updates)
/dev/ad1s1e on /opt (ufs, local, soft-updates)
devfs on /var/named/dev (devfs, local)

[SMC removed and reinserted]

neo# !dd
dd if=/dev/da0 bs=64k count=100 of=/dev/null
dd: /dev/da0: Device not configured
neo# smartctl -a /dev/da0
smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
Device: USB CARD READER           Version: 0.20
(pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 1c 0 40 0 
(pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(pass0:umass-sim0:0:0:0): SCSI Status: Check Condition
(pass0:umass-sim0:0:0:0): NOT READY asc:3a,0
(pass0:umass-sim0:0:0:0): Medium not present
Device type: disk
(pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 19 0 40 0 
(pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(pass0:umass-sim0:0:0:0): SCSI Status: Check Condition
(pass0:umass-sim0:0:0:0): NOT READY asc:3a,0
(pass0:umass-sim0:0:0:0): Medium not present
Local Time is: Fri Jan  7 20:04:09 2005 UTC
(pass0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(pass0:umass-sim0:0:0:0): SCSI Status: Check Condition
(pass0:umass-sim0:0:0:0): NOT READY asc:3a,0
(pass0:umass-sim0:0:0:0): Medium not present
device Test Unit Ready  [Operation not permitted]
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
neo# dd if=/dev/da0 bs=64k count=100 of=/dev/null
dd: /dev/da0: Device not configured
neo# smartctl -a /dev/da0
smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
Device: USB CARD READER           Version: 0.20
(pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 1c 0 40 0 
(pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(pass0:umass-sim0:0:0:0): SCSI Status: Check Condition
(pass0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(pass0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
Device type: disk
(pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 19 0 40 0 
(pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(pass0:umass-sim0:0:0:0): SCSI Status: Check Condition
(pass0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(pass0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
Local Time is: Fri Jan  7 20:04:11 2005 UTC
(pass0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(pass0:umass-sim0:0:0:0): SCSI Status: Check Condition
(pass0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(pass0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
device Test Unit Ready  [Operation not permitted]
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
neo# dd if=/dev/da0 bs=64k count=100 of=/dev/null
100+0 records in
100+0 records out
6553600 bytes transferred in 6.602949 secs (992526 bytes/sec)

[SMC removed and reinserted]

neo# dd if=/dev/da0 bs=64k count=100 of=/dev/null
dd: /dev/da0: Device not configured
neo# sleep 300 ; dd if=/dev/da0 bs=64k count=100 of=/dev/null
dd: /dev/da0: Device not configured
neo# !sma
smartctl -a /dev/da0
smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
Device: USB CARD READER           Version: 0.20
(pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 1c 0 40 0 
(pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(pass0:umass-sim0:0:0:0): SCSI Status: Check Condition
(pass0:umass-sim0:0:0:0): NOT READY asc:3a,0
(pass0:umass-sim0:0:0:0): Medium not present
Device type: disk
(pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 19 0 40 0 
(pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(pass0:umass-sim0:0:0:0): SCSI Status: Check Condition
(pass0:umass-sim0:0:0:0): NOT READY asc:3a,0
(pass0:umass-sim0:0:0:0): Medium not present
Local Time is: Fri Jan  7 20:10:58 2005 UTC
(pass0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(pass0:umass-sim0:0:0:0): SCSI Status: Check Condition
(pass0:umass-sim0:0:0:0): NOT READY asc:3a,0
(pass0:umass-sim0:0:0:0): Medium not present
device Test Unit Ready  [Operation not permitted]
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
neo# dd if=/dev/da0 bs=64k count=100 of=/dev/null
dd: /dev/da0: Device not configured
neo# smartctl -a /dev/da0
smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
Device: USB CARD READER           Version: 0.20
(pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 1c 0 40 0 
(pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(pass0:umass-sim0:0:0:0): SCSI Status: Check Condition
(pass0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(pass0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
Device type: disk
(pass0:umass-sim0:0:0:0): MODE SENSE(06). CDB: 1a 0 19 0 40 0 
(pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(pass0:umass-sim0:0:0:0): SCSI Status: Check Condition
(pass0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(pass0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
Local Time is: Fri Jan  7 20:11:19 2005 UTC
(pass0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(pass0:umass-sim0:0:0:0): SCSI Status: Check Condition
(pass0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(pass0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
device Test Unit Ready  [Operation not permitted]
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
neo# dd if=/dev/da0 bs=64k count=100 of=/dev/null
100+0 records in
100+0 records out
6553600 bytes transferred in 6.608987 secs (991619 bytes/sec)
neo#

[after the second application of the smartctl trick da0 is again configured]

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-usb mailing list