fw_env.config 1.3 KB

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