[U-Boot] fw_printernv fw_setenv usage on redundant environment copies

Amarendra Reddy Amarendra.Reddy at lnties.com
Fri Apr 29 07:06:59 CEST 2011


Hi all,



Thanks in Advance. Please help me regarding the below U-Boot problem



I am planning to use fw_printenv & fw_setenv utilities to access U-Boot env variables from Linux Application.



In U-Boot, if we have four "redundant environment" copies in the same partition(mtd1)... Does the below fw_env.config configuration hold good ?



####################################################

# File: fw_env.config

# Configuration file for fw_(printenv/saveenv) utility.

# Up to two entries are valid, in this case the redundand # environment sector is assumed present.



# MTD device name       Device offset   Env. size       Flash sector size

/dev/mtd1               0x00000         0x02000         0x20000

/dev/mtd1               0x20000         0x02000         0x20000

/dev/mtd1               0x40000         0x02000         0x20000

/dev/mtd1               0x60000         0x02000         0x20000

####################################################




Thanks & Regards
Amarendra Reddy


Larsen & Toubro Limited

www.larsentoubro.com

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.


More information about the U-Boot mailing list