diff options
author | Frank Haverkamp <haver@vnet.ibm.com> | 2007-11-24 11:04:51 +0100 |
---|---|---|
committer | Frank Haverkamp <haver@vnet.ibm.com> | 2007-11-24 11:04:51 +0100 |
commit | 636524b9c8fa81d0c07f1f0bbf3ac9e5f6287247 (patch) | |
tree | e46cd01ea64fb89eef7ca52b25ede977eac29a56 /ubi-utils/src/unubi.c | |
parent | 26c965bc654d67881fc54f4b24a552600752dadd (diff) |
ubi-utils: unubi add physical erase block number for analysis
The number is usefull to analyze cards with broken flash content.
Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
Diffstat (limited to 'ubi-utils/src/unubi.c')
-rw-r--r-- | ubi-utils/src/unubi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ubi-utils/src/unubi.c b/ubi-utils/src/unubi.c index 6ca9405..a50eff6 100644 --- a/ubi-utils/src/unubi.c +++ b/ubi-utils/src/unubi.c @@ -661,6 +661,7 @@ unubi_volumes(FILE* fpin, uint32_t *vols, size_t vc, struct args *a) uint32_t crc; cur->phys_addr = ftell(fpin); + cur->phys_block = cur->phys_addr / a->bsize; cur->data_crc_ok = 0; cur->ec_crc_ok = 0; cur->vid_crc_ok = 0; |