omap3: zoom1: enable bootz
Boot from zImage and fdt_file if uImage is not available to maintain the legacy behavior. Signed-off-by: Nishanth Menon <nm@ti.com>
This commit is contained in:
parent
4e8183b7d4
commit
c2e7c7b2d9
|
@ -45,6 +45,7 @@
|
||||||
#define CONFIG_REVISION_TAG 1
|
#define CONFIG_REVISION_TAG 1
|
||||||
|
|
||||||
#define CONFIG_OF_LIBFDT 1
|
#define CONFIG_OF_LIBFDT 1
|
||||||
|
#define CONFIG_CMD_BOOTZ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Size of malloc() pool
|
* Size of malloc() pool
|
||||||
|
@ -155,7 +156,9 @@
|
||||||
|
|
||||||
#define CONFIG_EXTRA_ENV_SETTINGS \
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||||||
"loadaddr=0x82000000\0" \
|
"loadaddr=0x82000000\0" \
|
||||||
|
"fdtaddr=0x80f80000\0" \
|
||||||
"bootfile=uImage\0" \
|
"bootfile=uImage\0" \
|
||||||
|
"fdtfile=omap3-ldp.dtb\0" \
|
||||||
"bootdir=/\0" \
|
"bootdir=/\0" \
|
||||||
"bootpart=0:1\0" \
|
"bootpart=0:1\0" \
|
||||||
"usbtty=cdc_acm\0" \
|
"usbtty=cdc_acm\0" \
|
||||||
|
@ -175,9 +178,14 @@
|
||||||
"bootscript=echo Running bootscript from mmc ...; " \
|
"bootscript=echo Running bootscript from mmc ...; " \
|
||||||
"source ${loadaddr}\0" \
|
"source ${loadaddr}\0" \
|
||||||
"loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
|
"loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
|
||||||
|
"loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
|
||||||
|
"loadzimage=setenv bootfile zImage; if run loadimage; then run loadfdt;fi\0"\
|
||||||
"mmcboot=echo Booting from mmc ...; " \
|
"mmcboot=echo Booting from mmc ...; " \
|
||||||
"run mmcargs; " \
|
"run mmcargs; " \
|
||||||
"bootm ${loadaddr}\0" \
|
"bootm ${loadaddr}\0" \
|
||||||
|
"mmczboot=echo Booting from mmc ...; " \
|
||||||
|
"run mmcargs; " \
|
||||||
|
"bootz ${loadaddr} - ${fdtaddr}\0" \
|
||||||
"nandboot=echo Booting from nand ...; " \
|
"nandboot=echo Booting from nand ...; " \
|
||||||
"run nandargs; " \
|
"run nandargs; " \
|
||||||
"nand read ${loadaddr} 280000 400000; " \
|
"nand read ${loadaddr} 280000 400000; " \
|
||||||
|
@ -190,8 +198,10 @@
|
||||||
"else " \
|
"else " \
|
||||||
"if run loadimage; then " \
|
"if run loadimage; then " \
|
||||||
"run mmcboot; " \
|
"run mmcboot; " \
|
||||||
|
"else if run loadzimage; then " \
|
||||||
|
"run mmczboot; " \
|
||||||
"else run nandboot; " \
|
"else run nandboot; " \
|
||||||
"fi; " \
|
"fi; fi;" \
|
||||||
"fi; " \
|
"fi; " \
|
||||||
"else run nandboot; fi"
|
"else run nandboot; fi"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue