We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2ffeaa commit 0536b44Copy full SHA for 0536b44
env/mmc.c
@@ -353,6 +353,7 @@ static int env_mmc_load(void)
353
int ret;
354
int dev = mmc_get_env_dev();
355
const char *errmsg;
356
+ env_t *ep = NULL;
357
358
mmc = find_mmc_device(dev);
359
@@ -374,6 +375,10 @@ static int env_mmc_load(void)
374
375
}
376
377
ret = env_import(buf, 1);
378
+ if (!ret) {
379
+ ep = (env_t *)buf;
380
+ gd->env_addr = (ulong)&ep->data;
381
+ }
382
383
fini:
384
fini_mmc_for_env(mmc);
0 commit comments