diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2016-07-21 18:40:17 -0700 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2016-08-17 14:08:52 +0200 |
commit | 838ea9bf30fda85fa64e02d438d9a9e0ce749409 (patch) | |
tree | e868d524343a96d1cbdbb242912f97b63cdf681b /recipes-bsp/u-boot/files/tegra3 | |
parent | a51f93cb530a05478e559ae5d6fd0ca3bd91a134 (diff) |
u-boot-fw-utils: use negative offset for environment
Rely on newly implemented configuration functionality to locate the
environment at the end of the boot partition.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-bsp/u-boot/files/tegra3')
-rw-r--r-- | recipes-bsp/u-boot/files/tegra3/fw_env.config | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/files/tegra3/fw_env.config b/recipes-bsp/u-boot/files/tegra3/fw_env.config new file mode 100644 index 0000000..d2be4ee --- /dev/null +++ b/recipes-bsp/u-boot/files/tegra3/fw_env.config @@ -0,0 +1,15 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Device offset must be prefixed with 0x to be parsed as a hexadecimal value. +# On a block device a negative offset is treated as a backwards offset from the +# end of the device/partition, rather than a forwards offset from the start. + +# Colibri T30/Apalis T30 +# U-Boot environment is stored at the end of the first eMMC boot partition +# hence use a negative value. The environment is just in front of the config +# block which occupies the last sector (hence -0x200) + +# Block device name Device offset Env. size +/dev/mmcblk0boot0 -0x2200 0x2000 + |