From 5608692104efa8d56df803dc79ea41ac3607eee5 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Thu, 4 Sep 2008 13:01:49 +0200 Subject: fw_env: add NAND support Add support for environment in NAND with automatic NOR / NAND recognition, including unaligned environment, bad-block skipping, redundant environment copy. Signed-off-by: Guennadi Liakhovetski --- tools/env/fw_env.config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/env/fw_env.config') diff --git a/tools/env/fw_env.config b/tools/env/fw_env.config index 2432bd8..0fe37c9 100644 --- a/tools/env/fw_env.config +++ b/tools/env/fw_env.config @@ -1,7 +1,11 @@ # Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundand # environment sector is assumed present. +# Notice, that the "Number of sectors" is ignored on NOR. -# MTD device name Device offset Env. size Flash sector size +# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd1 0x0000 0x4000 0x4000 /dev/mtd2 0x0000 0x4000 0x4000 + +# NAND example +#/dev/mtd0 0x4000 0x4000 0x20000 2 -- cgit v1.1 From 22525779cb51f1bbe4e96fea7b778de1935a5a69 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Wed, 6 Aug 2008 14:44:05 +0300 Subject: Fix a typo in fw_env.config Reported-by: Martin Michlmayr Signed-off-by: Wolfgang Denk --- tools/env/fw_env.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/env/fw_env.config') diff --git a/tools/env/fw_env.config b/tools/env/fw_env.config index 0fe37c9..c8f12cf 100644 --- a/tools/env/fw_env.config +++ b/tools/env/fw_env.config @@ -1,5 +1,5 @@ # Configuration file for fw_(printenv/saveenv) utility. -# Up to two entries are valid, in this case the redundand +# Up to two entries are valid, in this case the redundant # environment sector is assumed present. # Notice, that the "Number of sectors" is ignored on NOR. -- cgit v1.1