summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Brandt <michael.brandt@stericsson.com>2010-10-20 16:12:26 +0200
committerMichael BRANDT <michael.brandt@stericsson.com>2010-10-26 16:47:00 +0200
commitaf8791252141962df2c58165f1437bd9a5dcce89 (patch)
treed6332234894503cb933734257fb79eba454af609 /include
parentdb452d7a13eae4e9d8b492679e69223847e09054 (diff)
U8500: default env: MMC related fixes and changes
Enabled setexpr command to enable $filesize to $blocksize conversion in scripts. Changed occurrences of "mmc init" to "mmc rescan". Changed paths in fat commands to absolute paths. Added mmcboot alias to boot from external MMC (SD card). The rootfs must be on the second partition. This allows to have a FAT FS on the first partition; which is very common. Change-Id: I17b89a43b4be7906f3f9e16e9ced9fa421a52d3a Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/6964 Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com> Reviewed-by: Kunal GOEL <kunal.goel@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/u8500.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/configs/u8500.h b/include/configs/u8500.h
index 3556f4736..ffb74bf58 100644
--- a/include/configs/u8500.h
+++ b/include/configs/u8500.h
@@ -110,6 +110,7 @@
#define CONFIG_CMD_SOURCE
#define CONFIG_CMD_I2C
#define CONFIG_CMD_TOC
+#define CONFIG_CMD_SETEXPR /* used to convert $filesize to $blocksize */
#ifdef CONFIG_USB_TTY
#define CONFIG_BOOTDELAY -1 /* disable autoboot */
@@ -154,10 +155,17 @@
"mmc read 0 ${loadaddr} 0xA0000 0x4000;" \
"boottime_tag boot_kernel;" \
"bootm ${loadaddr}\0" \
- "cmdfile=mmc init 1;mmc_read_cmd_file;run bootcmd\0" \
- "flash=mmc init 1;fatload mmc 1 ${loadaddr} flash.scr;" \
+ "cmdfile=mmc rescan 1;mmc_read_cmd_file;run bootcmd\0" \
+ "flash=mmc rescan 1;fat load mmc 1 ${loadaddr} /flash.scr;" \
"source ${loadaddr}\0" \
- "loaduimage=mmc init 1;fatload mmc 1 ${loadaddr} uImage\0" \
+ "loaduimage=mmc rescan 1;fat load mmc 1 ${loadaddr} /uImage\0" \
+ "mmcargs=setenv bootargs ${bootargs} " \
+ "root=/dev/mmcblk2p2 " \
+ "rootwait\0" \
+ "mmcboot=echo Booting from external MMC ...; " \
+ "run commonargs mmcargs addcons memargs;" \
+ "write_partition_block;" \
+ "run loaduimage; bootm ${loadaddr}\0" \
"usbtty=cdc_acm\0" \
"stdout=serial,usbtty\0" \
"stdin=serial,usbtty\0" \