Difference between revisions of "Failsafe"

From ArmadeusWiki
Jump to: navigation, search
(New page: ==Intro== Failsafe is the short name for the RAM bootable rescue image for APF boards (APF6 only for the moment). It is a Linux kernel + minimal initrd image all packed together in a s...)
 
(Backup eMMC rootfs)
Line 25: Line 25:
  
 
===Backup eMMC rootfs===
 
===Backup eMMC rootfs===
* you need a network connection with a server that can receive the backup:
+
* you need a network connection with a server that can receive the backup (for example with [[NFS]], here mounted on ''/mnt/nfs/''):
 
<pre class="apf">
 
<pre class="apf">
# dd if=/dev/mmcblk2 bs=64k conv=noerror,sync | pv | gzip -c -9 > /tmp/root.bak.gz
+
# dd if=/dev/mmcblk2 bs=128k conv=noerror,sync | pv | gzip -c -9 > /mnt/nfs/root.bak.gz
 
</pre>
 
</pre>
 +
* wait some minutes until backup is done ;-)
  
 
==Links==
 
==Links==
 
*
 
*

Revision as of 10:54, 6 August 2015

Intro

Failsafe is the short name for the RAM bootable rescue image for APF boards (APF6 only for the moment). It is a Linux kernel + minimal initrd image all packed together in a standard apf6-linux.bin.

Installation

Generate it

$ make apf6failsafe_defconfig
$ make
$ cp buildroot/output/images/apf6-linux.bin /tftpboot/

Launch it

BIOS> run ramboot

Cool stuff that can be done with it

apf-config

# apf-config
  • check eMMC filesystem

Backup eMMC rootfs

  • you need a network connection with a server that can receive the backup (for example with NFS, here mounted on /mnt/nfs/):
# dd if=/dev/mmcblk2 bs=128k conv=noerror,sync | pv | gzip -c -9 > /mnt/nfs/root.bak.gz
  • wait some minutes until backup is done ;-)

Links