TS-4900 eMMC Backup/restore: Difference between revisions
From embeddedTS Manuals
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
mount /dev/mmcblk2p1 /mnt/emmc | mount /dev/mmcblk2p1 /mnt/emmc | ||
# Quad core only | # Quad core only | ||
wget ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/yocto/ts-x11-image | wget ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/yocto/ts-x11-image-quad-latest.tar.bz2 | ||
# Solo only | # Solo only | ||
ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/yocto/ts-x11-image-solo-latest.tar.bz2 | |||
tar -xf ts-x11-image-ts4900-*.rootfs.tar.bz2 -C /mnt/emmc | tar -xf ts-x11-image-ts4900-*.rootfs.tar.bz2 -C /mnt/emmc |
Revision as of 12:10, 8 January 2015
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/ts-x11-image-quad-latest.tar.bz2
# Solo only
ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/yocto/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.