Bug 173866 - SD card reader malfunction (false card locked reported)
Summary: SD card reader malfunction (false card locked reported)
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-23 16:20 UTC by Fernando Apesteguía
Modified: 2020-04-26 16:49 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Apesteguía freebsd_committer freebsd_triage 2012-11-23 16:20:00 UTC
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
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:49 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Fernando Apesteguía freebsd_committer freebsd_triage 2020-04-26 16:49:27 UTC
I don't own that PC anymore.