Subject: Re: USB card reader [UPDATE]
To: Jan Danielsson <jan.danielsson@gmail.com>
From: Greg Troxel <gdt@ir.bbn.com>
List: netbsd-help
Date: 08/19/2006 09:28:26
--=-=-=
Content-Transfer-Encoding: quoted-printable


This belongs on netbsd-help, not tech-kern.

I use a sandisk imagemate 12-in-1 and a nonmae reader and they attach:

umass0 at uhub4 port 5 configuration 1 interface 0
umass0: SanDisk ImageMate 12 in 1 Reader/Writer, rev 2.00/93.17, addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, 4 luns per target
umass1 at uhub4 port 6 configuration 1 interface 0
umass1: Generic USB2.0 Card Reader, rev 2.00/1.9c, addr 3
umass1: using SCSI over Bulk-Only
scsibus2 at umass1: 2 targets, 4 luns per target

sd0 at scsibus1 target 0 lun 0: <Generic, STORAGE DEVICE, 9317> disk remova=
ble
sd0: drive offline
sd1 at scsibus1 target 0 lun 1: <Generic, STORAGE DEVICE, 9317> disk remova=
ble
sd1: drive offline
sd2 at scsibus1 target 0 lun 2: <Generic, STORAGE DEVICE, 9317> disk remova=
ble
sd2: drive offline
sd3 at scsibus1 target 0 lun 3: <Generic, STORAGE DEVICE, 9317> disk remova=
ble
sd3: drive offline
sd4 at scsibus2 target 0 lun 0: <Generic, IC1210        CF, 1.9C> disk remo=
vable
sd4: drive offline
sd5 at scsibus2 target 0 lun 1: <Generic, IC1210        MS, 1.9C> disk remo=
vable
sd5: drive offline
sd6 at scsibus2 target 0 lun 2: <Generic, IC1210    MMC/SD, 1.9C> disk remo=
vable
sd6: drive offline
sd7 at scsibus2 target 0 lun 3: <Generic, IC1210        XD, 1.9C> disk remo=
vable
sd7: 1000 MB, 985 cyl, 33 head, 63 sec, 512 bytes/sect x 2048000 sectors


This is on current/i386 with Intel EHCI.

The ehci driver probably is not quite right.  I use current and I
don't know if there are any specific fixes.  EHCI is a spec from
intel, and they also make chips.  Others make chips, and it's been my
impression that other chips may not have exactly the same interface.

I have found that accessing cards that aren't there can lead to hangs.
My cards map as follows
sd0 CF
sd1 (probaly MS)
sd2 SD
sd3 xD (probably SM)


=2D-=20
    Greg Troxel <gdt@ir.bbn.com>

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (NetBSD)

iD8DBQFE5xH++vesoDJhHiURAisOAJwPXj4naZpBTmvH+Ry7a/CZGVnyoACgtIdH
FvgsJ+uLsdL0fVkC0aBnpOM=
=9BLT
-----END PGP SIGNATURE-----
--=-=-=--