meta-digi/meta-digi-arm/recipes-bsp/u-boot
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
..
u-boot-dey-2013.01/ccardimx28 meta-digi-arm: rework SD card generation class 2015-06-25 18:44:13 +02:00
u-boot-dey-2015.04 meta-digi-arm: add support for CC6 variant 0x14 2017-05-30 13:27:24 +02:00
u-boot-fw-utils u-boot-fw-utils: dynamically create fw_env.config for NAND-based platforms 2017-06-16 11:59:30 +02:00
u-boot-dey-rev_2013.01.inc meta-digi: update revisions for dey-2.2-r1.4 2017-04-28 17:10:48 +02:00
u-boot-dey_2013.01.bb meta-digi-arm: rework SD card generation class 2015-06-25 18:44:13 +02:00
u-boot-dey_2015.04.bb meta-digi: update revisions for dey-2.2-r1.4 2017-04-28 17:10:48 +02:00
u-boot-fw-utils_%.bbappend u-boot-fw-utils: dynamically create fw_env.config for NAND-based platforms 2017-06-16 11:59:30 +02:00
u-boot.inc meta-digi-arm: u-boot.inc: Do not override defconfig targets on multiple u-boot 2016-07-13 14:14:45 +02:00