diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2024-08-26 11:46:21 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2024-10-08 08:14:33 +0200 |
commit | bc6f5df46460fe00b953fb81706770b49bd36e77 (patch) | |
tree | 6474a829a1bf652beb3b6678c88f4bb5b96a5205 | |
parent | 11c30d73d3927373a114e9ed274f627a124d9ad7 (diff) |
nand-utils: nanddump: Explicitely use the page size when relevant
Using bs when skipping the bad sector is abusive as what we want is
using the size of a block and the size of a page. The fact that bs
currently is the size of a page is misleading here, has I intend to make
this amount grow.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r-- | nand-utils/nanddump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nand-utils/nanddump.c b/nand-utils/nanddump.c index 346af1e..a3e6e92 100644 --- a/nand-utils/nanddump.c +++ b/nand-utils/nanddump.c @@ -458,7 +458,7 @@ int main(int argc, char * const argv[]) /* skip bad block, increase end_addr */ if (bb_method == skipbad) { end_addr += mtd.eb_size; - ofs += mtd.eb_size - bs; + ofs += mtd.eb_size - mtd.min_io_size; if (end_addr > mtd.size) end_addr = mtd.size; continue; |