All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lad, Prabhakar <prabhakar.lad@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/7] da850/omap-l138: Add support to read u-boot image from MMC/SD
Date: Tue, 19 Jun 2012 05:06:48 +0000	[thread overview]
Message-ID: <4665BC9CC4253445B213A010E6DC7B35CDBA20@DBDE01.ent.ti.com> (raw)
In-Reply-To: <CABkLObpEKBucDMNj4DvsJdCi1Ed-8avWOa7dCAz_3sF_vCt6oQ@mail.gmail.com>

Hi Christian,

On Tue, Jun 19, 2012 at 01:09:08, Christian Riesch wrote:
> Hi,
> Sorry for the delay, had a lot of other work to do :-/
> 
> On Thursday, June 7, 2012, Prabhakar Lad wrote:
> 
> 
> 	From: Lad, Prabhakar <prabhakar.lad@ti.com <javascript:;> >
> 	
> 	DA850/OMAP-L138 does not support strict MMC/SD boot mode. SPL will
> 	be in SPI flash and U-Boot image will be in MMC/SD card. SPL will
> 	do the low level initialization and then loads the u-boot image
> 	from MMC/SD card.
> 	
> 	Define the CONFIG_SPL_MMC_LOAD macro in the DA850/OMAP-L138
> 	configuration file to enable this feature.
> 	
> 	Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com <javascript:;> >
> 	Signed-off-by: Rajashekhara, Sudhakar <sudhakar.raj@ti.com <javascript:;> >
> 	Signed-off-by: Hadli, Manjunath <manjunath.hadli@ti.com <javascript:;> >
> 	---
> 	 arch/arm/cpu/arm926ejs/davinci/spl.c |   12 ++++++-
> 	 drivers/mmc/Makefile                 |    4 ++
> 	 drivers/mmc/spl_mmc_load.c           |   62
> ++++++++++++++++++++++++++++++++++
> 	 include/configs/da850evm.h           |    8 ++++
> 	 include/mmc.h                        |    2 +
> 	 5 files changed, 87 insertions(+), 1 deletions(-)
> 	 create mode 100644 drivers/mmc/spl_mmc_load.c
> 	
> 	diff --git a/arch/arm/cpu/arm926ejs/davinci/spl.c
> b/arch/arm/cpu/arm926ejs/davinci/spl.c
> 	index 74632e5..be397ce 100644
> 	--- a/arch/arm/cpu/arm926ejs/davinci/spl.c
> 	+++ b/arch/arm/cpu/arm926ejs/davinci/spl.c
> 	@@ -28,6 +28,11 @@
> 	 #include <ns16550.h>
> 	 #include <malloc.h>
> 	 #include <spi_flash.h>
> 	+#include <mmc.h>
> 	+#include <fat.h>
> 	+#include <version.h>
> 	+#include <asm/arch/davinci_misc.h>
> 	+#include <asm/arch/pinmux_defs.h>
> 	
> 	 #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
> 	
> 	@@ -91,6 +96,11 @@ void board_init_r(gd_t *id, ulong dummy)
> 	       gd->have_console = 1;
> 	
> 	       puts("SPI boot...\n");
> 	+#ifdef CONFIG_SPL_MMC_LOAD
> 	+       spl_mmc_load();
> 	+#else
> 	       spi_boot();
> 	-#endif
> 
> 
> Hmm, now the code prints "SPI boot" and then it boots from MMC, right?
> Please output correct messages.
>  
  The board is booted up in SPI boot mode only, ie the SPL is loaded from 
  SPI flash itself and finally when low level initialization is completed
  The SPL loads the U-boot image in MMC/SD card when CONFIG_SPL_MMC_LOAD
  Config is defined. If CONFIG_SPL_MMC_LOAD is not defined by default the
  SPL loads the U-boot image from SPI flash itself.

> 
> 	+#endif /* CONFIG_SPL_MMC_LOAD */
> 	+
> 	+#endif /* CONFIG_SPL_SPI_LOAD */
> 
> 
> So, CONFIG_SPL_SPI_LOAD must be defined to boot from MMC?? Ths does not make sense to me.
 
 No not to boot from MMC, its indicating to SPL which is flashed in 
 SPI flash to load the U-boot image(u-boot.bin) from MMC.

Thx,
--Prabhakar Lad

>  
> Regards, Christian
> 

  reply	other threads:[~2012-06-19  5:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-07  9:55 [U-Boot] [PATCH v2 0/7] feature additions and fixes for da850/omap-l138 Prabhakar Lad
2012-06-07  9:55 ` [U-Boot] [PATCH v2 1/7] da850/omap-l138: Add MMC support for DA850/OMAP-L138 Prabhakar Lad
2012-06-07  9:55 ` [U-Boot] [PATCH v2 2/7] da850/omap-l138: modifications for Logic PD Rev.3 AM18xx EVM Prabhakar Lad
2012-06-07  9:55 ` [U-Boot] [PATCH v2 3/7] da850/omap-l138: Add support to read u-boot image from MMC/SD Prabhakar Lad
2012-06-18 19:39   ` Christian Riesch
2012-06-19  5:06     ` Lad, Prabhakar [this message]
2012-06-20  9:20       ` Christian Riesch
2012-06-20 10:31         ` Lad, Prabhakar
2012-06-07  9:55 ` [U-Boot] [PATCH v2 4/7] da850/omap-l138: Make MMC and NOR support mutually exclusive Prabhakar Lad
2012-06-07  9:55 ` [U-Boot] [PATCH v2 5/7] da850/omap-l138: Fix NAND flash timings Prabhakar Lad
2012-06-07  9:55 ` [U-Boot] [PATCH v2 6/7] da850/omap-l138: Add support for NAND SPL Prabhakar Lad
2012-06-07  9:55 ` [U-Boot] [PATCH v2 7/7] da850/omap-l138: add support for direct NOR boot mode Prabhakar Lad
2012-06-13 10:29 ` [U-Boot] [PATCH v2 0/7] feature additions and fixes for da850/omap-l138 Sughosh Ganu

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=4665BC9CC4253445B213A010E6DC7B35CDBA20@DBDE01.ent.ti.com \
    --to=prabhakar.lad@ti.com \
    --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.