aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas.biessmann@corscience.de>2013-09-06 15:04:51 +0200
committerTom Rini <trini@ti.com>2013-11-01 15:55:58 -0400
commitdeac6d664b3149ff0b44676c345303dad62b74b5 (patch)
treeecd8a1ac0767550d1959a2e55c38890a9c11e972 /include
parentec24645224c99c11e2cfcb1237ddb6a54ee92215 (diff)
downloadu-boot-deac6d664b3149ff0b44676c345303dad62b74b5.zip
u-boot-deac6d664b3149ff0b44676c345303dad62b74b5.tar.gz
u-boot-deac6d664b3149ff0b44676c345303dad62b74b5.tar.bz2
tricorder: add mtdparts to environment
Before we always ran 'mtdparts default' which also set the mtdparts and mtdids environment. But if we changed that values by intention we will overwrite them with our default values. This is obviously bad! Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
Diffstat (limited to 'include')
-rw-r--r--include/configs/tricorder.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/configs/tricorder.h b/include/configs/tricorder.h
index 6d93cb0..ec900e5 100644
--- a/include/configs/tricorder.h
+++ b/include/configs/tricorder.h
@@ -160,6 +160,8 @@
"vram=3M\0" \
"defaultdisplay=lcd\0" \
"kernelopts=mtdoops.mtddev=3\0" \
+ "mtdparts=" MTDPARTS_DEFAULT "\0" \
+ "mtdids=" MTDIDS_DEFAULT "\0" \
"commonargs=" \
"setenv bootargs console=${console} " \
"${mtdparts} " \
@@ -188,7 +190,6 @@
CONFIG_COMMON_ENV_SETTINGS \
CONFIG_ENV_RDADDR \
"autoboot=" \
- "mtdparts default; " \
"run commonargs; " \
"setenv bootargs ${bootargs} " \
"flashy_updateimg=/dev/mmcblk0p1:corscience_update.img " \
@@ -226,16 +227,14 @@
"mmcboot=echo Booting from mmc ...; " \
"run mmcargs; " \
"bootm ${loadaddr}\0" \
- "loaduimage_ubi=mtd default; " \
- "ubi part ubi; " \
+ "loaduimage_ubi=ubi part ubi; " \
"ubifsmount ubi:root; " \
"ubifsload ${loadaddr} /boot/uImage\0" \
"nandboot=echo Booting from nand ...; " \
"run nandargs; " \
"run loaduimage_ubi; " \
"bootm ${loadaddr}\0" \
- "autoboot=mtdparts default;" \
- "mmc dev ${mmcdev}; if mmc rescan; then " \
+ "autoboot=mmc dev ${mmcdev}; if mmc rescan; then " \
"if run loadbootscript; then " \
"run bootscript; " \
"else " \