Difference between revisions of "Failsafe"

From ArmadeusWiki
Jump to: navigation, search
(Restore eMMC rootfs from backup)
(Intro)
Line 1: Line 1:
 
==Intro==
 
==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''.
+
Failsafe is the short name for the RAM bootable rescue image for APF boards ([[APF6]] & [[OPOS6UL]] only for the moment). It is a Linux kernel + minimal initrd image all packed together in a standard kernel image (''apf6-linux.bin'' or ''opos6ul-linux.bin'').
  
 
==Installation==
 
==Installation==

Revision as of 20:04, 12 September 2016

Intro

Failsafe is the short name for the RAM bootable rescue image for APF boards (APF6 & OPOS6UL only for the moment). It is a Linux kernel + minimal initrd image all packed together in a standard kernel image (apf6-linux.bin or opos6ul-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

  • 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=512 count=7733248 conv=noerror,sync | pv | gzip -c -9 > /mnt/nfs/emmc.bak.gz
  • wait some minutes until backup is done ;-)

Restore eMMC from backup

  • same principle:
# gunzip -c /mnt/nfs/emmc.bak.gz | pv | dd of=/dev/mmcblk2 conv=sync,noerror bs=512 count=7733248

Links