Subject: Re: Sony Vaio Memstick + umass / scsipi
To: Charles M. Hannum <abuse@spamalicious.com>
From: Brian A. Seklecki <lavalamp@spiritual-machines.org>
List: current-users
Date: 10/16/2003 22:03:42
On Fri, 17 Oct 2003, Charles M. Hannum wrote:
> On Friday 17 October 2003 01:20 am, Brian A. Seklecki wrote:
> > > ident umass_scsipi.c
> >
> > # ident umass_scsipi.c
> > umass_scsipi.c:
> > $NetBSD: umass_scsipi.c,v 1.19 2003/10/17 00:20:28 mycroft Exp $
> > $NetBSD: umass_scsipi.c,v 1.19 2003/10/17 00:20:28 mycroft Exp $
>
> Are you *absolutely* certain you booted a new kernel with that version?
>
> Also: ident scsipi_base.c; it should be 1.97 (not 1.96).
>
Boom! Incredible work.
umass0: Sony USB Memory Stick Slot, rev 1.10/1.09, addr 2
umass0: using ATAPI over CBI with CCI
atapibus0 at umass0: 2 targets
sd0 at atapibus0 drive 0: <Sony, MSC-U03, 1.00> disk removable
sd0: fabricating a geometry
sd0: 63424 KB, 61 cyl, 64 head, 32 sec, 512 bytes/sect x 126848 sectors
-bash-2.05b# pwd
/mnt/dcim/100msdcf
-bash-2.05b# ls -la
total 3712
drwxr-xr-x 1 root wheel 16384 Nov 22 2002 .
drwxr-xr-x 1 root wheel 16384 Nov 22 2002 ..
-rwxr-xr-x 1 root wheel 1359830 Sep 14 2001 dsc00905.jpg
-rwxr-xr-x 1 root wheel 1210275 Sep 14 2001 dsc00906.jpg
-rwxr-xr-x 1 root wheel 1191207 Sep 14 2001 dsc00907.jpg
-bash-2.05b# time cp * /var/tmp
real 0m10.648s
user 0m0.014s
sys 0m0.014s
10 seconds to move 3 megs....not bad at all, considering it's a USB1.1
controller it's connected by.
It even picked up the read-only attribute when I set the stick switch to
write protect:
-bash-2.05b# rm *
rm: dsc00905.jpg: Read-only file system
rm: dsc00906.jpg: Read-only file system
rm: dsc00907.jpg: Read-only file system
-lava
Here's the output from the 64 meg stick:
----
# disklabel sd0
# /dev/rsd0d:
type: ATAPI
disk: mydisk
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 61
total sectors: 126848
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
d: 126848 0 unused 0 0 # (Cyl. 0 - 61*)
e: 126681 39 MSDOS # (Cyl. 0*- 61*)
disklabel: boot block size 0
disklabel: super block size 0
# fdisk sd0
Disk: /dev/rsd0d
NetBSD disklabel disk geometry:
cylinders: 61, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 126848
BIOS disk geometry:
cylinders: 991, heads: 8, sectors/track: 16 (128 sectors/cylinder)
total sectors: 126848
Partition table:
0: Primary DOS with 12 bit FAT (sysid 1)
start 39, size 126681 (62 MB, Cyls 0/2/8-990), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
------------
Here's the 8 meg chip:
# disklabel sd0
# /dev/rsd0d:
type: ATAPI
disk: mydisk
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 7
total sectors: 15840
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
d: 15840 0 unused 0 0 # (Cyl. 0 -
7*)
e: 15783 25 MSDOS # (Cyl. 0*-
7*)
disklabel: boot block size 0
disklabel: super block size 0
# fdisk sd0
Disk: /dev/rsd0d
NetBSD disklabel disk geometry:
cylinders: 7, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 15840
BIOS disk geometry:
cylinders: 495, heads: 2, sectors/track: 16 (32 sectors/cylinder)
total sectors: 15840
Partition table:
0: Primary DOS with 12 bit FAT (sysid 1)
start 25, size 15783 (8 MB, Cyls 0/1/10-494), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
----
Kernel ident's:
-bash-2.05b# ident /netbsd | egrep "scsi|umass|usb"
$NetBSD: scsipiconf.c,v 1.20 2003/01/18 12:05:39 martin Exp $
$NetBSD: scsipi_base.c,v 1.97 2003/10/16 22:46:07 mycroft Exp $
$NetBSD: scsipi_ioctl.c,v 1.46 2003/06/29 22:30:41 fvdl Exp $
$NetBSD: scsipi_verbose.c,v 1.16 2002/05/28 16:40:03 drochner Exp $
$NetBSD: scsi_base.c,v 1.77 2001/11/15 09:48:16 lukem Exp $
$NetBSD: scsiconf.c,v 1.218 2003/10/10 18:04:46 matt Exp $
$NetBSD: st_scsi.c,v 1.10 2002/10/02 16:52:57 thorpej Exp $
$NetBSD: usb.c,v 1.79 2003/06/29 22:30:58 fvdl Exp $
$NetBSD: usbdi.c,v 1.103 2002/09/27 15:37:38 provos Exp $
$NetBSD: usbdi_util.c,v 1.40 2002/07/11 21:14:36 augustss Exp $
$NetBSD: usb_mem.c,v 1.26 2003/02/01 06:23:40 thorpej Exp $
$NetBSD: usb_subr.c,v 1.106 2003/09/23 21:44:42 mycroft Exp $
$NetBSD: usb_quirks.c,v 1.48 2003/10/02 19:10:37 augustss Exp $
$NetBSD: umass.c,v 1.105 2003/09/29 20:04:25 augustss Exp $
$NetBSD: umass_isdata.c,v 1.6 2003/10/08 10:58:13 bouyer Exp $
$NetBSD: umass_quirks.c,v 1.61 2003/10/17 00:12:58 mycroft Exp $
$NetBSD: umass_scsipi.c,v 1.19 2003/10/17 00:20:28 mycroft Exp $
$NetBSD: sbpscsi.c,v 1.5 2002/12/19 09:58:24 jmc Exp $
> If both of those are correct, then boot with umassdebug=0xffffffff and send me
> the output.
>
l8*
-lava
x.25 - minix - bitnet - plan9 - 110 bps - ASR 33 - base8