Wolfgang Wegner
7319bcaf8b
add redundant environment for env_sf.c
...
This patch adds redundant environment for environment in SPI flash.
I took env_flash.c as an example and slightly modified it. Apart
from adapting things to SF, I also slightly changed the decision
logic to use area 2 as a default in case the flags are wrong because
not having a default path worried me.
I did not add a section for CONFIG_ENV_IS_IN_SPI_FLASH in environment.h
because I did not understand if this is desired and/or needed.
So to use the feature, one has to set CONFIG_ENV_OFFSET_REDUND _and_
CONFIG_SYS_REDUNDAND_ENVIRONMENT.
I checked it by powering off my board several times during flash
erase or write, because I do not know if there are other stress
test scenarios.
Signed-off-by: Wolfgang Wegner <w.wegner@astro-kom.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
2010-06-30 23:47:08 -04:00
..
2008-08-13 01:40:38 +02:00
2009-06-12 20:47:16 +02:00
2010-06-29 22:32:13 +02:00
2009-06-12 20:47:16 +02:00
2010-04-09 23:37:06 +02:00
2009-06-12 20:47:16 +02:00
2009-06-12 20:47:16 +02:00
2010-06-23 23:24:20 +02:00
2009-12-02 23:46:45 +01:00
2009-07-18 00:27:46 +02:00
2009-06-12 20:47:16 +02:00
2010-01-18 00:44:13 +01:00
2009-06-12 20:47:16 +02:00
2009-12-02 23:28:10 +01:00
2009-06-12 20:47:16 +02:00
2009-06-12 20:47:16 +02:00
2009-06-12 20:47:16 +02:00
2009-06-12 20:47:16 +02:00
2009-06-12 20:47:16 +02:00
2009-11-23 00:06:11 +01:00
2010-01-18 00:42:37 +01:00
2009-07-27 00:15:53 +02:00
2009-11-23 00:06:11 +01:00
2009-07-28 22:38:53 +02:00
2009-06-12 20:47:16 +02:00
2010-06-23 23:24:20 +02:00
2009-06-12 20:47:16 +02:00
2009-12-08 22:14:07 +01:00
2010-05-21 22:05:05 +02:00
2009-06-12 20:47:16 +02:00
2009-11-23 00:06:12 +01:00
2010-03-29 13:29:12 +02:00
2010-06-23 23:24:20 +02:00
2009-06-12 20:47:16 +02:00
2009-12-02 23:23:20 +01:00
2010-02-24 00:09:45 +01:00
2010-01-26 00:07:50 +01:00
2009-12-21 21:39:59 +01:00
2009-09-22 23:03:24 +02:00
2009-07-18 00:27:46 +02:00
2009-06-12 20:47:16 +02:00
2009-12-21 21:39:59 +01:00
2009-06-12 20:47:16 +02:00
2009-12-02 23:46:45 +01:00
2009-06-12 20:47:16 +02:00
2009-12-02 23:23:20 +01:00
2010-03-21 16:44:04 +01:00
2010-01-26 23:17:49 -06:00
2010-04-28 10:58:10 +02:00
2010-05-21 22:05:05 +02:00
2009-09-22 23:03:24 +02:00
2010-06-23 23:24:20 +02:00
2010-05-05 23:57:17 +02:00
2009-06-12 20:47:16 +02:00
2009-06-12 20:47:16 +02:00
2009-06-12 20:47:16 +02:00
2009-06-12 20:47:16 +02:00
2009-10-07 09:15:26 +02:00
2009-06-12 20:47:16 +02:00
2009-07-17 22:15:27 +02:00
2009-06-12 20:47:16 +02:00
2010-06-23 20:50:54 +02:00
2009-10-24 22:44:18 +02:00
2009-09-22 23:03:24 +02:00
2009-06-12 20:47:16 +02:00
2009-06-14 20:01:04 -04:00
2009-06-12 20:47:16 +02:00
2009-07-18 00:27:46 +02:00
2009-11-23 00:06:13 +01:00
2009-07-23 21:33:02 +02:00
2010-04-09 16:30:29 +02:00
2009-07-09 13:04:25 +02:00
2009-06-12 20:47:16 +02:00
2010-05-06 23:35:34 +02:00
2009-11-23 00:06:11 +01:00
2009-06-12 20:47:16 +02:00
2010-03-12 23:06:04 +01:00
2009-06-12 20:47:16 +02:00
2010-05-06 00:37:50 +02:00
2010-06-23 23:24:20 +02:00
2010-05-12 04:54:30 -05:00
2010-04-10 00:30:27 +02:00
2003-06-27 21:31:46 +00:00
2010-06-23 23:24:20 +02:00
2009-08-09 22:41:42 +02:00
2010-03-12 23:06:04 +01:00
2009-10-27 20:46:31 +01:00
2009-08-09 22:41:42 +02:00
2009-08-09 22:41:42 +02:00
2010-01-27 14:22:41 -06:00
2009-08-09 22:41:42 +02:00
2010-06-23 23:24:20 +02:00
2010-01-06 16:28:00 -06:00
2010-06-30 23:47:08 -04:00
2009-12-02 22:53:51 +01:00
2010-05-30 11:14:37 -05:00
2008-10-18 21:54:03 +02:00
2010-06-29 21:12:43 +02:00
2010-06-29 22:24:48 +02:00
2010-05-28 10:56:04 -04:00
2009-07-18 00:27:46 +02:00
2009-06-12 20:45:48 +02:00
2010-01-18 00:23:00 +01:00
2010-04-21 23:42:38 +02:00
2010-03-24 11:23:15 +01:00
2009-03-28 20:16:16 +01:00
2010-06-23 23:24:20 +02:00
2010-01-18 00:44:13 +01:00
2006-11-06 17:06:36 +01:00
2010-03-12 00:19:11 +01:00
2009-06-12 20:45:47 +02:00
2002-08-17 09:36:01 +00:00
2010-05-06 00:16:46 +02:00
2009-10-03 10:17:57 +02:00
2009-06-12 20:45:48 +02:00
2008-10-18 21:54:03 +02:00
2009-12-20 12:47:37 +01:00
2010-04-08 21:40:00 +02:00
2010-02-03 22:06:59 +01:00
2009-07-19 21:37:02 +02:00