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] ORIGEN: Enhance origen config to be more flexible on boot.
Date: Mon, 29 Sep 2014 08:35:55 +0200	[thread overview]
Message-ID: <5428FDCB.4070508@free.fr> (raw)
In-Reply-To: <1411133566-15305-1-git-send-email-guillaume.gardet@free.fr>

Ping.

Guillaume

Le 19/09/2014 15:32, Guillaume GARDET a ?crit :
> This patch enhances the boot of origen board by adding support to ext2, bootz, initrd, bootenv loading and boot script.
> It still keeps the previous mmc load command if boot script fails.
>
> Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
>
> ---
>   include/configs/origen.h | 35 ++++++++++++++++++++++++++++++++++-
>   1 file changed, 34 insertions(+), 1 deletion(-)
>
> diff --git a/include/configs/origen.h b/include/configs/origen.h
> index 5d24916..2117fe1 100644
> --- a/include/configs/origen.h
> +++ b/include/configs/origen.h
> @@ -61,6 +61,10 @@
>   #undef CONFIG_CMD_PING
>   #define CONFIG_CMD_ELF
>   #define CONFIG_CMD_DHCP
> +#define CONFIG_CMD_EXT2
> +#define CONFIG_CMD_FS_GENERIC
> +#define CONFIG_CMD_BOOTZ
> +#define CONFIG_SUPPORT_RAW_INITRD
>   #undef CONFIG_CMD_NET
>   #undef CONFIG_CMD_NFS
>   
> @@ -68,7 +72,36 @@
>   #define COPY_BL2_FNPTR_ADDR	0x02020030
>   #define CONFIG_SPL_TEXT_BASE	0x02021410
>   
> -#define CONFIG_BOOTCOMMAND	"fatload mmc 0 40007000 uImage; bootm 40007000"
> +#define CONFIG_EXTRA_ENV_SETTINGS \
> +	"loadaddr=0x40007000\0" \
> +	"rdaddr=0x48000000\0" \
> +	"kerneladdr=0x40007000\0" \
> +	"ramdiskaddr=0x48000000\0" \
> +	"console=ttySAC2,115200n8\0" \
> +	"mmcdev=0\0" \
> +	"bootenv=uEnv.txt\0" \
> +	"loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
> +	"importbootenv=echo Importing environment from mmc ...; " \
> +		"env import -t $loadaddr $filesize\0" \
> +	"loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \
> +	"bootscript=echo Running bootscript from mmc${mmcdev} ...; " \
> +		"source ${loadaddr}\0"
> +#define CONFIG_BOOTCOMMAND \
> +	"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 loadbootscript; then " \
> +			"run bootscript; " \
> +		"fi; " \
> +	"fi; " \
> +	"load mmc ${mmcdev} ${loadaddr} uImage; bootm ${loadaddr} "
>   
>   #define CONFIG_IDENT_STRING		" for ORIGEN"
>   

  reply	other threads:[~2014-09-29  6:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-19 13:32 [U-Boot] [PATCH] ORIGEN: Enhance origen config to be more flexible on boot Guillaume GARDET
2014-09-29  6:35 ` Guillaume Gardet [this message]
2014-10-08 10:52   ` Minkyu Kang
2014-10-08 13:04     ` [U-Boot] [PATCH V2] " Guillaume GARDET
2014-11-25  1:29       ` Minkyu Kang
2014-11-25  8:20         ` Sjoerd Simons
  -- strict thread matches above, loose matches on Subject: below --
2014-09-19 13:32 [U-Boot] [PATCH] " Guillaume GARDET

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=5428FDCB.4070508@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