Changes

Backup your flash memory

1,986 bytes added, 10:02, 1 February 2013
Init version
== Overview ==

This How-To is meant to be a starting point for people to learn to backup and restore the flash memory from IGEP Boards.

==Requirements==

There are some requisites to follow this guide:

*IGEP Board
*MicroSD card with [http://labs.isee.biz/index.php/How_to_create_a_SD-card_with_the_latest_software_image the latest IGEP Firmware Yocto]
*PC
*IGEP remote terminal, using [http://labs.isee.biz/index.php/Using_serial_debug_port_to_communicate a serial cable] or [http://labs.isee.biz/index.php/Using_Ethernet_to_communicate Ethernet communication]

== Backup ==
* Boot your IGEP Board using a microSD card
* Log as a root user
* Mount flash memory partition using the following commands:
<pre>mkdir /tmp/mtdblock1
mkdir /tmp/mtdblock2
mount -t jffs2 /dev/mtdblock1 /tmp/mtdblock1
mount -t jffs2 /dev/mtdblock2 /tmp/mtdblock2</pre>
* Backup your flash memory:
<pre>mkdir /home/root/backup
tar -cvf /home/root/backup/igepinikernel.tar /tmp/mtdblock1/
tar -cvf /home/root/backup/rootfs.tar /tmp/mtdblock2</pre>
* Backup IGEP X-Loader binary:
<pre>cp /media/mmcblk0p1/MLO /home/root/backup/MLO</pre>
*Shutdown your system

== Restore ==

* Boot your IGEP Board using the same microSD card used when you backup your system
* Log as a root user
* Erase flash memory using the following commands:
<pre>flash_eraseall /dev/mtd0
flash_eraseall /dev/mtd1
flash_eraseall /dev/mtd2</pre>
* Mount flash memory partition using the following commands:
<pre>mkdir /tmp/mtdblock1
mkdir /tmp/mtdblock2
mount -t jffs2 /dev/mtdblock1 /tmp/mtdblock1
mount -t jffs2 /dev/mtdblock2 /tmp/mtdblock2</pre>
* Restore igep.ini, Kernel and rootfs:
<pre>cd /
tar xvf /home/root/backup/igepinikernel.tar
tar xvf /home/root/backup/rootfs.tar</pre>
* Copy IGEP X-Loader binary to flash memory:
<pre> writeloader -i /home/root/backup/MLO -o /dev/mtd0</pre>
* Shutdown your system

== Test results==

Once you restored your system image. Boot up IGEP Board using flash memory device and test the results.
4,199
edits