mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Barkalow <barkalow@iabervon.org>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: Arnd Bergmann <arnd@arndb.de>,
	Alexia Death <alexiadeath@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: Problem: non-SDHC 2GB SD cards are unreadable
Date: Tue, 15 Apr 2008 19:23:16 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.1.00.0804151910100.19665@iabervon.org> (raw)
In-Reply-To: <480343F2.3040401@zytor.com>

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*

  parent reply	other threads:[~2008-04-15 23:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-13 20:26 Alexia Death
2008-04-13 20:42 ` Alan Cox
2008-04-13 21:32   ` Alexia Death
2008-04-14  0:45 ` Arnd Bergmann
2008-04-14  4:49   ` Alexia Death
2008-04-14  6:48     ` Arnd Bergmann
2008-04-14 11:45       ` H. Peter Anvin
2008-04-14 12:40         ` Arnd Bergmann
2008-04-15 23:23         ` Daniel Barkalow [this message]
2008-04-16  2:09           ` H. Peter Anvin
2008-04-16  2:49             ` Roger Heflin
2008-04-14 16:11     ` Lennart Sorensen
2008-04-14  6:08   ` Alexia Death
2008-04-14  9:03     ` Wander Winkelhorst

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.1.00.0804151910100.19665@iabervon.org \
    --to=barkalow@iabervon.org \
    --cc=alexiadeath@gmail.com \
    --cc=arnd@arndb.de \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®