]> git.sur5r.net Git - u-boot/commit
ARM: imx: Fix incorrect usage of CONFIG_SYS_MMC_ENV_PART
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 4 Jun 2013 15:05:39 +0000 (15:05 +0000)
committerStefano Babic <sbabic@denx.de>
Thu, 6 Jun 2013 13:45:42 +0000 (15:45 +0200)
commit7fb72c7979dd3e73a8ac75730e5eda5538dce8f2
treefce27a16b42d5ab44b0e86e5fd7b990dabd70d2c
parent9b75bad0b926b018c73348249771d45b039fa920
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>
include/configs/mx53ard.h
include/configs/mx6qsabre_common.h
include/configs/mx6qsabreauto.h
include/configs/mx6qsabresd.h
include/configs/wandboard.h