From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guillaume Gardet Date: Tue, 02 Sep 2014 14:41:21 +0200 Subject: [U-Boot] [PATCH] omap3_beagle: Add boot script support to omap3 beagle board In-Reply-To: <1409042893-6647-1-git-send-email-guillaume.gardet@free.fr> References: <1409042893-6647-1-git-send-email-guillaume.gardet@free.fr> Message-ID: <5405BAF1.9010707@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Ping. Guillaume Le 26/08/2014 10:48, Guillaume GARDET a ?crit : > This patch adds boot script support to omap3 beagle board. > > Signed-off-by: Guillaume GARDET > Cc: Tom Rini > > --- > include/configs/omap3_beagle.h | 13 ++++++++++--- > 1 file changed, 10 insertions(+), 3 deletions(-) > > diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h > index 644e97f..f25a940 100644 > --- a/include/configs/omap3_beagle.h > +++ b/include/configs/omap3_beagle.h > @@ -207,6 +207,9 @@ > "rootfstype=${ramrootfstype}\0" \ > "loadramdisk=load mmc ${bootpart} ${rdaddr} ${bootdir}/${ramdisk}\0" \ > "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \ > + "loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \ > + "bootscript=echo Running bootscript from mmc${mmcdev} ...; " \ > + "source ${loadaddr}\0" \ > "loadfdt=run validatefdt; load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \ > "mmcboot=echo Booting from mmc ...; " \ > "run mmcargs; " \ > @@ -243,9 +246,13 @@ > "echo Running uenvcmd ...;" \ > "run uenvcmd;" \ > "fi;" \ > - "if run loadimage; then " \ > - "run mmcboot;" \ > - "fi;" \ > + "if run loadbootscript; then " \ > + "run bootscript; " \ > + "else " \ > + "if run loadimage; then " \ > + "run mmcboot;" \ > + "fi;" \ > + "fi; " \ > "fi;" \ > "run nandboot;" \ > "setenv bootfile zImage;" \