<!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">
Matthias Huber schrieb:
<blockquote cite="mid:4ADB4098.6080705@wollishausen.de" type="cite">
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<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>
</blockquote>
but the backup with the assumption, that there are the destination
files already in the directory, like:<br>
<br>
-rw-r--r-- 1 root root 262144 Sep 25 09:11 1_uboot<br>
-rw-r--r-- 1 root root 262144 Sep 25 09:11 2_uboot-env<br>
-rw-r--r-- 1 root root 8388608 Sep 25 09:11 3_kernel<br>
-rw-r--r-- 1 root root 655360 Sep 25 09:11 4_splash<br>
-rw-r--r-- 1 root root 262144 Sep 25 09:11 5_factory<br>
-rw-r--r-- 1 root root 258605056 Sep 25 09:16 6_rootfs<br>
<br>
<blockquote cite="mid:4ADB4098.6080705@wollishausen.de" type="cite">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"><<a moz-do-not-send="true"
href="mailto:jo.omsl@googlemail.com">jo.omsl@googlemail.com</a>></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 <<a moz-do-not-send="true"
href="mailto:atilla.filiz@gmail.com">atilla.filiz@gmail.com</a>>:<br>
<div class="im">> Hello<br>
> I have a blank NOR and didn't have time to hack and flash it(don't
want to<br>
> buy a debug board). Is it safe to boot into NAND u-boot menu and
flash a new<br>
> 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>
</div>
</div>
</blockquote>
</div>
</blockquote>
</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>