[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.1.00.0804151910100.19665@iabervon.org>
Date: Tue, 15 Apr 2008 19:23:16 -0400 (EDT)
From: Daniel Barkalow <barkalow@...ervon.org>
To: "H. Peter Anvin" <hpa@...or.com>
cc: Arnd Bergmann <arnd@...db.de>,
Alexia Death <alexiadeath@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: Problem: non-SDHC 2GB SD cards are unreadable
On Mon, 14 Apr 2008, H. Peter Anvin wrote:
> Arnd Bergmann wrote:
> >
> > On the contrary, the USB card readers go through a lot of effort to
> > make the card look like a SCSI device, and many of these implementations
> > are buggy in some way. SD cards are defined to have 512 byte sectors, while
> > USB mass storage can theoretically have a different sector size. Of course
> > any other size than 512 bytes is likely to break some code, which you have
> > experienced.
> >
>
> Actually, I believe 2 GB (non-SDHC) *only* have 1024 byte sectors.
The most easily available SD documentation is the SanDisk product manual
(1.9) and the cards it documents only support 512-byte blocks ("The
default block length is as specified in the CSD (512 bytes). A set block
length of less than 512 bytes will cause a write error. The only valid set
block length is 512 bytes. CMD16 is not manditory if the default is
accepted.")
Somewhat unsurprisingly, not all manufacturers took into account the
possibility that a card would use a different block size than what all of
the cards of the time used.
-Daniel
*This .sig left intentionally blank*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists