diff options
author | Adrian Hunter <adrian.hunter@nokia.com> | 2009-06-26 07:58:01 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-07-05 11:47:07 -0400 |
commit | 0c6c7fa1313fcb69cae35e34168d2e83b8da854a (patch) | |
tree | 5ba3c6eda144b060829529096f30c6f83e357d5b /drivers/mtd/ubi/scan.c | |
parent | 1398788fe7b730db10e97dcb9f838603e41922d5 (diff) |
UBI: add image sequence number to EC header
An image sequence number is added to the UBI erase-counter header
to be able determine if the root file system contains a mixture
of old and new images (because the flashing failed to complete).
A change to nolo is also needed for this to take effect.
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/scan.c')
-rw-r--r-- | drivers/mtd/ubi/scan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c index c3d653ba5ca0..72570ed7d33f 100644 --- a/drivers/mtd/ubi/scan.c +++ b/drivers/mtd/ubi/scan.c | |||
@@ -910,6 +910,8 @@ struct ubi_scan_info *ubi_scan(struct ubi_device *ubi) | |||
910 | if (si->is_empty) | 910 | if (si->is_empty) |
911 | ubi_msg("empty MTD device detected"); | 911 | ubi_msg("empty MTD device detected"); |
912 | 912 | ||
913 | ubi->image_seq_set = 1; | ||
914 | |||
913 | /* | 915 | /* |
914 | * In case of unknown erase counter we use the mean erase counter | 916 | * In case of unknown erase counter we use the mean erase counter |
915 | * value. | 917 | * value. |