Subject: Re: New umass(4) driver
To: Lennart Augustsson <lennart@augustsson.net>
From: Erik Bertelsen <erik@mediator.uni-c.dk>
List: current-users
Date: 04/03/2000 22:31:49
On Mon, Apr 03, 2000 at 01:56:11AM +0200, Lennart Augustsson wrote:
> I've tried the driver with a Zip 100 and an Imation Superdisk.  If you try it
> with something else please tell me what happens.
> 

With my Ricoh RDC-5300 digital camera, I get:


umass0 at uhub0 port 1 configuration 1 interface 0
umass0: RICOH RDC-5000, rev 1.00/1.21, addr 3
umass0: using UFI over CBI
scsibus2 at umass0: 2 targets, 1 luns per target
scsibus2: waiting 2 seconds for devices to settle...
sd1 at scsibus2 target 1 lun 0: <RICOH, USB CAMERA DRIVE, 1.21> SCSI0 0/direct removable
sd1: could not mode sense (4/5); using fictitious geometry
sd1: 720 KB, 0 cyl, 64 head, 32 sec, 512 bytes/sect x 1441 sectors
sd1: could not mode sense (4/5); using fictitious geometry
sd1(umass0:1:0): illegal request, data = 00 00 00 00 24 00 00 00 00 00
sd1: I/O error reading block zero

I don't know whether to expect a scsibus  or an atapibus-attachment. Anyway the
camera mounts as two disks under MacOS, one 8MB and the other reflecting the
32MB smartmedia card.

This is with today's sup, but with umass.c updated to 1.31 and usb.h to 1.44 via
anoncvs.

The three bottom lines from dmesg came from trying to run 'disklabel sd1', which results
in:


# /dev/rsd1c:
type: SCSI
disk: USB CAMERA DRIV
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 0
total sectors: 1441
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# microseconds
track-to-track seek: 0	# microseconds
drivedata: 0 

3 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  c:     1441        0     unused        0     0         # (Cyl.    0 - 0*)

This is somewhat bogus, e.g. 0 cylinders. Maybe more data is bogus, which just
happens to reflect an old 720KB diskette.

best regards
Erik Bertelsen (who will be happy to do more testing).