From: Nishanth Menon Date: Fri, 11 Jan 2013 14:50:51 -0600 Subject: [U-Boot] [PATCH] configs: omap4_common: support load from uEnv.txt In-Reply-To: <1357936790-27543-1-git-send-email-nm@ti.com> References: <1357936790-27543-1-git-send-email-nm@ti.com> Message-ID: <20130111205051.GA27607@kahuna> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 14:39-20130111, Nishanth Menon wrote: > if traditionally used boot.scr is not found see if uEnv.txt > is available to load environment. uenvcmd is executed after load > of uEnv.txt if it is defined in the environment text file > > Signed-off-by: Nishanth Menon > --- > include/configs/omap4_common.h | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/include/configs/omap4_common.h b/include/configs/omap4_common.h > index a32369a..8b71beb 100644 > --- a/include/configs/omap4_common.h > +++ b/include/configs/omap4_common.h > @@ -159,6 +159,10 @@ > "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \ > "bootscript=echo Running bootscript from mmc${mmcdev} ...; " \ > "source ${loadaddr}\0" \ > + "bootenv=uEnv.txt\0" \ > + "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \ > + "importbootenv=echo Importing environment from mmc ...; " \ > + "env import -t $loadaddr $filesize\0" \ > "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \ > "mmcboot=echo Booting from mmc${mmcdev} ...; " \ > "run mmcargs; " \ > @@ -169,6 +173,14 @@ > "if run loadbootscript; then " \ > "run bootscript; " \ > "else " \ > + "if run loadbootenv; then " \ > + "echo Loaded environment from ${bootenv};" \ > + "run importbootenv;" \ > + "if test -n $uenvcmd; then " \ > + "echo Running uenvcmd ...;" \ > + "run uenvcmd;" \ > + "fi;" \ > + "fi;" \ > "if run loaduimage; then " \ > "run mmcboot; " \ > "fi; " \ > -- > 1.7.9.5 > Thanks to Tom pointing in IRC, patch http://patchwork.ozlabs.org/patch/209925/ prefer that patch be merged instead of mine. -- Regards, Nishanth Menon