Subject: Re: USB Card reader on NetBSD/amd64 3.0
To: Jan Danielsson <jan.danielsson@gmail.com>
From: Jonathan A. Kollasch <jakllsch@kollasch.net>
List: netbsd-help
Date: 08/18/2006 21:11:38
--RDS4xtyBfx+7DiaI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Aug 18, 2006 at 08:10:35PM +0200, Jan Danielsson wrote:
> Anne Bennett wrote:
> [---]
> >> When I insert an SD card into the
> >> card reader, the reader's light goes on, but there's no reaction from
> >> NetBSD.
> >=20
> > Ditto, but I was not expecting a "reaction from NetBSD", so I did not
> > see this as a problem.
>=20
>    When I insert my USB memorystick, I get a message on the console
> which states that something has happened with sd0, so I was expecting
> something from the card reader too.

Connecting the card reader should produce messages, not inserting media.
A USB Flash Drive is both reader and media in one package.

>=20
> Anyway, could you run:
>=20
> # usbdevs -v
>=20

port 3 addr 2: high speed, power 100 mA, config 1, Mass Storage Device(0x63=
62), Generic(0x058f), rev 1.26

umass0 at uhub4 port 3 configuration 1 interface 0
umass0: Generic Mass Storage Device, rev 2.00/1.26, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 4 luns per target
sd0 at scsibus0 target 0 lun 0: <Generic, USB SD Reader, 1.00> disk removab=
le
sd0: drive offline
sd1 at scsibus0 target 0 lun 1: <Generic, USB CF Reader, 1.01> disk removab=
le
sd1: drive offline
sd2 at scsibus0 target 0 lun 2: <Generic, USB SM Reader, 1.02> disk removab=
le
sd2: drive offline
sd3 at scsibus0 target 0 lun 3: <Generic, USB MS Reader, 1.03> disk removab=
le
sd3: drive offline

>    ...and post the results?
>=20
>    It seems that my NetBSD system doesn't even see the card reader.
>=20
> >> So I tried to boot an Ubuntu LiveCD, just to try to rule out the
> >> possibility that the reader/card is broken. However, when I insert the
> >> card into the reader while running Ubuntu, the light goes on, and a
> >> message appears on the console that the card has been mounted, and sure
> >> enough, it has.
> >=20
> > I just mount and unmount mine manually as needed.  Here's an extract
> > from my fstab file:
> [---]
>=20
>    Doesn't work here. :-(
>=20
> mount: cannot open `/dev/sd0e`: Device not configured
>=20
> mount: cannot open `/dev/sd1e`: Device not configured
>=20
> etc..
>=20

I'd consider looking at what a plain i386 kernel would have for messages.

	Jonathan A. Kollasch

--RDS4xtyBfx+7DiaI
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFE5nNaOjx1ye3hmokRAhLVAJ9evw+j5YvOmUhNuFkh+1sAnpAQ8ACgpWWf
hylpDwt7RoTLvgaXCrIr5M8=
=y60F
-----END PGP SIGNATURE-----

--RDS4xtyBfx+7DiaI--