TS-7820 Stretch Getting started

From embeddedTS Manuals

The latest Debian stretch image can be downloaded here:

This file is a symlink to the latest image. The image date can be checked by reading /root.version in the image. All images can be found here.

To prepare a USB, SD, or SATA drive for booting the TS-7820, the same steps can be used. Download the image above, then connect the boot media to your Linux workstation and run these commands:

# Identify your media
# dmesg
# lsblk
# This example will be for /dev/sdc

# Wipe existing partitions
sudo sgdisk --zap-all /dev/sdc
# Create one single Linux partition
sudo sgdisk -n 0:0:0 -t 0:8300 /dev/sdc
# Create a filesystem
sudo mkfs.ext4 /dev/sdc1
sudo mkdir /mnt/media
sudo mount /dev/sdc1 /mnt/media
sudo tar -xf /path/to/ts7820-debian-stretch-latest.tar.xz -C /mnt/media/
sudo umount /mnt/media/
Note: On some USB devices this may show up as /dev/mmcblk# or /dev/sdX. If it is /dev/mmcblk#, note that your first partition will be /dev/mmcblk#p1 and not mmcblk#1.

Our images also contain an md5sum file which can be used to validate the image. This will only work if the boot media has not been booted. During Linux's boot it will modify files, so the md5sum will fail. This can however be used to validate an image is correct before booting it on the unit. After the media has been written, removed from the workstation and unmounted, plug it back in:

sudo mount -o ro /dev/sdc1 /mnt/media
cd /mnt/media
# Verify all of the files
# If this succeeds it will have no output, but
# failures will indicate if any files do not match
sudo md5sum -c md5sums.txt --quiet
sudo umount /mnt/media/

To write this image to the eMMC, boot the board to USB, SD, or SATA and perform these same steps from the unit.