Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2009 19:57:59 +0200
From:      Harald Schmalzbauer <h.schmalzbauer@omnilan.de>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: USB (internally fixed) card reader questions
Message-ID:  <4A2173A7.3090100@omnilan.de>
In-Reply-To: <200905301203.20769.hselasky@c2i.net>
References:  <4A20F485.2030803@omnilan.de> <200905301152.15394.hselasky@c2i.net> <4A2101FD.5050608@omnilan.de> <200905301203.20769.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig3A6B3555BE96AE20E58BDC28
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Hans Petter Selasky schrieb am 30.05.2009 12:03 (localtime):
=2E..
> If recompiling hald and checking that libusb is up to date,=20
> see /usr/src/lib/libusb, does not solve your problem, then write me som=
e text=20
> about how to get going using usbconfig, and I will add it as a workarou=
nd FAQ=20
> for USB flash cards.

After updating to todays -current and all ports (including hal), I can=20
again use the `true > /dev/da0` trick and with the second insertion of=20
the card hal "exports" the media. That's same like with 7-stable before.
But inserting a UFD leads to hal death.
Here's what I get from dmesg:
ugen3.3: <USB> at usbus3
umass1: <USB Flash Disk, class 0/0, rev 2.00/2.00, addr 3> on usbus3
umass1:  SCSI over Bulk-Only; quirks =3D 0x0000
umass1:6:1:-1: Attached to scbus6
xptioctl: pass driver is not in the kernel
xptioctl: put "device pass" in your kernel config file
(probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim1:1:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim1:1:0:0): SCSI Status: Check Condition
(probe0:umass-sim1:1:0:0): UNIT ATTENTION asc:28,0
(probe0:umass-sim1:1:0:0): Not ready to ready change, medium may have=20
changed
(probe0:umass-sim1:1:0:0): Retrying Command (per Sense Data)
da4 at umass-sim1 bus 1 target 0 lun 0
da4: <I-Stick2 IntelligentStick 2.00> Removable Direct Access SCSI-2 devi=
ce
da4: 40.000MB/s transfers
da4: 249MB (511488 512 byte sectors: 64H 32S/T 249C)
GEOM: da4: partition 1 does not start on a track boundary.
GEOM: da4: partition 1 does not end on a track boundary.
GEOM_LABEL: Label for provider da4s1 is msdosfs/BIOS-UFD.

Before the UFS plugin I had some hald-addon-storage: /dev/da0 etc.
These are all gone, just these left:
1084  ??  Ss     0:00,43 /usr/local/sbin/hald
  1088  ??  I      0:00,04 hald-runner
  1122  ??  I      0:00,01 hald-addon-mouse-sysmouse: /dev/ums0=20
(hald-addon-mouse-sy)
  1132  ??  I      0:00,01 hald-addon-mouse-sysmouse: /dev/ums1=20
(hald-addon-mouse-sy)
  1156  ??  S      0:00,04 hald-addon-storage: /dev/acd0=20
(hald-addon-storage)
  1158  ??  S      0:00,07 hald-addon-storage: /dev/acd1=20
(hald-addon-storage)
  1439  ??  S      0:00,01 hald-addon-storage: /dev/probe0=20
(hald-addon-storage)

Now I have some essential question:
I know that inserting a Flash Card in a fixed USB card reader doesn't=20
inform the kernel that there's a new media, so I have to issue a write=20
request to get the GEOM notified. This is not easily fixable, as far as=20
I remember some discussion at least one year ago.
But after GEOM knows about the new labels, hal still doesn't catch them. =

First I have to pull out and reinsert the card.
Is that fixable?

Do I have to use `camcontrol eject` before removing flash cards from=20
fixed readers?

Any hope for my UFD-hal problem?
Especially the "xptioctl: put "device pass" in your kernel config file"=20
error message seems very odd to me.

Best regards,

-Harry


--------------enig3A6B3555BE96AE20E58BDC28
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEARECAAYFAkohc68ACgkQLDqVQ9VXb8iJEwCgk2d6HOePwtJr4q4hE1deCNO+
JboAoMmXELyxacTZQ8d0xAxzZ4mNcXr5
=WhZj
-----END PGP SIGNATURE-----

--------------enig3A6B3555BE96AE20E58BDC28--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A2173A7.3090100>