All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 4/4] Update u-boot-nand.bin to be used with spl
Date: Mon, 29 Jul 2013 17:29:24 -0500	[thread overview]
Message-ID: <1375136964.30721.61@snotra> (raw)
In-Reply-To: <1375042616-24680-5-git-send-email-tremyfr@yahoo.fr> (from tremyfr@yahoo.fr on Sun Jul 28 15:16:56 2013)

On 07/28/2013 03:16:56 PM, Philippe Reynes wrote:
> Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
> Signed-off-by: Eric Jarrige <eric.jarrige@armadeus.org>
> ---
>  Makefile |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 4218226..b971f30 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -617,8 +617,14 @@ $(obj)u-boot.lds: $(LDSCRIPT)
>  nand_spl:	$(TIMESTAMP_FILE) $(VERSION_FILE) depend
>  		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
> 
> +ifeq ($(CONFIG_SPL),y)
> +$(obj)u-boot-nand.bin:    $(obj)u-boot.bin $(obj)spl/u-boot-spl.bin
> +		$(OBJCOPY) ${OBJCFLAGS} --pad-to=$(CONFIG_SPL_PAD_TO)  
> -O binary $(obj)spl/u-boot-spl $(obj)spl/u-boot-spl-pad.bin && \
> +		cat $(obj)spl/u-boot-spl-pad.bin $(obj)u-boot.bin >  
> $(obj)u-boot-nand.bin
> +else
>  $(obj)u-boot-nand.bin:	nand_spl $(obj)u-boot.bin
>  		cat $(obj)nand_spl/u-boot-spl-16k.bin  
> $(obj)u-boot.bin > $(obj)u-boot-nand.bin
> +endif
> 
>  $(obj)spl/u-boot-spl.bin:	$(SUBDIR_TOOLS) depend
>  		$(MAKE) -C spl all

u-boot-nand.bin is from the legacy nand_spl subsystem.  You should be  
using u-boot-with-spl.bin if you want this sort of image concatenation  
with the new SPL.

-Scott

      reply	other threads:[~2013-07-29 22:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-28 20:16 [U-Boot] [PATCH v4 0/4] apf27: add support of armadeus apf27 Philippe Reynes
2013-07-28 20:16 ` [U-Boot] [PATCH v4 1/4] mx27: add missing constant for mx27 Philippe Reynes
2013-07-29  8:17   ` Stefano Babic
2013-07-28 20:16 ` [U-Boot] [PATCH v4 2/4] apf27: add support for the armadeus APF27 board Philippe Reynes
2013-07-29  9:43   ` Stefano Babic
2013-08-01 17:12     ` trem
2013-08-02 11:12       ` Stefano Babic
2013-08-02 12:49         ` Fabio Estevam
2013-08-02 13:05           ` Stefano Babic
2013-07-28 20:16 ` [U-Boot] [PATCH v4 3/4] apf27: add FPGA support for the apf27 board Philippe Reynes
2013-07-28 22:28   ` Wolfgang Denk
2013-07-28 20:16 ` [U-Boot] [PATCH v4 4/4] Update u-boot-nand.bin to be used with spl Philippe Reynes
2013-07-29 22:29   ` Scott Wood [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=1375136964.30721.61@snotra \
    --to=scottwood@freescale.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.