blob: ba9d40d61e67e70d89e6dd6dccb1a2962c2d613b [file] [log] [blame]
Michael Schuhd0f61812018-04-07 21:37:29 -07001#!/bin/bash
2
Austin Schuhd3acc5f2018-07-08 16:06:07 -07003set -e
4
Michael Schuhd0f61812018-04-07 21:37:29 -07005JETSON="root@$1"
6
7# To build for the Jetson, use
8bazel build -c opt //y2018/vision:image_streamer \
9 //aos/vision/tools:camera_primer --cpu=armhf-debian
10
11# Remove files before copying them.
12# Doing so avoids problems with trying to copy over a file in use.
13ssh "${JETSON}" rm -f image_streamer camera_primer exposure_2018.sh startup.sh
14
15# Copy files to Jetson
16scp bazel-bin/y2018/vision/image_streamer "${JETSON}":.
17scp bazel-bin/aos/vision/tools/camera_primer "${JETSON}":.
18scp y2018/vision/exposure_2018.sh "${JETSON}":.
19scp y2018/vision/startup.sh "${JETSON}":.
20
21ssh "${JETSON}" sync
22
23# Can't restart with supervisorctl because the USB devices don't come up reliably...
24echo "You just restart the Jetson now" >&2