See [[Partitions]] for details of the partitions in flash (hence the /dev/mtdblock6).

+

You can leave away the --progress rsync option if you don't want to see a progress report (xfer#x, to-check y/z) while copying. See [[Partitions]] for details of the partitions in flash (hence the /dev/mtdblock6).

−

'''Attention : there are [http://lists.openmoko.org/pipermail/community/2008-August/026027.html problems copying certain files with cp -a] : check that your backup and original are identical !'''

+

Instead of using rsync you could also use one of the following ways to perform copying (please correct if not working)

−

You might better off using one of the following ways to perform copying (please correct if not working)

+

# cd /mnt/memroot; find . -depth | cpio -pdmv /backup-dir/

+

# cd /mnt/memroot; tar cpf - . | tar xvpf - -C /backup-dir/

+

The following may also work, but is not recommended, as there are [http://lists.openmoko.org/pipermail/community/2008-August/026027.html problems copying certain files with cp -a]: then be sure to check that your backup and original are identical!

+

# cp -a /mnt/memroot/. /backup-dir/.

−

# cd /mnt/memroot; find . -depth | cpio -pdmv /backup-dir/

+

== Verify that backup directory is identical to source partition ==

−

# cd /mnt/memroot; tar clf - . | tar xvlpf - -C /backup-dir/

+

To verify that you copied everything, you can use rsync (again), but now additionally with the -n option

+

# cd /mnt/memroot; rsync -avxn . /backup-dir/

== Transfer kernel to FAT partition ==

== Transfer kernel to FAT partition ==

Line 41:

Line 45:

You should verify it's a "u-boot/PPCBoot image" with the command "file"

You should verify it's a "u-boot/PPCBoot image" with the command "file"

+

+

[[category:Flashing Openmoko]]

+

[[Category:MicroSD]]

Latest revision as of 05:34, 13 January 2010

This is an attempt at describing how one can "backup" or move an existing current system running in the FR flash NAND to the micro SD card, in order to boot from it. See associate thread here.

Typical scenario :

running 2007.2 from flash

want to install OM 2008.8 without loosing the "backup" 2007.7 in case of need, to be booted from SD

You can leave away the --progress rsync option if you don't want to see a progress report (xfer#x, to-check y/z) while copying. See Partitions for details of the partitions in flash (hence the /dev/mtdblock6).

Instead of using rsync you could also use one of the following ways to perform copying (please correct if not working)