]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
omap3_beagle: Add boot script support to omap3 beagle board
authorGuillaume GARDET <guillaume.gardet@free.fr>
Tue, 26 Aug 2014 08:48:13 +0000 (10:48 +0200)
committerTom Rini <trini@ti.com>
Thu, 4 Sep 2014 17:05:57 +0000 (13:05 -0400)
This patch adds boot script support to omap3 beagle board.

Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr>
Cc: Tom Rini <trini@ti.com>
include/configs/omap3_beagle.h

index 644e97f4c4f6e075eb2f338b7aa2d765812234de..f25a9407891eae894be347611656c5dd9d23bb27 100644 (file)
                "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; " \
                        "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;" \