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