]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
omap3_beagle: support booting from zImage and device tree as last option
authorNishanth Menon <nm@ti.com>
Mon, 15 Jul 2013 12:11:33 +0000 (07:11 -0500)
committerTom Rini <trini@ti.com>
Fri, 26 Jul 2013 20:39:12 +0000 (16:39 -0400)
If no other bootoption works, try loading up device tree and zImage.

This is selected as the last option to allow backward compatibility as
well as support the recent trend in moving kernel boot to using zImage
and device tree.

NOTE: if uImage is present in bootpart, it will try this first and
will assume this is to be booted with bootm (so may be concatenated
image or plain vanilla ATAG MACHINE_ID based image)

Signed-off-by: Nishanth Menon <nm@ti.com>
include/configs/omap3_beagle.h

index dacabb69108538a1554a1508444da78a5238152f..4487451acd4a46c665318e92cc86fbfc85edfac0 100644 (file)
        "mmcboot=echo Booting from mmc ...; " \
                "run mmcargs; " \
                "bootm ${loadaddr}\0" \
+       "mmcbootz=echo Booting with DT from mmc${mmcdev} ...; " \
+               "run mmcargs; " \
+               "bootz ${loadaddr} - ${fdtaddr}\0" \
        "nandboot=echo Booting from nand ...; " \
                "run nandargs; " \
                "nand read ${loadaddr} 280000 400000; " \
                "fi;" \
        "fi;" \
        "run nandboot;" \
+       "setenv bootfile zImage;" \
+       "if run loadimage; then " \
+               "run loadfdt;" \
+               "run mmcbootz; " \
+       "fi; " \
 
 #define CONFIG_AUTO_COMPLETE           1
 /*