]> www.infradead.org Git - mtd-utils.git/commit
ubi-utils: bin2nand, nand2bin add support of different ecc layouts
authorFrank Haverkamp <haver@vnet.ibm.com>
Mon, 7 Jan 2008 13:05:00 +0000 (14:05 +0100)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 15 Jan 2008 10:47:00 +0000 (12:47 +0200)
commit4bf037f3a2aea4328e10422379f751370d288d46
tree68a24f007e8b89609d14d44165a8bcd669629e7a
parent07e6203fd3078d6855e7d33597bdbbae10e555fd
ubi-utils: bin2nand, nand2bin add support of different ecc layouts

Both tools were lacking support of alternate ECC layouts. Only our intitial
format was supported. With this change, it should be very easy to add more
layouts in addtion to the already supported ones, which are: IBM (our format),
and the MTD default layout. NAND OOB sizes of 512 and 2048 are currently
supported.

In contrast to the old version of bin2nand, the holes inbetween the ECC data
is now not filled with 0x00 anymore but instead 0xff (like deleted flash) is
used. This should not cause any difference. The testcase reflects the different
layouts too.

Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
ubi-utils/TODO
ubi-utils/scripts/bin2nand2bin_test.sh
ubi-utils/src/bin2nand.c
ubi-utils/src/ecclayouts.h [new file with mode: 0644]
ubi-utils/src/nand2bin.c