[U-Boot] [PATCH v2] mmc: Update "mmc->part_num" when performing a partition switch

Stephen Warren swarren at wwwdotorg.org
Wed Jun 5 01:30:06 CEST 2013


On 06/04/2013 05:09 PM, Fabio Estevam wrote:
> On Tue, Jun 4, 2013 at 7:12 PM, Stephen Warren <swarren at wwwdotorg.org> wrote:
> 
>> In env_mmc.c, you'll want something like:
> 
> Thanks for the patch, but when I add these changes on top of my patch
> it results in the original error:

Of course; with that patch applied, there is no effective difference in
the code - you've just cleaned it up to have the MMC core manage
mmc->part_num, rather than requiring all callers to update it themselves.

> 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 >

I have no idea why that happens. You'll simply have to debug the code.
Do you have CONFIG_SYS_MMC_ENV_PART set? I wasn't aware anyone else used
it, besides Tegra.


More information about the U-Boot mailing list