From owner-freebsd-current@FreeBSD.ORG Sat May 30 17:58:12 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5789106564A for ; Sat, 30 May 2009 17:58:12 +0000 (UTC) (envelope-from h.schmalzbauer@omnilan.de) Received: from host.omnilan.net (host.omnilan.net [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id 64B208FC1A for ; Sat, 30 May 2009 17:58:12 +0000 (UTC) (envelope-from h.schmalzbauer@omnilan.de) Received: from titan.flintsbach.schmalzbauer.de (titan.flintsbach.schmalzbauer.de [172.21.1.150]) (authenticated bits=0) by host.omnilan.net (8.13.8/8.13.8) with ESMTP id n4UHw7JU002394 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 30 May 2009 19:58:10 +0200 (CEST) (envelope-from h.schmalzbauer@omnilan.de) Message-ID: <4A2173A7.3090100@omnilan.de> Date: Sat, 30 May 2009 19:57:59 +0200 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Thunderbird 2.0.0.21 (X11/20090425) MIME-Version: 1.0 To: Hans Petter Selasky References: <4A20F485.2030803@omnilan.de> <200905301152.15394.hselasky@c2i.net> <4A2101FD.5050608@omnilan.de> <200905301203.20769.hselasky@c2i.net> In-Reply-To: <200905301203.20769.hselasky@c2i.net> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3A6B3555BE96AE20E58BDC28" Cc: freebsd-current@freebsd.org Subject: Re: USB (internally fixed) card reader questions X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2009 17:58:13 -0000 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: at usbus3 umass1: 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: 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--