meta-digi/meta-digi-arm/recipes-bsp/u-boot/u-boot-fw-utils
Hector Palacios 5126a6049b u-boot-fw-utils: dynamically create fw_env.config for NAND-based platforms
A mechanism was introduced in U-Boot to dynamically locate the environment
copies within a NAND partition, skipping bad blocks and making full use of
the partition blocks.
To trigger this mechanism in Linux tools (fw_printenv/fw_setenv) the
configuration file /etc/fw_env.config must have both copies entries
pointing to the same offset.

This commit substitutes the hardcoded configuration file for CC6UL with a
stub and generates one on an RPM post-script basing on:

- Supplied DEY variables (with default values per platform):
  - UBOOT_ENV_OFFSET: starting offset of the environment within the
    partition.
  - UBOOT_ENV_SIZE: size of each copy of the environment.
  - UBOOT_ENV_RANGE: size in the partition that the environment copies may
    occupy, starting from UBOOT_ENV_OFFSET. If undefined, the whole
    partition is used.

- Calculated values:
  - NAND Erase block size
  - Number of blocks available for the environment copies

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-4256
2017-06-16 11:59:30 +02:00
..
ccimx6 meta-digi-arm: use u-boot fw-utils from Poky 2015-10-06 10:30:00 +02:00
ccimx6ul u-boot-fw-utils: dynamically create fw_env.config for NAND-based platforms 2017-06-16 11:59:30 +02:00
0001-tools-env-implement-support-for-environment-encrypti.patch u-boot-fw-utils: rework patches to fix broken build 2017-03-06 12:18:37 +01:00
0002-Implement-U-Boot-environment-access-functions.patch u-boot-fw-utils: rework patches to fix broken build 2017-03-06 12:18:37 +01:00
0003-fw_env-add-support-to-unlock-emmc-boot-partition.patch u-boot-fw-utils: rework patches to fix broken build 2017-03-06 12:18:37 +01:00
0004-tools-env-factorize-function-to-get-device-type.patch u-boot-fw-utils: added support for dynamic env location 2017-06-02 17:22:56 +02:00
0005-tools-env-add-support-to-set-dynamic-location-of-env.patch u-boot-fw-utils: added support for dynamic env location 2017-06-02 17:22:56 +02:00