View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004895 | UBoot | U-Boot | public | 2021-10-05 09:08 | 2021-10-05 12:22 |
Reporter | derksen | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Target Version | fsimx8mm-Y2021.04 | Fixed in Version | fsimx8mm-Y2021.04 | ||
Summary | 0004895: fsimx8mm: On eMMC, load environment from boot partition | ||||
Description | fsimx8mm: 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 | |||||