NetBSD Problem Report #46929
From diro@nixsyspaus.org Sat Sep 8 23:02:53 2012
Return-Path: <diro@nixsyspaus.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 89FE163B9BC
for <gnats-bugs@gnats.netbsd.org>; Sat, 8 Sep 2012 23:02:53 +0000 (UTC)
Message-Id: <20120908230251.D52CB2041F2@asche.nixsyspaus.org>
Date: Sat, 8 Sep 2012 23:02:51 +0000 (UTC)
From: diro@nixsyspaus.org
Reply-To: diro@nixsyspaus.org
To: gnats-bugs@gnats.netbsd.org
Subject: SD micro in SD adapter does not work
X-Send-Pr-Version: 3.95
>Number: 46929
>Category: kern
>Synopsis: SD micro in SD adapter does not work
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Sep 08 23:05:00 +0000 2012
>Last-Modified: Wed Sep 26 16:50:02 +0000 2012
>Originator: diro@nixsyspaus.org
>Release: NetBSD 6.0_RC1
>Organization:
>Environment:
System: NetBSD gift 6.0_RC1 NetBSD 6.0_RC1 (GIFT) #6: Sat Sep 1 04:44:23 UTC
2012 root@gift:/usr/obj/sys/arch/amd64/compile/GIFT amd64
Architecture: amd64
Machine: amd64
>Description:
This is an SD micro card in an SD adapter:
umass0 at uhub3 port 2 configuration 1 interface 0
umass0: Generic Mass Storage Device, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Multiple, Card Reader, 1.00> disk removable
sd0: drive offline
sd0(umass0:0:0:0): Check Condition on CDB: 0x00 00 00 00 00 00
SENSE KEY: Not Ready
COMMAND INFO: 11162945 (0xaa5541)
ASC/ASCQ: Medium Not Present
sd0: unable to open device, error = 19
Now, you might say the adapter is broke. Tested three or four adapters with
different SD micro cards to be sure. The SD micro cards were for sure working.
Although some of the SD adapters were questionable, some of them were still
known to work.
I thought this may have been a problem with the device itself, which is why i
didn't bother reporting it until i found a normal SD card. The SD card works
fine. sd0 attaches and i can read/write to the drive, so it's not the device.
Dmesg is in PR pkg/46919.
>How-To-Repeat:
Put an SD micro card in an SD adapter. Insert it into SD slot. `dmesg | tail`
>Fix:
>Audit-Trail:
From: Andrius V <vezhlys@gmail.com>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/46929: SD micro in SD adapter does not work
Date: Sun, 9 Sep 2012 19:14:12 +0300
Have actually tried to mount your sd card? I am getting the same
output like you but I can still to mount it as /dev/sd3d in my card
reader (SD card readers usually have several slots and it can be that
your sd card can be attached not to sd0 but to sd1, 2 or 3). Though I
don't know what this output actually means.
On Sun, Sep 9, 2012 at 2:05 AM, <diro@nixsyspaus.org> wrote:
>>Number: 46929
>>Category: kern
>>Synopsis: SD micro in SD adapter does not work
>>Confidential: no
>>Severity: serious
>>Priority: medium
>>Responsible: kern-bug-people
>>State: open
>>Class: sw-bug
>>Submitter-Id: net
>>Arrival-Date: Sat Sep 08 23:05:00 +0000 2012
>>Originator: diro@nixsyspaus.org
>>Release: NetBSD 6.0_RC1
>>Organization:
>>Environment:
> System: NetBSD gift 6.0_RC1 NetBSD 6.0_RC1 (GIFT) #6: Sat Sep 1 04:44:23 UTC
> 2012 root@gift:/usr/obj/sys/arch/amd64/compile/GIFT amd64
> Architecture: amd64
> Machine: amd64
>>Description:
>
> This is an SD micro card in an SD adapter:
>
> umass0 at uhub3 port 2 configuration 1 interface 0
> umass0: Generic Mass Storage Device, rev 2.00/1.00, addr 2
> umass0: using SCSI over Bulk-Only
> scsibus0 at umass0: 2 targets, 1 lun per target
> sd0 at scsibus0 target 0 lun 0: <Multiple, Card Reader, 1.00> disk removable
> sd0: drive offline
> sd0(umass0:0:0:0): Check Condition on CDB: 0x00 00 00 00 00 00
> SENSE KEY: Not Ready
> COMMAND INFO: 11162945 (0xaa5541)
> ASC/ASCQ: Medium Not Present
>
> sd0: unable to open device, error = 19
>
> Now, you might say the adapter is broke. Tested three or four adapters with
> different SD micro cards to be sure. The SD micro cards were for sure working.
> Although some of the SD adapters were questionable, some of them were still
> known to work.
>
> I thought this may have been a problem with the device itself, which is why i
> didn't bother reporting it until i found a normal SD card. The SD card works
> fine. sd0 attaches and i can read/write to the drive, so it's not the device.
>
> Dmesg is in PR pkg/46919.
>
>>How-To-Repeat:
> Put an SD micro card in an SD adapter. Insert it into SD slot. `dmesg | tail`
>>Fix:
>
>
From: diro@nixsyspaus.org
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/46929: SD micro in SD adapter does not work
Date: Wed, 26 Sep 2012 07:21:56 -0400
> Have actually tried to mount your sd card? I am getting the same
> output like you but I can still to mount it as /dev/sd3d in my card
> reader (SD card readers usually have several slots and it can be that
> your sd card can be attached not to sd0 but to sd1, 2 or 3). Though I
> don't know what this output actually means.
This is a bit strange - i tried again with another SD micro card in my
adapter. The first time, it was detected as sd0 with the device not ready
error. The way the slot works is you insert the adapter, it clicks, then
retreats about 3mm. I decided to shove the adapter all the way in, not letting
it retreat. It was detected as sd1 on umass1 (so, i suppose that it was also
showing up as sd0 - i just saw the tail of dmesg). Then, the machine locked
hard. I had to power cycle it. When it came back up, the device was being
detected as sd0, but disklabel showed the MSDOS partition on sd0e, instead of
a 4.2BSD partition on sd0a. I was able to mount sd0e and browse the file
system.
The only thing that changed was how i was inserting the card. Before,
i just shoved it in the slot. Then, i was making sure that the card was either
1) as far down the Z axis as it could go and then 2) as far up the Z axis in
the slot it could go. Neither seemed to make a difference. There doesn't
appear to be any internal grooves in the adapter that would allow such an
insertion. After it was deteced as sd0 with the MSDOS partition on sd0e,
everything just seemed to work fine. So, i suppose this PR can be closed,
although the whole procedure was rather strange and also that the machine hard
locked with the adapter shoved all the way in the slot.
From: <Paul_Koning@Dell.com>
To: <gnats-bugs@NetBSD.org>
Cc: <kern-bug-people@netbsd.org>, <gnats-admin@netbsd.org>,
<netbsd-bugs@netbsd.org>, <diro@nixsyspaus.org>
Subject: Re: kern/46929: SD micro in SD adapter does not work
Date: Wed, 26 Sep 2012 15:06:58 +0000
I would suspect the card, or a defective adapter. MicroSD is the same as f=
ull size SD apart from the physical size -- the adapter merely connects a b=
ig connector to a small one. No protocol conversion or signal level change=
s are involved. The adapter merely delivers electrons without processing.
paul
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.