diff --git a/meta-digi-arm/recipes-bsp/libubootenv/libubootenv/ubi/fw_env.config_default b/meta-digi-arm/recipes-bsp/libubootenv/libubootenv/ubi/fw_env.config_default new file mode 100644 index 000000000..2982065e9 --- /dev/null +++ b/meta-digi-arm/recipes-bsp/libubootenv/libubootenv/ubi/fw_env.config_default @@ -0,0 +1,11 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash. +# Futhermore, if the Flash sector size is omitted, this value is assumed to +# be the same as the Environment size, which is valid for NOR and SPI-dataflash +# Device offset must be prefixed with 0x to be parsed as a hexadecimal value. + +# UBI volume by name Offset Size Erase-size +/dev/ubi0:uboot_config 0x0 0x20000 0x20000 +/dev/ubi0:uboot_config_r 0x0 0x20000 0x20000 diff --git a/meta-digi-arm/recipes-bsp/libubootenv/libubootenv_%.bbappend b/meta-digi-arm/recipes-bsp/libubootenv/libubootenv_%.bbappend index 5ee54cb84..d4298883e 100644 --- a/meta-digi-arm/recipes-bsp/libubootenv/libubootenv_%.bbappend +++ b/meta-digi-arm/recipes-bsp/libubootenv/libubootenv_%.bbappend @@ -11,7 +11,9 @@ FW_CONFIG_FILE = "${@bb.utils.contains('STORAGE_MEDIA', 'mtd', \ '${STORAGE_MEDIA}/fw_env.config', \ d)}" -FW_CONFIG_FILE:ccmp1 = "ubi/fw_env.config" +FW_CONFIG_FILE:ccmp1 = "${@bb.utils.contains('IMAGE_FEATURES', 'read-only-rootfs', \ + 'ubi/fw_env.config_default', \ + 'ubi/fw_env.config', d)}" SRC_URI += " \ file://${FW_CONFIG_FILE} \