All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pete MacKay <linux@architechnical.net>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] MMC Card Problems with U-Boot 1.1.6
Date: Tue, 13 Feb 2007 16:05:02 -0800 (PST)	[thread overview]
Message-ID: <8956363.post@talk.nabble.com> (raw)
In-Reply-To: <1defaf580702131451l22831b0dl9982c178393625b0@mail.gmail.com>


Thanks for the pointers!  I replaced that with the values read from the CSD,
which was a task in itself as the 270 seemed to add a 0x3F and drop the
CRC/0x01 byte in the response (which is reversed byte-order).

You're right that the cards can be told apart with the proper init sequence
(the right way for submission), but I added 'sd' commands and interface in
the interest of time and preserving the original MMC code line.  Fortunately
adding commands to u-boot is easy!  :)  CMD1 isn't supported in SD 2.0 (it
times out), which does added negotiation (CMD8/ACMD41).  Linux very recently
added SDHC (high capacity) support and last I heard they were debating
whether the sequence should check for MMC first (CMD1) or SD (CMD8).

Alas, the kernel code is layered and complex, but is a good place to start. 
I've been looking through it for 270 caveats (there are several) and now my
brain hurts...


Haavard Skinnemoen-2 wrote:
> 
> I think I know where I'd start looking ;-)
> 
>                 /* FIXME fill in the correct size (is set to 32MByte) */
>                 mmc_dev.blksz = 512;
>                 mmc_dev.lba = 0x10000;
> 
> Btw, why do you need an sdinit command? It should be possible to tell
> the difference between SD and MMC cards automatically. In fact, I know
> it's possible because the Linux driver does it, and the at32ap7000 mmc
> driver I haven't submitted yet does it.
> 
> Haavard
> 

-- 
View this message in context: http://www.nabble.com/MMC-Card-Problems-with-U-Boot-1.1.6-tf3189031.html#a8956363
Sent from the Uboot - Users mailing list archive at Nabble.com.

      reply	other threads:[~2007-02-14  0:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-07 19:09 [U-Boot-Users] MMC Card Problems with U-Boot 1.1.6 sgobien
2007-02-13 22:27 ` Pete MacKay
2007-02-13 22:51   ` Haavard Skinnemoen
2007-02-14  0:05     ` Pete MacKay [this message]

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=8956363.post@talk.nabble.com \
    --to=linux@architechnical.net \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.