author | Hao Zhang <hzhang@ti.com> | |
Fri, 11 Sep 2015 19:27:05 +0000 (15:27 -0400) | ||
committer | Hao Zhang <hzhang@ti.com> | |
Fri, 11 Sep 2015 19:27:05 +0000 (15:27 -0400) | ||
commit | 8eae8951378ae971ba3df050646e35dc9342db9d | |
tree | b8e08f4565b9377804300c7cfa654d89b1c5b39a | tree | snapshot (tar.xz tar.gz zip) |
parent | c614d27099edee62d1e100a070701854cbee34a7 | commit | diff |
tools: nand writer: fix read verify bug
Nand writer uses DDR memory to store the read buffer (for verification)
and the write buffer of the written file. The maximum buffer size is the
size of the NAND device. If the NAND device size is 2GB (e.g. K2L EVM),
it will exceed the DDR size (2GB) and report an error.
The fix will only allow maximum size of 1GB for the buffer size.
Signed-off-by: Hao Zhang <hzhang@ti.com>
Nand writer uses DDR memory to store the read buffer (for verification)
and the write buffer of the written file. The maximum buffer size is the
size of the NAND device. If the NAND device size is 2GB (e.g. K2L EVM),
it will exceed the DDR size (2GB) and report an error.
The fix will only allow maximum size of 1GB for the buffer size.
Signed-off-by: Hao Zhang <hzhang@ti.com>
writer/nand/src/nandwriter.c | diff | blob | history |