aboutsummaryrefslogtreecommitdiff
path: root/nanddump.c
diff options
context:
space:
mode:
Diffstat (limited to 'nanddump.c')
-rw-r--r--nanddump.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/nanddump.c b/nanddump.c
index 15bf9c4..bb649da 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -360,6 +360,13 @@ int main(int argc, char * const argv[])
}
/* Initialize start/end addresses and block size */
+ if (start_addr & (meminfo.writesize - 1)) {
+ fprintf(stderr, "WARNING: The start address is not page-aligned !\n"
+ "The pagesize of this NAND Flash is 0x%x.\n"
+ "nandwrite doesn't allow writes starting at this location.\n"
+ "Future versions of nanddump will fail here.\n",
+ meminfo.writesize);
+ }
if (length)
end_addr = start_addr + length;
if (!length || end_addr > meminfo.size)