forked from M-Labs/nac3
1
0
Fork 0
nac3/remote_run.sh

14 lines
373 B
Bash
Raw Normal View History

2020-04-11 21:12:16 +08:00
#!/usr/bin/env bash
set -e
TARGET_HOST=$1
TARGET_FOLDER=/tmp/zynq-\$USER
ssh $TARGET_HOST "mkdir -p $TARGET_FOLDER"
rsync openocd/* $TARGET_HOST:$TARGET_FOLDER
2020-04-30 21:04:28 +08:00
rsync result/szl $TARGET_HOST:$TARGET_FOLDER
rsync result/top.bit $TARGET_HOST:$TARGET_FOLDER
2020-04-28 19:07:49 +08:00
ssh $TARGET_HOST "cd $TARGET_FOLDER; openocd -f zc706.cfg -c 'pld load 0 top.bit; load_image szl; resume 0; exit'"