TS-TPC-7990 eMMC Backup/restore: Difference between revisions
From embeddedTS Manuals
No edit summary |
m (Links auto-updated for 2022 re-branding ( https://files.embeddedarm.com/ts-arm-sbc/ts-7990-linux/distributions/debian/debian-armhf-stretch-latest.tar.bz2 → https://files.embeddedTS.com/ts-arm-sbc/ts-7990-linux/distributions/debian/debian-armhf-stretch-latest.tar.bz2 https://files.embeddedarm.com/ts-arm-sbc/ts-7990-linux/distributions/ubuntu/ubuntu-armhf-16.04-latest.tar.bz2 → https://files.embeddedTS.com/ts-arm-sbc/ts-7990-linux/distributions/ubuntu/ubuntu-armhf-16.04-latest.tar.bz2 h...) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
Pick the latest image to restore to here: | Pick the latest image to restore to here: | ||
* [ | * [https://files.embeddedTS.com/ts-arm-sbc/ts-7990-linux/distributions/debian/debian-armhf-stretch-latest.tar.bz2 Debian (9) Stretch] | ||
* [ | * [https://files.embeddedTS.com/ts-arm-sbc/ts-7990-linux/distributions/ubuntu/ubuntu-armhf-16.04-latest.tar.bz2 Ubuntu 16.04] | ||
* [https://files.embeddedTS.com/ts-arm-sbc/ts-7990-linux/distributions/yocto/morty/ts-x11-image-tsimx6-latest.rootfs.tar.bz2 Yocto Morty] | |||
* [ | * [https://files.embeddedTS.com/ts-arm-sbc/ts-7990-linux/distributions FTP image directory for other images] | ||
* [ | |||
The simplest way to backup/restore the eMMC is through u-boot. If you boot up with JP2 connected and stop in u-boot you can run this command: | The simplest way to backup/restore the eMMC is through u-boot. If you boot up with JP2 connected and stop in u-boot you can run this command: | ||
Line 18: | Line 17: | ||
sudo mount /dev/mmcblk1p1 /mnt/emmc/ | sudo mount /dev/mmcblk1p1 /mnt/emmc/ | ||
cd /mnt/emmc/ | cd /mnt/emmc/ | ||
tar -cjf /path/to/ts-backup-image.tar.bz2 | sudo tar -cjf /path/to/ts-backup-image.tar.bz2 . | ||
cd ../ | cd ../ | ||
umount /mnt/emmc/ | sudo umount /mnt/emmc/ | ||
sync | sync | ||
</source> | </source> | ||
Line 30: | Line 29: | ||
# size of around 3.78GiB. On my system, this is /dev/sdd. | # size of around 3.78GiB. On my system, this is /dev/sdd. | ||
sudo mkdir /mnt/emmc/ | sudo mkdir /mnt/emmc/ | ||
sudo mkfs. | sudo mkfs.ext3 /dev/mmcblk1p1 | ||
# If the above command fails, use fdisk or gparted to repartition the emmc | # If the above command fails, use fdisk or gparted to repartition the emmc | ||
# to have one large partition. | # to have one large partition. | ||
sudo mount /dev/mmcblk1p1 /mnt/emmc/ | sudo mount /dev/mmcblk1p1 /mnt/emmc/ | ||
tar -xjf /path/to/ts-new-image.tar.bz2 -C /mnt/emmc | sudo tar -xjf /path/to/ts-new-image.tar.bz2 -C /mnt/emmc | ||
umount /mnt/emmc/ | sudo umount /mnt/emmc/ | ||
sync | sync | ||
</source> | </source> | ||
Note that this interface is limited to about 1MB/s. You can write the eMMC disk faster by booting to SD with access to the image and using the native SD linux install to rewrite eMMC. | Note that this interface is limited to about 1MB/s. You can write the eMMC disk faster by booting to SD with access to the image and using the native SD linux install to rewrite eMMC. |
Latest revision as of 17:46, 17 January 2022
Pick the latest image to restore to here:
The simplest way to backup/restore the eMMC is through u-boot. If you boot up with JP2 connected and stop in u-boot you can run this command:
ums 0 mmc 1
Now plug in the P1 USB port and this will make the board act as a USB mass storage device with direct access to the eMMC disk. On a linux workstation, to backup the image:
dmesg | tail -n 30
# Look for the last /dev/sd* device connected. This should also match the eMMC
# size of around 3.78GiB. On my system, this is /dev/sdd.
sudo mkdir /mnt/emmc/
sudo mount /dev/mmcblk1p1 /mnt/emmc/
cd /mnt/emmc/
sudo tar -cjf /path/to/ts-backup-image.tar.bz2 .
cd ../
sudo umount /mnt/emmc/
sync
To write a new filesystem:
dmesg | tail -n 30
# Look for the last /dev/sd* device connected. This should also match the eMMC
# size of around 3.78GiB. On my system, this is /dev/sdd.
sudo mkdir /mnt/emmc/
sudo mkfs.ext3 /dev/mmcblk1p1
# If the above command fails, use fdisk or gparted to repartition the emmc
# to have one large partition.
sudo mount /dev/mmcblk1p1 /mnt/emmc/
sudo tar -xjf /path/to/ts-new-image.tar.bz2 -C /mnt/emmc
sudo umount /mnt/emmc/
sync
Note that this interface is limited to about 1MB/s. You can write the eMMC disk faster by booting to SD with access to the image and using the native SD linux install to rewrite eMMC.