From owner-freebsd-questions@FreeBSD.ORG Sun Dec 26 23:47:11 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18B95106566B for ; Sun, 26 Dec 2010 23:47:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id B5F128FC13 for ; Sun, 26 Dec 2010 23:47:10 +0000 (UTC) Received: from r55.edvax.de (port-92-195-37-207.dynamic.qsc.de [92.195.37.207]) by mx02.qsc.de (Postfix) with ESMTP id 199D61D92D for ; Mon, 27 Dec 2010 00:47:09 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id oBQNl8ac002816 for ; Mon, 27 Dec 2010 00:47:08 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Mon, 27 Dec 2010 00:47:08 +0100 From: Polytropon To: FreeBSD Questions Message-Id: <20101227004708.c2d02d15.freebsd@edvax.de> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: SD/CF card reader X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Dec 2010 23:47:11 -0000 I got a new (haha) PC for Christmas which I want to turn into my new home system. I could improve from Intel P4 2GHz 768 MB SDR-SDRAM and ATA disks to Intel Core2 1.8 GHz 2 GB DDR-SDRAM and SATA disk(s). A nice feature of the new system is a built-in card reader which I would like to be a replacement for my (ab)use of a defective MP3 player as a means to access SD cards (and maybe CF cards). >From dmesg of that system, USB-related messages only: uhci0: port 0xe000-0xe01f irq 20 at device 16.0 on pci0 uhci0: [ITHREAD] usbus0: on uhci0 uhci1: port 0xdc00-0xdc1f irq 22 at device 16.1 on pci0 uhci1: [ITHREAD] usbus1: on uhci1 uhci2: port 0xd800-0xd81f irq 21 at device 16.2 on pci0 uhci2: [ITHREAD] usbus2: on uhci2 uhci3: port 0xd400-0xd41f irq 23 at device 16.3 on pci0 uhci3: [ITHREAD] usbus3: on uhci3 ehci0: mem 0xdffff000-0xdffff0ff irq 21 at device 16.4 on pci0 ehci0: [ITHREAD] usbus4: EHCI version 1.0 usbus4: on ehci0 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub_reattach_port: port 3 reset failed, error=USB_ERR_TIMEOUT uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 3 ugen4.2: at usbus4 umass0: on usbus4 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:0:0:-1: Attached to scbus0 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present (probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0 (probe0:umass-sim0:0:0:1): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:1): SCSI status: Check Condition (probe0:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) da1 at umass-sim0 bus 0 scbus0 target 0 lun 1 da1: Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: Attempt to query device size failed: NOT READY, Medium not present (probe0:umass-sim0:0:0:2): TEST UNIT READY. CDB: 0 40 0 0 0 0 (probe0:umass-sim0:0:0:2): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:2): SCSI status: Check Condition (probe0:umass-sim0:0:0:2): SCSI sense: NOT READY asc:3a,0 (Medium not present) da2 at umass-sim0 bus 0 scbus0 target 0 lun 2 da2: Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present The problem is: If I insert a card (SD or CF), a green light at the reader appears, but no messages arrive on the console. There are no corresponding device files, so I can't access anything. A front USB connector, on the other hand, works when I attach an USB stick: ugen4.3: at usbus4 umass1: on usbus4 umass1: SCSI over Bulk-Only; quirks = 0x0000 umass1:1:1:-1: Attached to scbus1 da3 at umass-sim1 bus 1 scbus1 target 0 lun 0 da3: Removable Direct Access SCSI-2 device da3: 40.000MB/s transfers da3: 3826MB (7835648 512 byte sectors: 255H 63S/T 487C) GEOM: da3: partition 1 does not start on a track boundary. GEOM: da3: partition 1 does not end on a track boundary. So I thought I'd check the CAM and maybe reset it: # camcontrol devlist at scbus0 target 0 lun 0 (pass0,da0) at scbus0 target 0 lun 1 (pass1,da1) at scbus0 target 0 lun 2 (pass2,da2) at scbus1 target 0 lun 0 (pass3,da3) (the last entry is the USB stick that works as intended) # camcontrol reset all Reset of bus 0 returned error 0x3a Reset of bus 1 returned error 0x3a What is this? Is there some documentation about what errors like 0x3a refer to? Is it in any relation with the previous uhub_reattach_port: port 3 reset failed, error=USB_ERR_TIMEOUT uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 3 message recorded by dmesg? What should I do to get this internal reader working, or isn't it worth the time? I mean, if this is just the usual cheap and crappy VIA "Windows"-only shit, I won't bother anymore. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...