=== Restoring OS image to memory card === ** EXPERIMENTAL ** This directory contains an example to restore an OS image with a file that is being backed up from a memory card, SD card or eMMC, on ODROID-N2/N2Plus. We need two files, [1] Full capacity OS image file which file extension is '.img'. This file must be created from a memory card where your OS image is installed. [2] 'build.sh' : A script to create files to be referred when restoring the image. You may not necessary to change this file at all. After running 'build.sh', many files will be created, [4] *.*.gz : Splitted file from an OS image and compressed by 'gzip'. [5] BLKSIZE : Size of a splitted file from full OS image. [6] FILES : File list of compressed files [4]. [7] MD5SUM : MD5SUM values of compressed file [4]. Example: I have installed Android OS with 'selfinstall-odroidn2-144-64bit-20210930.img.xz' to eMMC and backed up as 'android-odroidn2-20210930.img' $ dd if=/dev/sde of=android-odroidn2-20210930.img bs=1M Then, $ ./build.sh android-odroidn2-20210930.img This will create new files: FILES MD5SUM android-odroidn2-20210930.00.gz android-odroidn2-20210930.01.gz android-odroidn2-20210930.02.gz android-odroidn2-20210930.03.gz android-odroidn2-20210930.04.gz android-odroidn2-20210930.05.gz android-odroidn2-20210930.06.gz android-odroidn2-20210930.07.gz android-odroidn2-20210930.08.gz android-odroidn2-20210930.09.gz android-odroidn2-20210930.10.gz android-odroidn2-20210930.11.gz android-odroidn2-20210930.12.gz android-odroidn2-20210930.13.gz android-odroidn2-20210930.14.gz Upload these file to your HTTP server where Petitboot can access. In order to restore the image in Petitboot, copy 'userscript.sh' to the first partition of SD card and change the lines with 'URL' and 'IMAGE'. This script will be started on the next power cycle.