public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Guillaume Gardet <guillaume.gardet@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] am335x_evm: Add boot script support to am335x_evm
Date: Wed, 17 Sep 2014 10:11:43 +0200	[thread overview]
Message-ID: <5419423F.3050701@free.fr> (raw)
In-Reply-To: <1410420188-6160-1-git-send-email-guillaume.gardet@free.fr>

Ping.

Guillaume

Le 11/09/2014 09:23, Guillaume GARDET a ?crit :
> This patch adds boot script support to am335x_evm
>
> Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr>
> Cc: Tom Rini <trini@ti.com>
>
> ---
>   include/configs/am335x_evm.h | 29 ++++++++++++++++++-----------
>   1 file changed, 18 insertions(+), 11 deletions(-)
>
> diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
> index df1a6fc..aef0ad3 100644
> --- a/include/configs/am335x_evm.h
> +++ b/include/configs/am335x_evm.h
> @@ -115,6 +115,9 @@
>   		"nfsroot=${serverip}:${rootpath},${nfsopts} rw " \
>   		"ip=dhcp\0" \
>   	"bootenv=uEnv.txt\0" \
> +	"loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \
> +	"bootscript=echo Running bootscript from mmc${mmcdev} ...; " \
> +		"source ${loadaddr}\0" \
>   	"loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
>   	"importbootenv=echo Importing environment from mmc ...; " \
>   		"env import -t -r $loadaddr $filesize\0" \
> @@ -142,17 +145,21 @@
>   	"mmcboot=mmc dev ${mmcdev}; " \
>   		"if mmc rescan; then " \
>   			"echo SD/MMC found on device ${mmcdev};" \
> -			"if run loadbootenv; then " \
> -				"echo Loaded environment from ${bootenv};" \
> -				"run importbootenv;" \
> -			"fi;" \
> -			"if test -n $uenvcmd; then " \
> -				"echo Running uenvcmd ...;" \
> -				"run uenvcmd;" \
> -			"fi;" \
> -			"if run loadimage; then " \
> -				"run mmcloados;" \
> -			"fi;" \
> +			"if run loadbootscript; then " \
> +				"run bootscript;" \
> +			"else " \
> +				"if run loadbootenv; then " \
> +					"echo Loaded environment from ${bootenv};" \
> +					"run importbootenv;" \
> +				"fi;" \
> +				"if test -n $uenvcmd; then " \
> +					"echo Running uenvcmd ...;" \
> +					"run uenvcmd;" \
> +				"fi;" \
> +				"if run loadimage; then " \
> +					"run mmcloados;" \
> +				"fi;" \
> +			"fi ;" \
>   		"fi;\0" \
>   	"spiboot=echo Booting from spi ...; " \
>   		"run spiargs; " \

  reply	other threads:[~2014-09-17  8:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-11  7:23 [U-Boot] [PATCH] am335x_evm: Add boot script support to am335x_evm Guillaume GARDET
2014-09-17  8:11 ` Guillaume Gardet [this message]
2014-09-18 12:34 ` [U-Boot] " Tom Rini

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=5419423F.3050701@free.fr \
    --to=guillaume.gardet@free.fr \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox