Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Flash script update for TS100 #1997

Merged
merged 2 commits into from
Nov 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions scripts/flash_ts100_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ umount_ts100() {
echo "Failed to unmount $DIR_TMP"
exit 1
fi
rmdir "$DIR_TMP"
sudo rmdir "$DIR_TMP"
}

check_flash() {
Expand Down Expand Up @@ -126,14 +126,13 @@ echo "Found TS100 config disk device on $DEVICE"

mount_ts100
echo "Mounted config disk drive, flashing..."
cp -v "$1" "$HEX_FIRMWARE"
sync
dd if="$1" of="$HEX_FIRMWARE" oflag=direct
umount_ts100

echo "Waiting for TS100 to flash"
sleep 5

echo "Remounting config disk drive"
umount_ts100
wait_for_ts100
mount_ts100
check_flash
Expand Down