When there is only a single erase block, the cross erase test
does not report sensible errors. Warn in case there is only
a single erase block instead of executing the test.
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
}
printf("verified %u eraseblocks\n", i);
- if (crosstest())
- goto out;
+ if (ebcnt > 1) {
+ if (crosstest())
+ goto out;
+ } else {
+ printf("skipping erasecrosstest, 2 erase blocks needed\n");
+ }
if (erasecrosstest())
goto out;