Subject: kern/10084: Y-E Data floppy doesn't work with umass
To: None <gnats-bugs@gnats.netbsd.org>
From: John Hawkinson <jhawk@mit.edu>
List: netbsd-bugs
Date: 05/09/2000 11:59:23
>Number:         10084
>Category:       kern
>Synopsis:       Y-E Data floppy doesn't work with umass
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 09 12:00:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     John Hawkinson
>Release:        8 May 2000
>Organization:
	MIT
>Environment:
	
System: NetBSD zorkmid.mit.edu 1.4Y NetBSD 1.4Y (ZORKMID-$Revision: 1.4 $) #52: Tue May 9 14:06:58 EDT 2000 jhawk@zorkmid.mit.edu:/usr/local/current-src/sys/arch/i386/compile/ZORKMID i386


>Description:
	Trying to use the Y-E Data USB floppy on my Sony VAIO PCG-Z505HE.

In short, "it doesn't seem to work". Reads and writes return quickly,
reads return all zeroes.

I'm not certain if this device is supposed to work -- it looks like
there's a quirk entry in umass.c for it, so I guess that means
it should function.

Of course it works under Windows ;-)

>How-To-Repeat:
	
 It probes OK:

umass0 at uhub0 port 2 configuration 1 interface 0
umass0: Y-E DATA FlashBuster-U, rev 1.00/1.28, addr 2
umass0: using UFI over CBI-I
scsibus0 at umass0: 2 targets, 1 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <Y-E DATA, USB-FDU, 1.28> SCSI0 0/direct removable
sd0: drive offline


or with a floppy in:

umass0 at uhub0 port 2 configuration 1 interface 0
umass0: Y-E DATA FlashBuster-U, rev 1.00/1.28, addr 2
umass0: using UFI over CBI-I
scsibus0 at umass0: 2 targets, 1 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <Y-E DATA, USB-FDU, 1.28> SCSI0 0/direct removable
sd0: mode sense (4) returned nonsense; using fictitious geometry
sd0: 1440 KB, 1 cyl, 64 head, 32 sec, 512 bytes/sect x 2880 sectors


Every time I try to do an operation, though, I get the kernel printfs
about the label and geometry:

sd0: could not mode sense (4/5); using fictitious geometry
sd0: no disk label
sd0: could not mode sense (4/5); using fictitious geometry
sd0: no disk label
sd0: could not mode sense (4/5); using fictitious geometry
sd0: no disk label
sd0: could not mode sense (4/5); using fictitious geometry
sd0: no disk label
sd0: could not mode sense (4/5); using fictitious geometry
sd0: no disk label
sd0: could not mode sense (4/5); using fictitious geometry
sd0: no disk label

Attempts to write a label were unsucessful, either in-core
or on-disk.

zorkmid# disklabel sd0
# /dev/rsd0d:
type: SCSI
disk: USB-FDU
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 1
total sectors: 2880
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

4 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  d:     2880        0     unused        0     0         # (Cyl.    0 - 1*)
disklabel: boot block size 0
disklabel: super block size 0
zorkmid# dd if=/dev/rsd0d of=/tmp/y count=1
1+0 records in
1+0 records out
512 bytes transferred in 1 secs (512 bytes/sec)
zorkmid# dd if=/dev/rsd0d of=/tmp/s count=100
100+0 records in
100+0 records out
51200 bytes transferred in 2 secs (25600 bytes/sec)
zorkmid# od -x /tmp/s
0000000     0000    0000    0000    0000    0000    0000    0000    0000
*
0144000
zorkmid# yes | dd of=/dev/rsd0d count=100
100+0 records in
100+0 records out
51200 bytes transferred in 1 secs (51200 bytes/sec)
zorkmid# yes | dd of=/dev/rsd0d count=100od -x /tmp/sdd if=/dev/rsd0d of=/tmp/s count=100isklabel sd0d if=/dev/rsd0d of=/tmp/s count=1
1+0 records in
1+0 records out
512 bytes transferred in 1 secs (512 bytes/sec)
zorkmid# dd if=/dev/rsd0d of=/tmp/s count=100
100+0 records in
100+0 records out
51200 bytes transferred in 1 secs (51200 bytes/sec)
zorkmid# od -x /tmp/s
0000000     0000    0000    0000    0000    0000    0000    0000    0000
*
0144000
zorkmid# 


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