aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAngus Ainslie <angus.ainslie@linaro.org>2011-08-22 11:38:12 -0600
committerJohn Rigby <john.rigby@linaro.org>2012-12-06 12:16:41 -0700
commit66f4a3644d0df3f96b26263e854cb4c47f30ea7d (patch)
tree2ecd6fed2cb720baf61fb83072d497e1f33c2d77 /include
parent245c4eba4aacfb778e1c432c93acd9cb1eccc92d (diff)
downloadu-boot-linaro-stable-66f4a3644d0df3f96b26263e854cb4c47f30ea7d.tar.gz
Add a default env that will use boot.scr from the vfat partition
Signed-off-by: Angus Ainslie <angus.ainslie@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/configs/origen.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/include/configs/origen.h b/include/configs/origen.h
index ff2b24d97..1f013386a 100644
--- a/include/configs/origen.h
+++ b/include/configs/origen.h
@@ -96,7 +96,32 @@
#define CONFIG_SPL
#define COPY_BL2_FNPTR_ADDR 0x02020030
-#define CONFIG_BOOTCOMMAND "fatload mmc 0 40007000 uImage; bootm 40007000"
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ "loadaddr=0x42000000\0" \
+ "console=ttySAC2,115200n8\0" \
+ "mmcdev=0:2\0" \
+ "mmcroot=/dev/mmcblk0p2 rw\0" \
+ "rootwait\0" \
+ "mmcargs=setenv bootargs console=${console} " \
+ "root=${mmcroot}\0" \
+ "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
+ "bootscript=echo Running bootscript from mmc${mmcdev} ...; " \
+ "source ${loadaddr}\0" \
+ "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
+ "mmcboot=echo Booting from mmc${mmcdev} ...; " \
+ "run mmcargs; " \
+ "bootm ${loadaddr}\0" \
+
+#define CONFIG_BOOTCOMMAND \
+ "if mmc rescan ${mmcdev}; then " \
+ "if run loadbootscript; then " \
+ "run bootscript; " \
+ "else " \
+ "if run loaduimage; then " \
+ "run mmcboot; " \
+ "fi; " \
+ "fi; " \
+ "fi"
/* Miscellaneous configurable options */
#define CONFIG_SYS_LONGHELP /* undef to save memory */