TS-4900 eMMC Backup/restore: Difference between revisions

From embeddedTS Manuals
No edit summary
m (Reverted edits by Kris (talk) to last revision by Mark)
Line 3: Line 3:
<source lang=bash>
<source lang=bash>
# Verify nothing else has this mounted
# Verify nothing else has this mounted
umount /dev/mmcblk2p2
umount /dev/mmcblk2p1


mkfs.ext4 /dev/mmcblk2p2
mkfs.ext4 /dev/mmcblk2p1
mkdir /mnt/emmc
mkdir /mnt/emmc
mount /dev/mmcblk2p2 /mnt/emmc
mount /dev/mmcblk2p1 /mnt/emmc
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7680-linux/distributions/ts7680-latest.tar.bz2
wget ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/yocto/fido/ts-x11-image-tsimx6-latest.tar.bz2
tar -xf ts7680-latest.tar.bz2 -C /mnt/emmc
tar -xf ts-x11-image-tsimx6-latest.tar.bz2 -C /mnt/emmc
umount /mnt/emmc
umount /mnt/emmc
sync
sync
</source>
</source>
After it is written you can verify the data was written correctly.
<source lang=bash>
# 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
</source>
The md5sums command will report what differences there are, if any, and return if it passed or failed.

Revision as of 10:59, 24 November 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
wget ftp://ftp.embeddedarm.com/ts-socket-macrocontrollers/ts-4900-linux/distributions/yocto/fido/ts-x11-image-tsimx6-latest.tar.bz2
tar -xf ts-x11-image-tsimx6-latest.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.