mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Roberto Nibali <rnibali@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: SD card probe failure
Date: Tue, 22 May 2012 20:48:38 +0200	[thread overview]
Message-ID: <20120522184838.GN30400@pengutronix.de> (raw)
In-Reply-To: <CAONxwYMN4tDV-0vcophuLRA0rJC_T6OaLNyZM22yoso09cJFRg@mail.gmail.com>

On Tue, May 22, 2012 at 04:28:14PM +0200, Roberto Nibali wrote:
> Hi
> 
> I'm loading barebox as a second stage bootloader, because I haven't figured
> out yet how to boot it from SD card directly. It seems though as if barebox
> in general is not happy with the SD card:
> 
> 
> barebox 2012.05.0-00194-g38d361d-dirty #0 Mon May 14 10:52:47 CEST 2012
> 
> 
> Board: SID1 NOAH
> registered netconsole as cs1
> imx-esdhc@mci0: registered as mci0
> imx-esdhc@imx-esdhc0: timeout 1
> Cannot reset the SD/MMC card
> ehci@ehci0: USB EHCI 1.00
> cfi_flash@cfi_flash0: found cfi flash at a0000000, size 67108864
> Malloc space: 0x83b00000 -> 0x83efffff (size  4 MB)
> Stack space : 0x83af8000 -> 0x83b00000 (size 32 kB)
> envfs: wrong magic on /dev/env0
> no valid environment found on /dev/env0. Using default environment
> running /env/bin/init...
> 
> Hit any key to stop autoboot:  5
> 
> type update_kernel nor [<imagename>] to update kernel into flash
> type update_root nor [<imagename>] to update rootfs into flash
> 
> sid1-noah:/
> sid1-noah:/ devinfo mci0
> resources:
> driver: mci
> 
>  No information available:
>   MCI card not probed yet
> Parameters:
>            probe = 0
> sid1-noah:/ mci0.probe=1
> imx-esdhc@imx-esdhc0: timeout 1
> Cannot reset the SD/MMC card
> set parameter: Connection timed out
> sid1-noah:/
> 
> Any ideas? What are possible causes of this?

Does the SD card work in the first stage loader? If yes, you could try
to remove the mux setup from barebox, so that you can be sure that you
do not misconfigure things that were already configured correctly.
I have no hardware handy to test the driver on a i.MX25, but Erics
Eukrea board has MMC support, so I believe the driver should work in
general.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2012-05-22 18:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-22 14:28 Roberto Nibali
2012-05-22 18:48 ` Sascha Hauer [this message]
2012-05-22 19:01   ` Eric Bénard
2012-05-23  8:30   ` Roberto Nibali
2012-05-23  8:38     ` Sascha Hauer
2012-05-23  8:54       ` Roberto Nibali

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=20120522184838.GN30400@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=rnibali@gmail.com \
    /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