From owner-freebsd-bugs@FreeBSD.ORG Fri Nov 23 16:20:00 2012 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C1542E23 for ; Fri, 23 Nov 2012 16:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 966978FC18 for ; Fri, 23 Nov 2012 16:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qANGK0jk073780 for ; Fri, 23 Nov 2012 16:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qANGK0Og073779; Fri, 23 Nov 2012 16:20:00 GMT (envelope-from gnats) Resent-Date: Fri, 23 Nov 2012 16:20:00 GMT Resent-Message-Id: <201211231620.qANGK0Og073779@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Fernando Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2FB4FB47 for ; Fri, 23 Nov 2012 16:11:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 0EB358FC12 for ; Fri, 23 Nov 2012 16:11:13 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qANGBCbw011432 for ; Fri, 23 Nov 2012 16:11:12 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qANGBCFo011425; Fri, 23 Nov 2012 16:11:12 GMT (envelope-from nobody) Message-Id: <201211231611.qANGBCFo011425@red.freebsd.org> Date: Fri, 23 Nov 2012 16:11:12 GMT From: Fernando To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/173866: SD card reader malfunction (false card locked reported) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2012 16:20:00 -0000 >Number: 173866 >Category: kern >Synopsis: SD card reader malfunction (false card locked reported) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 23 16:20:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Fernando >Release: 9.0-RELEASE >Organization: >Environment: FreeBSD beastie 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: I'm using stock 9.0 kernel. I have an internal card reader that supports several card standards. This is the output of pciconf -lv: hostb0@pci0:0:0:0: class=0x060000 card=0x2a6f103c chip=0x29c08086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82G33/G31/P35/P31 Express DRAM Controller' class = bridge subclass = HOST-PCI pcib1@pci0:0:1:0: class=0x060400 card=0x00008086 chip=0x29c18086 rev=0x02 hdr=0x01 vendor = 'Intel Corporation' device = '82G33/G31/P35/P31 Express PCI Express Root Port' class = bridge subclass = PCI-PCI uhci0@pci0:0:26:0: class=0x0c0300 card=0x2a6f103c chip=0x29378086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801I (ICH9 Family) USB UHCI Controller' class = serial bus subclass = USB uhci1@pci0:0:26:1: class=0x0c0300 card=0x2a6f103c chip=0x29388086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801I (ICH9 Family) USB UHCI Controller' class = serial bus subclass = USB ehci0@pci0:0:26:7: class=0x0c0320 card=0x2a6f103c chip=0x293c8086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801I (ICH9 Family) USB2 EHCI Controller' class = serial bus subclass = USB hdac0@pci0:0:27:0: class=0x040300 card=0x2a6f103c chip=0x293e8086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801I (ICH9 Family) HD Audio Controller' class = multimedia subclass = HDA pcib2@pci0:0:28:0: class=0x060400 card=0x2a6f103c chip=0x29408086 rev=0x02 hdr=0x01 vendor = 'Intel Corporation' device = '82801I (ICH9 Family) PCI Express Port 1' class = bridge subclass = PCI-PCI pcib3@pci0:0:28:2: class=0x060400 card=0x2a6f103c chip=0x29448086 rev=0x02 hdr=0x01 vendor = 'Intel Corporation' device = '82801I (ICH9 Family) PCI Express Port 3' class = bridge subclass = PCI-PCI uhci2@pci0:0:29:0: class=0x0c0300 card=0x2a6f103c chip=0x29348086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801I (ICH9 Family) USB UHCI Controller' class = serial bus subclass = USB uhci3@pci0:0:29:1: class=0x0c0300 card=0x2a6f103c chip=0x29358086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801I (ICH9 Family) USB UHCI Controller' class = serial bus subclass = USB uhci4@pci0:0:29:2: class=0x0c0300 card=0x2a6f103c chip=0x29368086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801I (ICH9 Family) USB UHCI Controller' class = serial bus subclass = USB uhci5@pci0:0:29:3: class=0x0c0300 card=0x2a6f103c chip=0x29398086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801I (ICH9 Family) USB UHCI Controller' class = serial bus subclass = USB ehci1@pci0:0:29:7: class=0x0c0320 card=0x2a6f103c chip=0x293a8086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801I (ICH9 Family) USB2 EHCI Controller' class = serial bus subclass = USB pcib4@pci0:0:30:0: class=0x060401 card=0x2a6f103c chip=0x244e8086 rev=0x92 hdr=0x01 vendor = 'Intel Corporation' device = '82801 PCI Bridge' class = bridge subclass = PCI-PCI isab0@pci0:0:31:0: class=0x060100 card=0x2a6f103c chip=0x29168086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801IR (ICH9R) LPC Interface Controller' class = bridge subclass = PCI-ISA ahci0@pci0:0:31:2: class=0x010400 card=0x2a6f103c chip=0x28228086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801 SATA RAID Controller' class = mass storage subclass = RAID none0@pci0:0:31:3: class=0x0c0500 card=0x2a6f103c chip=0x29308086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801I (ICH9 Family) SMBus Controller' class = serial bus subclass = SMBus vgapci0@pci0:4:0:0: class=0x030000 card=0x10411462 chip=0x94c31002 rev=0x00 hdr=0x00 vendor = 'ATI Technologies Inc' device = 'RV610 video device [Radeon HD 2400 PRO]' class = display subclass = VGA re0@pci0:2:0:0: class=0x020000 card=0x2a6f103c chip=0x816810ec rev=0x02 hdr=0x00 vendor = 'Realtek Semiconductor Co., Ltd.' device = 'RTL8111/8168B PCI Express Gigabit Ethernet controller' class = network subclass = ethernet fwohci0@pci0:1:5:0: class=0x0c0010 card=0x2a6f103c chip=0x581111c1 rev=0x70 hdr=0x00 vendor = 'Agere Systems' device = 'FW322/323' class = serial bus subclass = FireWire I seem to suffer a problem of geom retasting, but even when I wake up the device (either with true > /dev/da0 or using dd or even booting the system with an SD card inserted into the reader), and I can see the partitions of the device, I can't mount it. I get this error all the time: (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 0 0 0 1 0 0 0 80 0 (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI status: Check Condition (da0:umass-sim0:0:0:0): SCSI sense: DATA PROTECT asc:27,0 (Write protected) (da0:umass-sim0:0:0:0): Field Replaceable Unit: 1 (da0:umass-sim0:0:0:0): Command Specific Info: 0xaa5561 (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 0 0 0 1 f0 0 0 80 0 (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI status: Check Condition (da0:umass-sim0:0:0:0): SCSI sense: DATA PROTECT asc:27,0 (Write protected) (da0:umass-sim0:0:0:0): Field Replaceable Unit: 1 (da0:umass-sim0:0:0:0): Command Specific Info: 0xaa5561 The card is not locked, in fact I can read it normally with an external USB connected card reader. I would really like to make it work since I'm involved in a project that includes testing FreeBSD on a BeagleBoard and I would need to write an image to a micro SD card. I'm willing to provide as much feedback as you need if you provide some guidance :) >How-To-Repeat: Try to mount the SD card using: mount_msdosfs /dev/da0s1 mnt/usb or an equivalent command >Fix: >Release-Note: >Audit-Trail: >Unformatted: