summaryrefslogtreecommitdiff
path: root/include/configs/mx53ard.h
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-06-04 15:05:39 +0000
committerStefano Babic <sbabic@denx.de>2013-06-06 15:45:42 +0200
commit7fb72c7979dd3e73a8ac75730e5eda5538dce8f2 (patch)
treefce27a16b42d5ab44b0e86e5fd7b990dabd70d2c /include/configs/mx53ard.h
parent9b75bad0b926b018c73348249771d45b039fa920 (diff)
downloadu-boot-imx-7fb72c7979dd3e73a8ac75730e5eda5538dce8f2.zip
u-boot-imx-7fb72c7979dd3e73a8ac75730e5eda5538dce8f2.tar.gz
u-boot-imx-7fb72c7979dd3e73a8ac75730e5eda5538dce8f2.tar.bz2
ARM: imx: Fix incorrect usage of CONFIG_SYS_MMC_ENV_PART
When running the "save" command several times on a mx6qsabresd we see: U-Boot > save Saving Environment to MMC... Writing to MMC(1)... done U-Boot > save Saving Environment to MMC... MMC partition switch failed U-Boot > save Saving Environment to MMC... Writing to MMC(1)... done U-Boot > save Saving Environment to MMC... MMC partition switch failed U-Boot > save Saving Environment to MMC... Writing to MMC(1)... done U-Boot > save Saving Environment to MMC... MMC partition switch failed This issue is caused by the incorrect usage of CONFIG_SYS_MMC_ENV_PART. CONFIG_SYS_MMC_ENV_PART should be used to specify the mmc partition that stores the environment variables. On some imx boards it is been incorrectly used to pass the partition of kernel and dtb files for the 'mmcpart' script variable. Remove the CONFIG_SYS_MMC_ENV_PART usage and configure the 'mmcpart' variable directly. Reported-by: Jason Liu <r64343@freescale.com> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'include/configs/mx53ard.h')
-rw-r--r--include/configs/mx53ard.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/configs/mx53ard.h b/include/configs/mx53ard.h
index 41974b1..b0a965f 100644
--- a/include/configs/mx53ard.h
+++ b/include/configs/mx53ard.h
@@ -118,7 +118,7 @@
"boot_fdt=try\0" \
"ip_dyn=yes\0" \
"mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV) "\0" \
- "mmcpart=" __stringify(CONFIG_SYS_MMC_ENV_PART) "\0" \
+ "mmcpart=2\0" \
"mmcroot=/dev/mmcblk0p3 rootwait rw\0" \
"update_sd_firmware_filename=u-boot.imx\0" \
"update_sd_firmware=" \
@@ -240,7 +240,6 @@
#define CONFIG_ENV_SIZE (8 * 1024)
#define CONFIG_ENV_IS_IN_MMC
#define CONFIG_SYS_MMC_ENV_DEV 0
-#define CONFIG_SYS_MMC_ENV_PART 2
#define CONFIG_OF_LIBFDT