<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Werner Almesberger schrieb:
<blockquote cite="mid:20091019185236.GG4023@almesberger.net" type="cite">
  <pre wrap="">Matthias Huber wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">No, erasing seemed not to be necessary.
why should i erase it ?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Because a write to NAND normally only clears bits but never sets them:

# flash_eraseall /dev/mtd4
# hexdump -C /dev/mtd4
00000000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
# echo -en '\x0f' | dd bs=1024 count=1 conv=sync &gt;/dev/mtd4
# hexdump -C /dev/mtd4
00000000  0f 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |?...............|
# echo -en '\xff' | dd bs=1024 count=1 conv=sync &gt;/dev/mtd4
dd: writing `standard output': Input/output error
# hexdump -C /dev/mtd4
00000000  0f 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |?...............|

Here's a little brain-twister: repeat the example from the beginning,
but instead of trying to write '\xff', do this:

# echo -en '\x17' | dd bs=1024 count=1 conv=sync &gt;/dev/mtd4
dd: writing `standard output': Input/output error
# hexdump -C /dev/mtd4
00000000  17 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

Can you tell why it worked ?

- Werner
  </pre>
</blockquote>
i can't. it is possible that i flashed my boot with dfu-util and the
rootfs directly.<br>
for the other partitions i cant tell. maybe because the contents didn't
change i did'nt see any error.<br>
<br>
just for clearness: is the boot - partition different from the rootfs ?<br>
and how are the other partitions ?<br>
</body>
</html>