xref: /OK3568_Linux_fs/u-boot/tools/env/fw_env.config (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# Configuration file for fw_(printenv/setenv) utility.
2*4882a593Smuzhiyun# Up to two entries are valid, in this case the redundant
3*4882a593Smuzhiyun# environment sector is assumed present.
4*4882a593Smuzhiyun# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
5*4882a593Smuzhiyun# Futhermore, if the Flash sector size is omitted, this value is assumed to
6*4882a593Smuzhiyun# be the same as the Environment size, which is valid for NOR and SPI-dataflash
7*4882a593Smuzhiyun# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.
8*4882a593Smuzhiyun
9*4882a593Smuzhiyun# NOR example
10*4882a593Smuzhiyun# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
11*4882a593Smuzhiyun/dev/mtd1		0x0000		0x4000		0x4000
12*4882a593Smuzhiyun/dev/mtd2		0x0000		0x4000		0x4000
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun# MTD SPI-dataflash example
15*4882a593Smuzhiyun# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
16*4882a593Smuzhiyun#/dev/mtd5		0x4200		0x4200
17*4882a593Smuzhiyun#/dev/mtd6		0x4200		0x4200
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun# NAND example
20*4882a593Smuzhiyun#/dev/mtd0		0x4000		0x4000		0x20000			2
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun# On a block device a negative offset is treated as a backwards offset from the
23*4882a593Smuzhiyun# end of the device/partition, rather than a forwards offset from the start.
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun# Block device example
26*4882a593Smuzhiyun#/dev/mmcblk0		0xc0000		0x20000
27*4882a593Smuzhiyun#/dev/mmcblk0		-0x20000	0x20000
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun# VFAT example
30*4882a593Smuzhiyun#/boot/uboot.env	0x0000          0x4000
31