Michael Schuh | d0f6181 | 2018-04-07 21:37:29 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | JETSON="root@$1" |
| 4 | |
| 5 | # To build for the Jetson, use |
| 6 | bazel 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. |
| 11 | ssh "${JETSON}" rm -f image_streamer camera_primer exposure_2018.sh startup.sh |
| 12 | |
| 13 | # Copy files to Jetson |
| 14 | scp bazel-bin/y2018/vision/image_streamer "${JETSON}":. |
| 15 | scp bazel-bin/aos/vision/tools/camera_primer "${JETSON}":. |
| 16 | scp y2018/vision/exposure_2018.sh "${JETSON}":. |
| 17 | scp y2018/vision/startup.sh "${JETSON}":. |
| 18 | |
| 19 | ssh "${JETSON}" sync |
| 20 | |
| 21 | # Can't restart with supervisorctl because the USB devices don't come up reliably... |
| 22 | echo "You just restart the Jetson now" >&2 |