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>
This commit is contained in:
committed by
Artem Bityutskiy
parent
1398788fe7
commit
0c6c7fa131
@@ -910,6 +910,8 @@ struct ubi_scan_info *ubi_scan(struct ubi_device *ubi)
|
||||
if (si->is_empty)
|
||||
ubi_msg("empty MTD device detected");
|
||||
|
||||
ubi->image_seq_set = 1;
|
||||
|
||||
/*
|
||||
* In case of unknown erase counter we use the mean erase counter
|
||||
* value.
|
||||
|
Reference in New Issue
Block a user