backups
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
backups [2011/07/29 01:14] – created ggrandou | backups [2013/02/03 14:18] – [How to backup your AC100] psl | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Why backups are important | + | ====== Why backups are so important ? ====== |
Thanks to protected area of onboard Flash Memory (MMC) and to nvflash protocol, it's virtually impossible to brick your AC100. Whatever you do, you would be able to restore it to its initial state providing that: | Thanks to protected area of onboard Flash Memory (MMC) and to nvflash protocol, it's virtually impossible to brick your AC100. Whatever you do, you would be able to restore it to its initial state providing that: | ||
Line 18: | Line 18: | ||
=== The manual way === | === The manual way === | ||
- | Your AC100 MMC contains several [[AC100_std_partitions|partitions]]. The basic commands | + | Your AC100 MMC contains several [[AC100_std_partitions|partitions]]. The manual way to backup them are: |
- | + | - Connect a USB-cable between | |
- | < | + | - Enter the recovery mode by keep pressing |
- | # power up your AC100 in recovery mode (CTRL+ESC) | + | - Start nvflash and load the bootloader to get access to the AC100. This has to be done only once, but everytime, after you (re)enter the recovery mode. < |
$ nvflash --bl / | $ nvflash --bl / | ||
- | $ nvflash -r --getpartitiontable partitiontable.txt | + | </ |
- | $ nvflash | + | - Download the present partition table of the internal flash-memory < |
- | $ nvflash | + | $ nvflash -r --getpartitiontable partitiontable.txt |
- | $ nvflash -r --read 4 part04.img | + | |
- | $ nvflash -r --read 5 part05.img | + | |
- | $ nvflash -r --read 6 part06.img | + | |
- | $ nvflash -r --read 7 part07.img | + | |
- | $ nvflash -r --read 8 part08.img | + | |
- | $ nvflash -r --read 9 part09.img | + | |
- | $ nvflash -r --read 10 part10.img | + | |
- | $ nvflash -r --read 11 part11.img | + | |
- | $ nvflash -r --read 12 part12.img | + | |
- | $ nvflash -r --read 13 part13.img | + | |
</ | </ | ||
+ | - Your number of partitions might be different to the below example (e.g., because you modified the partition table before already). Check the content of partitiontable.txt to get the number of partitions on your device. < | ||
+ | more partitiontable.txt | ||
+ | </ | ||
+ | - Backup the partitions according to your partition table. For the standard configuration this would be:< | ||
+ | $ for i in $(seq -w 2 14); do nvflash -r --read $i part$i.img; done | ||
+ | </ | ||
+ | - Create the BCT file from your part02 image: < | ||
+ | dd if=part02.img of=ac100.bct bs=4080 count=1 | ||
+ | </ | ||
+ | - Optional: tar and gzip the image files, **deleting the original image files**< | ||
+ | - Create the cfg file. This file is derived from the partitiontable.txt file. You can download this little script http:// | ||
+ | $ dos2unix partitiontable.txt | ||
+ | $ ./ | ||
+ | </ | ||
+ | **Troubleshooting: | ||
=== The automated way === | === The automated way === | ||
+ | TODO | ||
====== How to restore your AC100 ====== | ====== How to restore your AC100 ====== | ||
+ | |||
+ | < | ||
+ | nvflash --bl / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | nvflash -r --download <num> part< | ||
+ | </ | ||
+ | |||
+ | The [[partitionlayout|Partition Layout]] might also be interesting to look at. |
backups.txt · Last modified: 2013/02/03 15:14 by psl