summaryrefslogtreecommitdiff
path: root/recipes-bsp/u-boot/libubootenv/fw_env.config
blob: d22acdefb1f9dc0e373f5a9636bbf991512a15c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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.

# Toradex modules with eMMC
# The 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)
# Note that the eMMC boot areas (e.g. /dev/mmcblk0boot0) by default is read
# only. To make it writeable, execute on the cmdline e.g.
# $ echo 0 > /sys/block/mmcblk0boot0/force_ro
# The fw_setenv tool provided by libubootenv does this automatically.

# Block device name	Device offset	Env. size
/dev/emmc-boot0		-0x2200		0x2000