]> www.infradead.org Git - mtd-utils.git/commit
ubi-utils: various fixes in unubi
authorFrank Haverkamp <haver@vnet.ibm.com>
Sat, 24 Nov 2007 10:04:51 +0000 (11:04 +0100)
committerFrank Haverkamp <haver@vnet.ibm.com>
Sat, 24 Nov 2007 10:04:51 +0000 (11:04 +0100)
commit26c965bc654d67881fc54f4b24a552600752dadd
treeec8033e92872dd7a594063a893bd6cd4b708e0c4
parent0d2d0f43b9aa9b08f610169b412fd24a15dea154
ubi-utils: various fixes in unubi

The extraction of data from blocks used for dynamic volumes was
totally broken. The data size was calculated wrong. This fix is not
perfect, the alignment is still ignored.

The parameter "header-size" is very misleading. It does not reflect
the vid hdr offset properly. I assume therefor that it only works for
the layout I am using where the vid hdr is at the _end_ of the 1st
NAND page (2048).

I added the generation of a textfile with information about the blocks
which are going into the internal graph representation.

Instead of a graph I think that a simple array will simplify the code
very much. The array must than be sorted properly to cope with older
and newer block-copies but that should not be a problem.

discussed the tool with my coleage Andreas Arnez and we found that it
might be a good idea to replace it even with a perl program for the
same purpose since that would offer the flexibility to change it on
the fly when needed. The tool is mainly used for crash analysis so it
could be an advantage to change it without needing a C-compiler.

Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
ubi-utils/scripts/unubi_test.sh
ubi-utils/src/eb_chain.c
ubi-utils/src/eb_chain.h [deleted file]
ubi-utils/src/unubi.c
ubi-utils/src/unubi_analyze.c
ubi-utils/src/unubi_analyze.h