TS-4900 eMMC Backup/restore

From embeddedTS Manuals
Revision as of 10:15, 5 March 2015 by Mark (talk | contribs)

These commands assume you are booted to the SD card, and

# Verify nothing else has this mounted
umount /dev/mmcblk2p1

mkfs.ext4 /dev/mmcblk2p1
mkdir /mnt/emmc
mount /dev/mmcblk2p1 /mnt/emmc
# Quad core only
wget ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/yocto/dora/ts-x11-image-quad-latest.tar.bz2
# Solo only
ftp ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/yocto/dora/ts-x11-image-solo-latest.tar.bz2

tar -xf ts-x11-image-ts4900-*.rootfs.tar.bz2 -C /mnt/emmc
umount /mnt/emmc
sync

After it is written you can verify the data was written correctly.

# Drop any block cache
echo 3 > /proc/sys/vm/drop_caches
mount /dev/mmcblk2p1 /mnt/emmc
cd /mnt/emmc/
sudo md5sums -c md5sums.txt
umount /mnt/emmc
sync

The md5sums command will report what differences there are, if any, and return if it passed or failed.