View source for Moving current system from flash to SD
From Openmoko
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Return to Moving current system from flash to SD.
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Return to Moving current system from flash to SD.
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 :
Necessary steps (to be confirmed, don't try this unless you know what you're doing !) :
More details about each steps needed.
Assuming one has booted from a system on SD already, this would create a copy of the root partition in the freerunner's flash to a "/backup-dir" directory, on the SD.
# mkdir /mnt/memroot/ # mkdir /backup-dir # mount -t jffs2 -o ro /dev/mtdblock6 /mnt/memroot/ # this for a freerunner # cd /mnt/memroot; rsync -avx --progress . /backup-dir/
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)
# 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 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/.
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/
See inside /boot, where you should find a "/boot/uImage-2.6.24" image, ready to be put on the FAT partition to be used by u-boot.
You should verify it's a "u-boot/PPCBoot image" with the command "file"