<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
i personally do my backups with "cp"<br>
<br>
cp /dev/mtdblock6 /media/card/rootfs<br>
and vice versa.<br>
<br>
#blocksave.sh<br>
#!/bin/sh -x<br>
for i in 1 2 3 4 5 6 ; do echo cp /dev/mtdblock$i ${i}_* ; cp
/dev/mtdblock$i ${i}_* ; done<br>
<br>
# blockrestore.sh<br>
#!/bin/sh -x<br>
for i in 1 2 3 4 5 6 ; do echo cp ${i}_* /dev/mtdblock$i ; cp ${i}_*
/dev/mtdblock$i ; done<br>
<br>
and in practice, this works for backup _and_ restore<br>
<br>
Atilla Filiz schrieb:
<blockquote
 cite="mid:6016f9080910180910v8e76455n7739109df0299d63@mail.gmail.com"
 type="cite">On IRC, I asked someone to <br>
dd if=/dev/mtd0 of=nor.img<br>
for me. Does that work? The link in the wiki page is dead.<br>
I always flash my kernel and rootfs from NAND u-boot menu.<br>
  <br>
  <div class="gmail_quote">On Sun, Oct 18, 2009 at 5:25 PM, Joachim Ott
  <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:jo.omsl@googlemail.com">jo.omsl@googlemail.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2009/10/18
Atilla Filiz &lt;<a moz-do-not-send="true"
 href="mailto:atilla.filiz@gmail.com">atilla.filiz@gmail.com</a>&gt;:<br>
    <div class="im">&gt; Hello<br>
&gt; I have a blank NOR and didn't have time to hack and flash it(don't
want to<br>
&gt; buy a debug board). Is it safe to boot into NAND u-boot menu and
flash a new<br>
&gt; bootloader to NAND? Probably not a good idea.<br>
    <br>
    </div>
To flash something via USB cable with dfu-util you have to be in the<br>
NOR boot menu. But it's totally legal to reflash /dev/mtd1 (u-boot),<br>
mtd2 (u-boot_env) or mtd3 (kernel) when you have booted into the<br>
rootfs in NAND. When you've booted from sd-card, you can reflash mtd6<br>
(rootfs) too. Use flash_eraseall and nand_write for this.<br>
    <br>
Writing to /dev/mtd0 (NOR boot) is possible without debug board too,<br>
you need need to enable write access to it. See<br>
    <a moz-do-not-send="true"
 href="http://wiki.openmoko.org/wiki/Flashing_NOR" target="_blank">http://wiki.openmoko.org/wiki/Flashing_NOR</a><br>
    <div>
    <div class="h5"><br>
_______________________________________________<br>
support mailing list<br>
    <a moz-do-not-send="true" href="mailto:support@lists.openmoko.org">support@lists.openmoko.org</a><br>
    <a moz-do-not-send="true"
 href="https://lists.openmoko.org/mailman/listinfo/support"
 target="_blank">https://lists.openmoko.org/mailman/listinfo/support</a><br>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
---------------------------------------------------------<br>
Atilla Filiz<br>
Eindhoven University of Technology<br>
Embedded Systems, Master's Programme<br>
--------------------------------------------------------<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
support mailing list
<a class="moz-txt-link-abbreviated" href="mailto:support@lists.openmoko.org">support@lists.openmoko.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openmoko.org/mailman/listinfo/support">https://lists.openmoko.org/mailman/listinfo/support</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Mit freundlichen GrĂ¼ssen
Matthias Huber 
Kohlstattstr. 14
86459 Wollishausen
Tel: 08238-7998
LPI000181125
</pre>
</body>
</html>