All of lore.kernel.org
 help / color / mirror / Atom feed
From: jbe@pengutronix.de (Juergen Beisert)
To: linux-arm-kernel@lists.infradead.org
Subject: Using SD cards on Samsung S3C2410/S3C2440 based systems
Date: Sun, 20 Dec 2009 13:22:22 +0100	[thread overview]
Message-ID: <200912201322.23013.jbe@pengutronix.de> (raw)
In-Reply-To: <4B27C808.7080800@warmcat.com>

Hi Andy,

On Dienstag, 15. Dezember 2009, Andy Green wrote:
> > s3c2440-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).
> > s3c2440-sdi s3c2440-sdi: running at 399kHz (requested: 400kHz).
> >
> > mmc0: new SD card at address 8d7e
> > mmcblk0: mmc0:8d7e SD02G 1.83 GiB
> >   mmcblk0: p1 p2
> >
> > Any idea why most of the cards do not work?
>
> -110 is timeout... it might be worth setting CONFIG_PRINTK_TIME and
> looking to see what the real time looks like in both cases.
>
> I guess you have the pullups on your PCB OK for the MMC bus (everything
> except CLK),

Yes, all signals except the clock are pulled up to +5V (10K), and a small cap 
to ground (don't know their values yet).

> and you looked with your scope that power is OK there from early boot

I started to add some caps close to the socket. Now more cards are working 
with a 2.6.32.2 kernel. But when I boot a 2.6.31 kernel instead, some are 
still do not work. Curious.

> and the signals look well-formed.  (And the clock is 400kHz).

To be continued...

> I noticed that at 115kbps console set on the kernel commandline on an
> iMX31, I can cause SD Card boot we use to fail like you describe at the
> moment just by setting loglevel=8 on the commandline.  So try one of the
> "bad" cards at loglevel=4 and see if that changes anything.

I tried it, but it makes no difference.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-8766-939 228     |
Vertretung Sued/Muenchen, Germany             | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |

  reply	other threads:[~2009-12-20 12:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-15 13:43 Using SD cards on Samsung S3C2410/S3C2440 based systems Juergen Beisert
2009-12-15 17:31 ` Andy Green
2009-12-20 12:22   ` Juergen Beisert [this message]
2009-12-20 12:48     ` Andy Green
2009-12-20 13:03       ` Juergen Beisert
2009-12-20 13:02     ` Andy Green
2009-12-20 13:14       ` Juergen Beisert

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=200912201322.23013.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.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 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.