meta-digi/meta-digi-arm/recipes-bsp
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
..
alsa-state alsa-state: ccimx6ul: enable speaker right channel 2017-01-02 17:56:46 +01:00
firmware-atheros meta-digi: Replace COMPATIBLE_MACHINE string for ccimx6 2016-05-11 10:22:25 +02:00
firmware-qualcomm meta-digi-arm: firmware-qualcomm: Update board data files. 2017-04-11 10:40:13 +02:00
formfactor formfactor: move config files under machine directories 2016-09-27 11:22:22 +02:00
kobs-ng kobs-ng: add support for 4K page NAND with 224-byte OOB 2015-10-19 11:59:04 +02:00
libdigi meta-digi-dey: Add LDFLAGS to do_compile override 2017-03-17 19:15:27 +01:00
nvram meta-digi: remove support for MX5X platforms 2015-11-05 13:56:38 +01:00
trustfence-cst trustfence-cst-native: add premirror for CST package 2017-03-23 12:36:57 +01:00
u-boot u-boot-fw-utils: dynamically create fw_env.config for NAND-based platforms 2017-06-16 11:59:30 +02:00
ubootenv meta-digi: remove deprecated PR from recipes 2015-03-13 18:43:11 +01:00
update-flash meta-digi-dey: Add LDFLAGS to do_compile override 2017-03-17 19:15:27 +01:00