View Issue Details

IDProjectCategoryView StatusLast Update
0004895UBootU-Bootpublic2021-10-05 12:22
Reporterderksen Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Target Versionfsimx8mm-Y2021.04Fixed in Versionfsimx8mm-Y2021.04 
Summary0004895: fsimx8mm: On eMMC, load environment from boot partition
Descriptionfsimx8mm: On eMMC, load environment from boot partition

When booting from eMMC, load the U-Boot environment from the
partition where the system boots from. This may be Boot1, Boot2
or the User HW partition, depending on the configuration in the
device itself (ExtCSD[179]).

This is done by setting CONFIG_SYS_MMC_ENV_PART. This means that
mmc_set_env_part() in env/mmc.c will call mmc_get_env_part().
This is only a weak function, so we can override it with our own
implementation in fsimx8mm.c, that returns the boot partition of
the eMMC device.

Normally we will boot from Boot1 partition. Moving the environment
there has two advantages:

1. This partition is always in Enhanced Mode (Pseudo-SLC) and the
   environment is much safer.
2. The environment does not get erased when a new filesystem is
   written to the User partition. This is important because we
   store the MAC addresses in the environment that should not get
   lost.
Forum Link

Activities

There are no notes attached to this issue.