| Linux Forum Index » Linux Embedded » Save the entire file system of an embedded system... |
|
Page 1 of 1 |
|
| Author |
Message |
| Bogdan... |
Posted: Sun Jul 05, 2009 10:07 pm |
|
|
|
Guest
|
Hi
I have been asked to backup the entire file system residing on a
flash memory of an embedded system. How this can be done when using as
host a PC running linux (the target also runs linux) ? The file system
type is jffs2.
I am interested also in reverting the process, that is from the
obtained binary image to install the file system on the flash.
It could be possible to install the obtained image on a virtual
machine (for ARM processors) in order to further test the operating
system and the associated software?
thanks
Bogdan Cristea
INCS & ESECO Systems
Lunel, France |
|
|
| Back to top |
|
|
|
| Juergen Beisert... |
Posted: Mon Jul 06, 2009 2:49 am |
|
|
|
Guest
|
Bogdan wrote:
Quote: I have been asked to backup the entire file system residing on a
flash memory of an embedded system. How this can be done when using as
host a PC running linux (the target also runs linux) ? The file system
type is jffs2.
I am interested also in reverting the process, that is from the
obtained binary image to install the file system on the flash.
mtd-utils. (http://www.linux-mtd.infradead.org/)
jbe |
|
|
| Back to top |
|
|
|
| David Brown... |
Posted: Mon Jul 06, 2009 4:13 am |
|
|
|
Guest
|
Bogdan wrote:
Quote: Hi
I have been asked to backup the entire file system residing on a
flash memory of an embedded system. How this can be done when using as
host a PC running linux (the target also runs linux) ? The file system
type is jffs2.
I am interested also in reverting the process, that is from the
obtained binary image to install the file system on the flash.
It could be possible to install the obtained image on a virtual
machine (for ARM processors) in order to further test the operating
system and the associated software?
On the target system, mount a nfs share from the host PC to a local
directory. Use something like:
dd if=/dev/mtdblock1 of=/tmp/nfsshare/block1 bs=4096
to make a host copy of the partition. You can copy partitions or the
entire mtd device like this.
On the host PC, you can then mount the jffs2 partition locally using a
loopback device. |
|
|
| Back to top |
|
|
|
| Dirk Zabel... |
Posted: Mon Jul 27, 2009 6:30 am |
|
|
|
Guest
|
David Brown schrieb:
Quote: Bogdan wrote:
Hi
I have been asked to backup the entire file system residing on a
flash memory of an embedded system. How this can be done when using as
host a PC running linux (the target also runs linux) ? The file system
type is jffs2.
I am interested also in reverting the process, that is from the
obtained binary image to install the file system on the flash.
It could be possible to install the obtained image on a virtual
machine (for ARM processors) in order to further test the operating
system and the associated software?
On the target system, mount a nfs share from the host PC to a local
directory. Use something like:
dd if=/dev/mtdblock1 of=/tmp/nfsshare/block1 bs=4096
to make a host copy of the partition. You can copy partitions or the
entire mtd device like this.
And it's also possible, to copy this file to an erased(!) flash
partition on another device with dd.
Quote:
On the host PC, you can then mount the jffs2 partition locally using a
loopback device.
This, unfortunately, is not true. You can't do this with jffs2, because
the device which contains the jffs2 imaga has to be a real flash device.
The loopback device does not suffice.
Regards
Dirk |
|
|
| Back to top |
|
|
|
|