Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] Add support for U-Boot SPL
Date: Fri, 10 Feb 2012 00:58:01 +0100	[thread overview]
Message-ID: <201202100058.02053.arnout@mind.be> (raw)
In-Reply-To: <1328402147-21404-2-git-send-email-n-dechesne@ti.com>

On Sunday 05 February 2012 01:35:46 Nicolas Dechesne wrote:
> SPL is a first stage bootloader. On pandaboard it supercedes x-loader,
> and should now be used.
> 
> - this patch ensures that either SPL or xloader can be selected
> - SPL will load 'u-boot.img' instead of 'u-boot.bin, so the name
>   is updated accordingly

 It doesn't work well, but unfortunately I don't know how to solve it.
MLO and u-boot.img are only created for the omap configs, and only in
u-boot 2011.12 or later.  Depending on omap in the Config.in is almost
impossible, and also depending on 2011.12 is difficult because it could
be a custom git instead.

 I think the only solution is to add a check in the .mk file if MLO and
u-boot.img indeed exist, and fall back to the default instead if not.

 What is also missing is that the choice between the different image types
should depend on !BR2_TARGET_UBOOT_SPL.

 Regards,
 Arnout

> 
> Signed-off-by: Nicolas Dechesne <n-dechesne@ti.com>
> ---
>  boot/uboot/Config.in |    6 ++++++
>  boot/uboot/uboot.mk  |    4 ++++
>  2 files changed, 10 insertions(+), 0 deletions(-)
> 
> diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
> index c8db9fb..1b94803 100644
> --- a/boot/uboot/Config.in
> +++ b/boot/uboot/Config.in
> @@ -137,4 +137,10 @@ config BR2_TARGET_UBOOT_ETH1ADDR
>  
>  endif # BR2_TARGET_UBOOT_NETWORK
>  
> +config BR2_TARGET_UBOOT_SPL
> +	bool "U-Boot SPL suport"
> +	depends on !BR2_TARGET_XLOADER
> +	help
> +	  Enable the U-Boot SPL support
> +
>  endif # BR2_TARGET_UBOOT
> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> index db9de8d..b327f4b 100644
> --- a/boot/uboot/uboot.mk
> +++ b/boot/uboot/uboot.mk
> @@ -29,6 +29,8 @@ else ifeq ($(BR2_TARGET_UBOOT_FORMAT_LDR),y)
>  UBOOT_BIN          = u-boot.ldr
>  else ifeq ($(BR2_TARGET_UBOOT_FORMAT_NAND_BIN),y)
>  UBOOT_BIN          = u-boot-nand.bin
> +else ifeq ($(BR2_TARGET_UBOOT_SPL),y)
> +UBOOT_BIN          = u-boot.img
>  else
>  UBOOT_BIN          = u-boot.bin
>  endif
> @@ -88,6 +90,8 @@ endef
>  
>  define UBOOT_INSTALL_IMAGES_CMDS
>  	cp -dpf $(@D)/$(UBOOT_BIN) $(BINARIES_DIR)/
> +	$(if $(BR2_TARGET_UBOOT_SPL),
> +		cp -dpf $(@D)/MLO $(BINARIES_DIR)/)
>  endef
>  
>  $(eval $(call GENTARGETS))
> 

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  parent reply	other threads:[~2012-02-09 23:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-05  0:35 [Buildroot] [PATCH 0/2] Initial support for Panda and PandaES Nicolas Dechesne
2012-02-05  0:35 ` [Buildroot] [PATCH 1/2] Add support for U-Boot SPL Nicolas Dechesne
2012-02-06 10:59   ` Thomas De Schampheleire
2012-02-09 23:58   ` Arnout Vandecappelle [this message]
2012-02-10 18:27     ` Dechesne, Nicolas
2012-02-10 21:37       ` Arnout Vandecappelle
2012-02-15 21:56         ` Dechesne, Nicolas
2012-02-05  0:35 ` [Buildroot] [PATCH 2/2] Initial support for PandaBoard and PandaBoard ES Nicolas Dechesne

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=201202100058.02053.arnout@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /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