Changes

User:Pau pajuelo

2,156 bytes added, 18:53, 31 January 2013
m
Backup your flash firmware
IP private range 192.168.5.X is not used
= Backup your flash firmware memory =
*Create a microSD card with== 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 the latest IGEP Firmware Yocto
*PC
*IGEP remote terminal, using a serial cable or Ethernet communication
 
== Backup ==
 
 
* Boot your IGEP Board using a microSD card
* Get a remote terminal
* 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>
* Create a backup directory and 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>
*Shutdown your system
 
== Restore ==
 
=== Get IGEP X-Loader image ===
 
First of all, you need to get a IGEP X-Loader image (named by default MLO), you can download a compiled IGEP X-loader image from [http://labs.isee.biz/index.php/The_IGEP_X-loader#Pre-Compiled_Binaries this article].
 
Once you extract MLO file copy to microSD rootfs partition inside backup folder create before.
 
=== Restore your firmware image to flash memory ===
 
 
* Boot your IGEP Board using the same microSD used when you backup your system
* Get a remote terminal
* 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 /dev/mtd0</pre>
* Shutdown your system
 
=== Test results===
 
Once you shutdown your system,l extract your microSD card and bootup IGEP Board using flash memory. Your old system image should be executed.
= igep.ini parameters =
4,199
edits