
On 06/04/2013 01:17 PM, Fabio Estevam wrote:
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
Fix this by updating mmc->part_num inside mmc_switch_part() after a succesful mmc partition switch.
This surely has exactly the same issue as the previous version, where the update of part_num was done inside common/env_mmc.c?