]> git.sur5r.net Git - u-boot/commitdiff
omap4: load files for legacy boot
authorAsh Charles <ashcharles@gmail.com>
Thu, 5 May 2016 18:58:06 +0000 (11:58 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 6 May 2016 01:32:18 +0000 (21:32 -0400)
Be sure to load the zImage and fdtfile prior to actually booting in
case we are doing a legacy boot.

Signed-off-by: Ash Charles <ashcharles@gmail.com>
include/configs/ti_omap4_common.h

index 586d84886e87d8cdfbb9a42d729b9c8b56cfdc47..5fad3c1242c5b1d371c9f2b844888d52d9326aaf 100644 (file)
        "loaduimage=load mmc ${mmcdev} ${loadaddr} uImage\0" \
        "mmcboot=echo Booting from mmc${mmcdev} ...; " \
                "run args_mmc; " \
-               "bootz ${loadaddr} - ${fdtaddr}\0" \
+               "if run loadimage; then " \
+                       "run loadfdt; " \
+                       "bootz ${loadaddr} - ${fdtaddr}; " \
+               "fi;\0" \
        "uimageboot=echo Booting from mmc${mmcdev} ...; " \
                "run args_mmc; " \
                "bootm ${loadaddr}\0" \